[OpenLayers-Users] legend "floating" over map

Gery gamejihou at hotmail.com
Thu Dec 6 05:09:43 PST 2012


Thanks Marc, I'll check that and see what gives,

Cheers,




__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist.


Date: Wed, 5 Dec 2012 05:54:13 -0800
From: ml-node+s1560n5020930h56 at n6.nabble.com
To: gamejihou at hotmail.com
Subject: Re: legend "floating" over map



	



2012/12/4 Gery <[hidden email]>

Thanks Donald, Alexandre, Sergeant and Mark for the ideas. I think Mark's

solution is what I have in mind, Mark could you share an example about using

this UpdateLegendControl.js script please? I went through it but I'm

confused about how to use it.

you just add it to a map as a control while passing a div or other container element that you want to hold the legend:
_map.addControl(new UpdateLegendControl({
         div : jQuery('#legendDiv')[0]
}));
like shown here: https://github.com/MinELenI/CBSviewer/blob/master/src/main/js/Viewer.js#L168
The div should be styled and positioned with some css


-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand.




_______________________________________________

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/legend-floating-over-map-tp5019001p5020930.html
	
	
		
		To unsubscribe from legend "floating" over map, click here.

		NAML
	 		 	   		  



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/legend-floating-over-map-tp5019001p5021197.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121206/fed54ea1/attachment.html>


More information about the Users mailing list