[Users] Zoom to point with given X, Y
Ceyhun Ganioglu
ceyhunganioglu at gmail.com
Thu Sep 4 15:57:18 CEST 2014
Hi Marc,
Thanks for forwarding to mail list. I think I clicked reply instead of
reply all.
I accessed the map element.
Many thanks
04.09.2014 16:43 tarihinde, Marc Jansen yazd?:
>
> (fowarded to the list, please respond to the list if possible)
>
>
> Hey Ceyhun,
>
> I assume you are using GeoExt 1.1, right? You have access to the
> mappanel, right? The map can be accessed like:
>
> mappanel.map
>
> http://geoext.org/lib/GeoExt/widgets/MapPanel.html
>
> Best,
> Marc
>
> On 04.09.2014 14:11, Ceyhun Ganioglu wrote:
>> Hey Marc,
>>
>> I could not reach the OpenLayers map from MapPanel. My code does not
>> look like typical map = new Openlayer style. I am totally confused.
>>
>> 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).
>>
>> I am totally lost.
>>
>> Regards
>>
>>
>>
>> 04.09.2014 13:49 tarihinde, Marc Jansen yazd?:
>>> Hey Ceyhun,
>>>
>>> centering is usually done via OpenLayers methods. Access the
>>> OpenLayers map from a GeoExt.MapPanel (or GeoExt.panel.Map), and
>>> call setCenter
>>> (http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter).
>>>
>>> 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.
>>>
>>> Best,
>>> Marc
>>>
>>>
>>> On 04.09.2014 10:29, Ceyhun Ganioglu wrote:
>>>> Hi,
>>>>
>>>> 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.
>>>>
>>>> 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?
>>>>
>>>> Many thanks for your help.
>>>>
>>>> Regards
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at geoext.org
>>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140904/8c8bd6b1/attachment.htm
More information about the Users
mailing list