[OpenLayers-Users] Zoom to Lat/Long

Brent Owens bowens at openplans.org
Tue Jul 25 20:57:51 CDT 2006


ZoomTo will set the zoom level of the map, so between 0 and 16.
You need to call setCenter to actually move the screen to that point on 
the map.

map.setCenter(new OpenLayers.LonLat(x,y), 15);

Brent Owens
(The Open Planning Project)



Harper,Cole M - JDC-PPO1-2 wrote:
>
> I am trying to accomplish a simple task but I can't seem to figure out 
> how to get it done. I want the user to input a lat/long and be zoomed 
> into that point at a closer zoom level. I am not a JavaScript 
> programmer so I don't really no where to start. I was trying to use 
> the zoomTo function but I haven't had any success.
>
> Thanks
>
> !DSPAM:1005,44c6bf3f271116309890654!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://mailman-viper.python-hosting.com/listinfo/users
>
>
> !DSPAM:1005,44c6bf3f271116309890654!
>   


More information about the Users mailing list