Commit 300eb0b1 by 张杰

优化地图点展示

1 parent 51cd2d6b
......@@ -708,6 +708,7 @@ MapService.prototype = {
infoDiv.querySelector('#locateTypeGps').classList.add('active');
infoDiv.querySelector('#locateTypeBase').classList.remove('active');
marker.setPosition(self.getLngLat(info.lng, info.lat));
self.setFitView()
marker.infoWindow && marker.infoWindow.open(map, marker.getPosition());
}
......@@ -718,6 +719,7 @@ MapService.prototype = {
infoDiv.querySelector('#locateTypeGps').classList.remove('active');
infoDiv.querySelector('#locateTypeBase').classList.add('active');
marker.setPosition(self.getLngLat(info.bsLng, info.bsLat));
self.setFitView()
marker.infoWindow && marker.infoWindow.open(map, marker.getPosition());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!