Hello Thomas, thanks for your answer, I copied the 45 lines of the 
layerswitcher in /theme/default/style.css and rename them by measure (eg. 
.olControlMeasure), but it seems that it is not enough, I added also this line 
to my html:

map.addControl(new OpenLayers.Control.GH());

but I get a white page and firebug says: OpenLayers.Control.GH is not a 
constructor

what does that mean? I expected  to have a cross (like the one in 
LayerSwitcher) just 20px below the layerswitcher:
.olControlGH {
....a lot of stuff....
top: 5px}
....a lot of stuff....
}

Gery

Date: Thu, 24 May 2012 21:26:54 -0700
From: ml-node+s1560n4976807...@n6.nabble.com
To: gameji...@hotmail.com
Subject: AW: [OpenLayers-Users] Re: I want to put "measure" code as layer 
switcher



        Hi,

it's just an issue of using css? I think you have to create some <div> in the 
same way like the layerswicher or the overview control.


Thomas



-----Ursprüngliche Nachricht-----

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Gery

Gesendet: Donnerstag, 24. Mai 2012 23:07

An: [hidden email]

Betreff: [OpenLayers-Users] Re: I want to put "measure" code as layer switcher


Anybody that could help me here? hellooo?


--

View this message in context: 
http://osgeo-org.1560.n6.nabble.com/I-want-to-put-measure-code-as-layer-switcher-tp4976721p4976753.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________

Users mailing list

[hidden email]

http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________

Users mailing list

[hidden email]

http://lists.osgeo.org/mailman/listinfo/openlayers-users

        
        

        

        
        
                If you reply to this email, your message will be added to the 
discussion below:
                
http://osgeo-org.1560.n6.nabble.com/I-want-to-put-measure-code-as-layer-switcher-tp4976721p4976807.html
        
        
                
                To unsubscribe from I want to put "measure" code as layer 
switcher, click here.

                NAML
                                                  

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/I-want-to-put-measure-code-as-layer-switcher-tp4976721p4977163.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to