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

Ziegler Stefan Stefan.Ziegler at bd.so.ch
Thu Mar 6 09:11:03 EST 2008


It needed an easy way to create a rectangle feature. But your suggestion
is the way to go. Thanks.

Stefan

-----Ursprüngliche Nachricht-----
Von: Christopher Schmidt [mailto:crschmidt at metacarta.com]
Gesendet am: Donnerstag, 6. März 2008 14:57
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] different behaviour in
geometry.rectangle class

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
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080306/1ef43eb2/attachment.html


More information about the Users mailing list