GMap2 setCenter

//设定中心点,第一个参数为经纬构成的GLatLng 对象,第二个参数好像是大小吧,第三个不太清楚。。。

setCenter

Method Return Value Description
setCenter(center:GLatLng , zoom?:Number, type?:GMapType ) None Sets the map view to the given center. Optionally, also sets zoom level and map type. The map type must be known to the map. See the constructor, and the method addMapType() . This method must be called first after construction to set the initial state of the map. It is an error to call operations on a newly constructed GMap2 object until after this function is invoked.

你可能感兴趣的:(GMap2 setCenter)