Active
Project:
Mapping kit
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2009 at 18:09 UTC
Updated:
12 Nov 2009 at 23:26 UTC
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 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.