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