[OpenLayers-Users] Scale control outside the map

Jorge Gaspar Sanz Salinas jsanz at osgeo.org
Mon May 18 11:24:43 EDT 2009


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?

Cheers
-- 
Jorge Gaspar Sanz Salinas
Ingeniero en Geodesia y Cartografía
http://wiki.osgeo.org/wiki/Jorge_Sanz



More information about the Users mailing list