[OpenLayers-Users] how insert a Logo image and a label in my map?

Andreas Hocevar ahocevar at opengeo.org
Mon Jan 23 08:13:37 EST 2012


The attribution can be markup, so e.g.

attribution: "<img src='myimage.png'>Provided by me"

Andreas.

On Fri, Jan 20, 2012 at 5:06 PM, francescoboccacci at libero.it
<francescoboccacci at libero.it> wrote:
> Hi,
> i would like to insert in my map a logo image and a label. For the label i
> used:
>
> var test = new OpenLayers.Layer.OSM("Background",
>
>                        "http://localhost/${z}/${x}/${y}.png",
>
>                        {
>
>
>                                sphericalMercator: true
>
>                        },
>
>                         {wrapDateLine: true},
>                          {attribution:"Provided by Me"}
>
>                        );
>
>
> but it doesn't work. For the logo image i don't know.
>
> Thanks
>
> Francesco Boccacci
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list