how can i change the default image for the layer switcher maximizer

kdiep1982 - September 26, 2009 - 18:09
Project:Mapping kit
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

jpulles - November 12, 2009 - 23:26

I 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.

 
 

Drupal is a registered trademark of Dries Buytaert.