[OpenLayers-Users] How put a fix image on the map?

Christopher Schmidt crschmidt at metacarta.com
Mon Aug 31 10:28:07 EDT 2009


On Mon, Aug 31, 2009 at 12:27:19PM +0200, Jimmy Aumard wrote:
> Hi list,
> 
> I want to know how it's possible to put a fix image on the right bottom on
> the map? (like google logo)

new OpenLayers.Layer.Vector("My Data", {
    'attribution': "<img src='/foo/bar.png' />"
});

Ensure that you have the OpenLayers.Control.Attribution in the map, and you
should be good. (It's there by default, unless you're overriding the default
controls.)

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list