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 want to change the default image for the layer switcher maximizer from the plus sign to a custom image. I found the location where it is sourcing this image using inspect element from firefox, but i can't find the file that contain this location. Here is the code for sourcing the image.
<div id="OpenLayers_Control_MaximizeDiv" style="position: absolute; width: 18px; height: 18px; top: 5px; right: 0px; display: none;">
<img id="OpenLayers_Control_MaximizeDiv_innerImage" style="position: relative; width: 18px; height: 18px;" src="http://openlayers.org/api/2.7/img/layer-switcher-maximize.png"/>
</div>
But i can't find this div anywhere in the mapping module files. Anyone know which files contain this div?
Comments
Comment #1
jpulles CreditAttribution: jpulles commentedI don't know if you already found the answer? The image of the layer switcher is taken from the img folder in the OpenLayers source. The code in OpenLayers/lib/OpenLayers/Control/LayerSwitcher.js uses a fixed path to the layer-switcher-maximize.png. I assume you would want to change this in a local installation of OpenLayers.