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

Keith Wiley kwiley at keithwiley.com
Fri May 4 12:10:50 EDT 2012


Oh, the image is taking precedent over the plus button.  Moving down in z-index or shifting it vertically or horizontally off the plus button seems to work.

Thanks.

On May 4, 2012, at 07:06 , Francesco D'Alesio wrote:

> 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

"It's a fine line between meticulous and obsessive-compulsive and a slippery
rope between obsessive-compulsive and debilitatingly slow."
                                           --  Keith Wiley
________________________________________________________________________________



More information about the Users mailing list