[OpenLayers-Users] Place an image in the corner?

Francesco D'Alesio francesco.dalesio at r3-gis.com
Fri May 4 10:06:42 EDT 2012


Hi,
not so elegant, but it works.
Just insert a div in the map div, with position absolute like this:

<div id="map">
<div style="position:absolute;top:10px;right:10px;z-index:1500;">
<img src="images/n_arrow_little.png">
</div>
</div>


Francesco



Il 04/05/2012 15:23, Keith Wiley ha scritto:
> I want to place a "legend" on the map, effectively an image which stays at a particular pixel-location in the view, without being tied to geographic coordinates (and which doesn't scale with zoom).  I didn't see an example that does this.
>
> Any ideas?
>
> Thanks.
>
> ________________________________________________________________________________
> Keith Wiley     kwiley at keithwiley.com     keithwiley.com    music.keithwiley.com
>
> "And what if we picked the wrong religion?  Every week, we're just making God
> madder and madder!"
>                                             --  Homer Simpson
> ________________________________________________________________________________
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


-- 



More information about the Users mailing list