[OpenLayers-Users] different behaviour in geometry.rectangle class

Christopher Schmidt crschmidt at metacarta.com
Thu Mar 6 08:57:04 EST 2008


On Thu, Mar 06, 2008 at 09:29:04AM +0100, Ziegler Stefan wrote:
> Hi
> I'm using the openlayers trunk version. There is probably a different
> behaviour in how the rectangle from the Openlayers.Geoemetry.Rectangle
> class in drawn. In FF the coordinate from the constructor is the lower
> left corner but in IE it is the upper left corner. Changing line 422
> from SVG.js to "node.setAttributeNS(null, "y", y-geometry.height /
> resolution);" solves the issue.

The OpenLayers.Geometry.Rectangle is a relic: it really isn't supported,
and we have no plans to change that in the near future. Can you explain
why you're using it?

It's possible that the following would actually serve you better:

poly = new OpenLayers.Bounds(0,0,10,10).toGeometry(); 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list