[OpenLayers-Users] Scale control outside the map

Eric Lemoine eric.lemoine at camptocamp.com
Mon May 18 18:44:16 EDT 2009


On Monday, May 18, 2009, Jorge Gaspar Sanz Salinas <jsanz at osgeo.org> wrote:
> Hi, this is my first post on this list, I'm starting to develop with
> OL and the first think I've to say is that Open Layers (code and docs)
> is amazing.
>
> Well I've been in trouble with the scale control so I want to share
> the topic, for your interest.
>
> Working with OL 2.7, if I create a control passing a div parameter to
> draw the scale text outside the map, it doesn't place it right.
>
> I have to create the control and afterwards set the div parameter in
> order to have it working.
>
> I've debugged a little bit and I think OL is overwriting the custom
> div with the default one but I'm not an experienced JS dev and I don't
> know how to resolve this issue. May I create a ticket for 2.8 on trac?

Hi

Tickets are for bugs in OpenLayers. The issue you're having does not
sound like a bug in the library to me. Anyway, please provide some
code for people to be able to help you with that.


>
> Cheers
> --
> Jorge Gaspar Sanz Salinas
> Ingeniero en Geodesia y Cartografía
> http://wiki.osgeo.org/wiki/Jorge_Sanz
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list