<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
(fowarded to the list, please respond to the list if possible)<br>
<br>
<br>
Hey Ceyhun,<br>
<br>
I assume you are using GeoExt 1.1, right? You have access to the
mappanel, right? The map can be accessed like:<br>
<br>
mappanel.map<br>
<br>
<a class="moz-txt-link-freetext"
href="http://geoext.org/lib/GeoExt/widgets/MapPanel.html">http://geoext.org/lib/GeoExt/widgets/MapPanel.html</a><br>
<br>
Best,<br>
Marc<br>
<br>
On 04.09.2014 14:11, Ceyhun Ganioglu wrote:<br>
</div>
<blockquote cite="mid:540856EB.5020004@gmail.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
Hey Marc,<br>
<br>
I could not reach the OpenLayers map from MapPanel. My code does
not look like typical map = new Openlayer style. I am totally
confused. <br>
<br>
My attached code has only a GridPanel, MapPanel and a Tree Panel.
So there's no map object on the page. I don't know how I can reach
it from these objects. (I think one of those controls are creating
the Map in the background).<br>
<br>
I am totally lost. <br>
<br>
Regards<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">04.09.2014 13:49 tarihinde, Marc
Jansen yazdı:<br>
</div>
<blockquote cite="mid:540843A6.2080706@terrestris.de" type="cite">
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hey Ceyhun,<br>
<br>
centering is usually done via OpenLayers methods. Access the
OpenLayers map from a GeoExt.MapPanel (or GeoExt.panel.Map),
and call setCenter (<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter</a>).<br>
<br>
What you need to pass to that method (and whether you need to
transform something) depends on your configuration of the map.
Questions in that directions may better be answered on the
OpenLayers mailinglists.<br>
<br>
Best,<br>
Marc<br>
<br>
<br>
On 04.09.2014 10:29, Ceyhun Ganioglu wrote:<br>
</div>
<blockquote cite="mid:540822DC.4000603@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<font face="Arial">Hi,<br>
<br>
I would like to add to input boxes and a button to my map
and when a user clicks the button I want the map zoomed to
the values of X,Y given on the input boxes. <br>
<br>
Which map function do I need to use? and if I need to
convert the X,Y values to lat lon how can I do it? <br>
<br>
Many thanks for your help.<br>
<br>
Regards<br>
<br>
</font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>