标签: openlayers
我尝试用另一个位置更改一个地图的位置,所以我需要设置一个绑定到“locationChanges()”之类的回调函数。通过这种方式,我可以将受尊重的人的位置设置为其他人。我怎么能在Open Layers API中做到这一点。
答案 0 :(得分:1)
不确定你需要什么,是这样的吗?
map.events.on({ 'moveend': function(){ another_map.zoomToExtent(map.getExtent()); } });