// 监听地图变化 map1.on('moving moveend', function (e) { map2.setCenter(e.target.getCenter()); }); map1.on('zooming zoomend', function (e) { map2.setCenterAndZoom(e.target.getCenter(), e.target.getZoom()); }); map1.on('pitch', function (e) { map2.setPitch(e.target.getPitch()); }); map1.on('rotate', function (e) { map2.setBearing(e.target.getBearing()); });
maptalks加载两个地图 让两个地图同步变化
最新推荐文章于 2024-02-19 15:25:38 发布