<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="font-size:10pt;" color="#366092" face="Arial" size="2"><font style="font-size: 10pt;" size="2">I forgot<font style="font-size: 10pt;" size="2"> to say that I'm using version 2.11.</font></font></font><br><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie es NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: gamejihou@hotmail.com<br>To: openlayers-users@lists.osgeo.org<br>Date: Wed, 30 Jan 2013 15:52:20 +0000<br>Subject: [OpenLayers-Users] OpenLayers.Class with       OpenLayers.Control.GetFeature<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:12pt;font-family:Calibri;}

--></style>
<div dir="ltr"><font style="font-size:10pt" color="#366092" face="Arial" size="2">Hi all,<br><br><font style="font-size:10pt" size="2">I'm wondering i<font style="font-size:10pt" size="2">f someone could point me in the right direction</font></font> to force the BBO<font style="font-size:10pt" size="2">X of OpenLayers.C<font style="font-size:10pt" size="2">ontrol<font style="font-size:10pt" size="2">.GetFeature to be alwa<font style="font-size:10pt" size="2">ys in long/lat<font style="font-size:10pt" size="2"> coordinates<font style="font-size:10pt" size="2">. <font style="font-size:10pt" size="2">I'm tryin<font style="font-size:10pt" size="2">g to get this with <font style="font-size:10pt" size="2">OpenLayers.<font style="font-size:10pt" size="2">Class<font style="font-size:10pt" size="2">, so the new control will <font style="font-size:10pt" size="2">inherit OpenLayers.Control.GetFeature <font style="font-size:10pt" size="2">with <font style="font-size:10pt" size="2">just the smal<font style="font-size:10pt" size="2">l modification in BBOX. This<font style="font-size:10pt" size="2"> is<font style="font-size:10pt" size="2"> what I<font style="font-size:10pt" size="2">'ve done:<br></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br><font style="font-size:10pt" color="#366092" face="Arial" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2">OpenLayers.Control.myGetFeature = OpenLayers.Class(OpenLayers.Control.GetFeature,{
<br>            selectBox: function(position){
<br>                var opts = OpenLayers.Control.GetFeature(position);
<br>                var baseSRSutm = this.map.getprojectionObject();
<br>                var layerSRSdd = new OpenLayers.Projection('EPSG:4326');
<br>                opts.params.bbox = 
this.map.getExtent().transform(baseSRSutm,layerSRSdd).toBBOX(null,firstLayer.reverseAxisOrder());
<br>            }<br>            return opts;
<br>        });
<br></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font> <br><font style="font-size:10pt" size="2">but <font style="font-size:10pt" size="2">I'<font style="font-size:10pt" size="2">m getting that s<font style="font-size:10pt" size="2">ome "}" are <font style="font-size:10pt" size="2">missing<font style="font-size:10pt" size="2">. Is this the right wa<font style="font-size:10pt" size="2">y to use OpenLa<font style="font-size:10pt" size="2">yers.Class to do what I want?<br><br><font style="font-size:10pt" size="2">Any hel<font style="font-size:10pt" size="2">p is much appreciated<font style="font-size:10pt" size="2">.<br><br><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2"><font style="font-size:10pt" size="2">Gery</font></font></font><br id="ecxFontBreak"></font></font></font></font></font></font></font></font></font></font></font><br><br><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie es NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br>                                          </div>
<br>_______________________________________________
Users mailing list
Users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users</div>                                      </div></body>
</html>