[OpenLayers-Dev] Centering Map

YuGo yu.gotou at gtec-ni.com
Fri Dec 15 03:36:28 EST 2006


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?



More information about the Dev mailing list