<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE>.hmmessage P {
PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-FAMILY: Calibri; FONT-SIZE: 12pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19394"></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN lang=DE>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2
face=Arial>Hi,</FONT></SPAN></P>
<P><SPAN class=203531117-30012013></SPAN> </P>
<P><SPAN class=203531117-30012013>move 'return opts;' into the function
body:</P></SPAN>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2
face=Arial>...</FONT></SPAN></P>
<P><SPAN class=203531117-30012013></SPAN>opts.params.bbox =<SPAN
class=203531117-30012013> ...</SPAN></P>
<P>return opts;</P>
<P>}</P>
<P> </P>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2 face=Arial>to get
rid of the error.</FONT></SPAN></P>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </P>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2
face=Arial>Arnd</FONT></SPAN></P>
<P><SPAN class=203531117-30012013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </P>
<P></SPAN>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><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></P></DIV>
<DIV></DIV>
<DIV dir=ltr><FONT style="FONT-SIZE: 10pt" color=#366092 size=2 face=Arial>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 size=2 face=Arial><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> <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=FontBreak></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT><BR><BR><FONT
style="FONT-SIZE: 10pt" color=#1f497d size=2
face=Arial><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
size=2 face=Arial><BR></FONT><FONT style="FONT-SIZE: 10pt" color=#1f497d size=2
face=Arial>Think green - keep it on the screen. Do NOT print if it is NOT
necessary.</FONT><FONT style="FONT-SIZE: 10pt" color=#1f497d size=2
face=Arial><BR></FONT><FONT style="FONT-SIZE: 10pt" color=#1f497d size=2
face=Arial><SPAN id=ecxresult_box lang=de class=ecxshort_text><SPAN
class=ecxhps>Denken Sie an</SPAN> <SPAN class=ecxhps>die
Umwelt</SPAN></SPAN></FONT><FONT style="FONT-SIZE: 10pt" color=#1f497d size=2
face=Arial><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></BODY></HTML>