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:[EMAIL PROTECTED]
Gesendet am: Donnerstag, 6. März 2008 14:57
An: [email protected]
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
[email protected]
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to