[OpenLayers-Users] Scales problems

Christopher Schmidt crschmidt at metacarta.com
Wed Sep 12 10:01:26 EDT 2007


On Wed, Sep 12, 2007 at 02:57:19PM +0100, Tyler Durden wrote:
> Hi,
> I'm using Openlayers, Tilecache, Mapnik and I can't figure out why the
> the label Scale(OpenLayers.Control.Scale()) doesn't show the correct
> value.
> I mean, in my osm.xml I have:

My guess is that Mapnik and OpenLayers use a different number of dots
per inch. You can set this in OpenLayers:

OpenLayers.DOTS_PER_INCH = 96;

The default in OpenLayers in 72, but 96 is another common value: you
should consult mapnik to determine what it uses. (Code or mailing list.) 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list