Here is a control that will do most or all of what you want:: https://github.com/MinELenI/CBSviewer/blob/master/src/main/js/UpdateLegendControl.js
2012/11/28 Sergeant_york <[email protected]> > 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. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- 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 [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
