|
@ -393,7 +393,7 @@ const OlMap = (props) => { |
|
|
layerName: 'geometry_bus_line' |
|
|
layerName: 'geometry_bus_line' |
|
|
}); |
|
|
}); |
|
|
if (busLine.length) { |
|
|
if (busLine.length) { |
|
|
olMapTool.closeOverlay('clickOpen') |
|
|
olMap.closeOverlay('clickOpen') |
|
|
olMap.setCenter([ |
|
|
olMap.setCenter([ |
|
|
(busLine[0].pointLng + busLine[busLine.length - 1].pointLng) / 2, |
|
|
(busLine[0].pointLng + busLine[busLine.length - 1].pointLng) / 2, |
|
|
(busLine[0].pointLat + busLine[busLine.length - 1].pointLat) / 2 |
|
|
(busLine[0].pointLat + busLine[busLine.length - 1].pointLat) / 2 |
|
|