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

Gery . gamejihou at hotmail.com
Sat May 26 14:12:51 PDT 2012



Hello Thomas, thanks for your answer, I copied the 45 lines of the 
layerswitcher in /theme/default/style.css and renamed them by measure 
(eg. .olControlGH), 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


> From: Thomas.Waberzeck at liag-hannover.de
> To: gamejihou at hotmail.com
> CC: openlayers-users at lists.osgeo.org
> Subject: AW: [OpenLayers-Users] Re: I want to put "measure" code as layer	switcher
> Date: Fri, 25 May 2012 04:25:22 +0000
> 
> 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: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Gery
> Gesendet: Donnerstag, 24. Mai 2012 23:07
> An: openlayers-users at lists.osgeo.org
> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120526/341411d1/attachment.html


More information about the Users mailing list