Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I would like to know if it is possible (and if so how) to style the zoom controls purely using css (i.e. not using images). This can be seen in examples on the Openlayers website:
http://dev.openlayers.org/releases/OpenLayers-2.12/examples/example.html
I'm guessing this is a different control from the zoomPanel used in the Drupal module as it offers '+' and '-' symbols for styling and has no zoomToMaxExtent button. It would be good if this was available.
Thanks,
Vin.
Comment | File | Size | Author |
---|---|---|---|
#1 | css_only_zoom_control-1992066-1.patch | 436 bytes | leveller |
Comments
Comment #1
leveller CreditAttribution: leveller commentedNot passing in the empty controls aray as part of the options (openlayers/js/openlayers.js) allows the default controls to be rendered. These can be styled using css alone as they consist simply of divs containing + and - characters. If you still want to use the buttons (for some reason) these divs can be hidden.