[OpenLayers-Users] a control to display a static image
Christopher Schmidt
crschmidt at metacarta.com
Thu Apr 10 11:34:02 EDT 2008
On Thu, Apr 10, 2008 at 05:26:35PM +0200, Gilles Bassière wrote:
> Hi list,
>
> Is there a Layer or a Control in OpenLayers to display a simple static
> image in the map pane ?
>
> What I need is actually is to superimpose an image on the map. I want to
> use this to draw a North Arrow. I though about using the new Attribution
> feature (which is great!) but it's layer-dependant. I want my image to
> be displayed anytime.
>
> I can't find anything that fulfil my needs in the API doc. Did I miss
> something? Should I develop a new Control for this?
What you're looking for is closest to a control, but I honestly wouldn't
even bother with that: instead: I'd do this:
<div id="map">
<div id="arrow" style="position: relative; top: 30px; left: 400px;">
<img src="arrow.png" />
</div>
</div>
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list