<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">Thanks for th<font style="font-size: 10pt;" size="2">at Arnd, now it stops complaining about<font style="font-size: 10pt;" size="2"> the <font style="font-size: 10pt;" size="2">missing "}", but now it appears "</font></font></font></font><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"><span class="errorMessage">TypeError: this.CLASS_NAME is undefined", what and <font style="font-size: 10pt;" size="2">where shou<font style="font-size: 10pt;" size="2">ld I put there?</font></font></span></font></font></font><br id="FontBreak"></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: arnd.wippermann@web.de<br>To: gamejihou@hotmail.com<br>CC: openlayers-users@lists.osgeo.org<br>Subject: AW: [OpenLayers-Users] OpenLayers.Class withOpenLayers.Control.GetFeature<br>Date: Wed, 30 Jan 2013 18:13:50 +0100<br><br>


<style><!--
.ExternalClass .ecxhmmessage P
{padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;}
.ExternalClass BODY.ecxhmmessage
{font-family:Calibri;font-size:12pt;}
--></style>



<div dir="ltr" align="left"><span lang="DE">
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2">Hi,</font></span><BR>
<span class="ecx203531117-30012013"></span> <BR>
<span class="ecx203531117-30012013">move 'return opts;' into the function 
body:</span><BR></span>
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2">...</font></span><BR>
<span class="ecx203531117-30012013"></span>opts.params.bbox =<span class="ecx203531117-30012013"> ...</span><BR>
return opts;<BR>
}<BR>
 <BR>
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2">to get 
rid of the error.</font></span><BR>
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2"></font></span> <BR>
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2">Arnd</font></span><BR>
<span class="ecx203531117-30012013"><font color="#0000ff" face="Arial" size="2"></font></span> <BR>

<BR><hr tabindex="-1">
<font face="Tahoma" size="2"><b>Von:</b> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <b>Im Auftrag von </b>Gery 
.<br><b>Gesendet:</b> Mittwoch, 30. Januar 2013 16:52<br><b>An:</b> 
openlayers-users@lists.osgeo.org<br><b>Betreff:</b> [OpenLayers-Users] 
OpenLayers.Class withOpenLayers.Control.GetFeature<br></font><br><BR></div>
<div></div>
<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 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></div>                                    </div></body>
</html>