[OpenLayers-Dev] Format.WMC and scale

bartvde at osgis.nl bartvde at osgis.nl
Thu Oct 23 10:49:45 EDT 2008


Hi list,

question about the Format.WMC code.

When it reads a scale from a WMC doc, it is stored in the options array of
the layer.

But when it writes, it uses the minScale or maxScale property of the layer.

Why is this? I would expect when writing to also use the options.minScale
and options.maxScale.

In my situation options.minScale is 35000 (the correct value) and
layer.minScale is 10000000.999999998, don't ask me why :-). So when
serializing the WMC the wrong information is written.

Best regards,
Bart




More information about the Dev mailing list