map = new plus.maps.Map("map");
map.centerAndZoom(new plus.maps.Point(121.910914, 30.878571), zoomV, plus.maps.MapType.MAPTYPE_NORMAL, false, true);
map.onstatuschanged = function(e) {
var bounds= e.bounds;
plus.nativeUI.alert(JSON.stringify(bounds));
}
setTimeout(function(){
var bounds= map.getBounds();
plus.nativeUI.alert(JSON.stringify(bounds));
},1000);
下面那个获取的坐标方法(map.getBounds();) 反了··· 西南角 变成了 东北角。。。。
阿峰 (作者)
你在用ios 试试吧··这个绝对有问题的··
我的测试机是 肾5s,谷歌五太子
下面是我的代码·为了避免这个问题·我加了个系统判断·
map.onstatuschanged = function(e) {
setTimeout(function() {
2015-09-06 17:38