GMap2 setCenter

来源:互联网 发布:魔术师约翰逊知乎 编辑:程序博客网 时间:2024/06/06 12:25

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

setCenter

MethodReturn ValueDescriptionsetCenter(center:GLatLng,zoom?:Number,type?:GMapType)NoneSets 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.
原创粉丝点击