当前位置:首页 > 联系我们

客服(QQ):1103791122

var map = new BMap.Map("allmap"); var point = new BMap.Point(121.402731,31.168522);//112.41252,34.662919 map.centerAndZoom(point,19); map.enableScrollWheelZoom(); var marker = new BMap.Marker(point); map.addOverlay(marker); BMap.Convertor.translate(point,0,translateCallback); function translateCallback(point1){ var marker1 = new BMap.Marker(point1); map.addOverlay(marker1); var label = new BMap.Label("转换后的坐标",{offset:new BMap.Size(20,-10)}); marker1.setLabel(label); map.setCenter(point1); }*/