[OpenLayers-Users] legend "floating" over map
Sergeant_york
electronicpanda at gmail.com
Wed Nov 28 09:16:06 PST 2012
1- let's say you have a div for map (mapdiv in this case)
<div id="mapDiv"></div>
2- you put another div inside of mapdiv
<div id="mapDiv><div id="legendDiv"></div></div>
3- set legendDiv style
#legendDiv{
position: absolute;
top: x;
left: y;
z-index: more than OpenLayers' viewPort
}
4- set an image inside of legendDiv
<div id=map....>
<div id=legend..>
<yourPNG's url>
</div>
</div>
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/legend-floating-over-map-tp5019001p5019375.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list