<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt; }
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal;  font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class="Normal"><span style='font-size: 10pt; '>It needed an easy way to
create a rectangle feature. But your suggestion is the way to go.
Thanks.</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Stefan</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>-----Urspr&uuml;ngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>Von: Christopher
Schmidt
[mailto:crschmidt@metacarta.com]</span><br><span style='font-size: 10pt; '>Gesendet
am: Donnerstag, 6. M&auml;rz 2008
14:57</span><br><span style='font-size: 10pt; '>An:
users@openlayers.org</span><br><span style='font-size: 10pt; '>Betreff: Re:
[OpenLayers-Users] different behaviour
in</span><br><span style='font-size: 10pt; '>geometry.rectangle
class</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>On Thu, Mar 06, 2008 at
09:29:04AM +0100, Ziegler Stefan
wrote:</span><br><span style='font-size: 10pt; '>&gt;
Hi</span><br><span style='font-size: 10pt; '>&gt; I'm using the openlayers trunk
version. There is probably a
different</span><br><span style='font-size: 10pt; '>&gt; behaviour in how the
rectangle from the
Openlayers.Geoemetry.Rectangle</span><br><span style='font-size: 10pt; '>&gt;
class in drawn. In FF the coordinate from the constructor is the
lower</span><br><span style='font-size: 10pt; '>&gt; left corner but in IE it is
the upper left corner. Changing line
422</span><br><span style='font-size: 10pt; '>&gt; from SVG.js to
"node.setAttributeNS(null, "y", y-geometry.height
/</span><br><span style='font-size: 10pt; '>&gt; resolution);" solves the
issue.</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>The
OpenLayers.Geometry.Rectangle is a relic: it really isn't
supported,</span><br><span style='font-size: 10pt; '>and we have no plans to
change that in the near future. Can you
explain</span><br><span style='font-size: 10pt; '>why you're using
it?</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>It's possible that the
following would actually serve you better:</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>poly = new
OpenLayers.Bounds(0,0,10,10).toGeometry(); </span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Regards,</span><br><span style='font-size: 10pt; '>--
</span><br><span style='font-size: 10pt; '>Christopher
Schmidt</span><br><span style='font-size: 10pt; '>MetaCarta</span><br><span style='font-size: 10pt; '>_______________________________________________</span><br><span style='font-size: 10pt; '>Users
mailing
list</span><br><span style='font-size: 10pt; '>Users@openlayers.org</span><br><span style='font-size: 10pt; '>http://openlayers.org/mailman/listinfo/users</span></div>



</body>

</html>