[OpenLayers-Dev] Centering Map
Erik Uzureau
euzuro at gmail.com
Sat Dec 16 10:34:16 EST 2006
That command should work. When/fromwhere are you trying to call it?
On 12/15/06, YuGo <yu.gotou at gtec-ni.com> wrote:
> Hi
> I want centered map this example.
> http://www.openlayers.org/dev/examples/controls.html
>
> I tried to append follows in the script, but it did not work.
> map.setCenter(new OpenLayers.LonLat(138.8452,36.23541), 5);
>
> How I adjust zoom and center the map?
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
More information about the Dev
mailing list