|
@@ -57,7 +57,7 @@
|
|
|
let firstAxo = false;
|
|
|
let vectorSources = ref(null);
|
|
|
const mapView = reactive({
|
|
|
- center: fromLonLat([118.26718, 22.45402]),
|
|
|
+ center: fromLonLat([113.3964533,22.608285]),
|
|
|
zoom: 12,
|
|
|
minZoom: 2,
|
|
|
maxZoom: 18
|
|
@@ -204,7 +204,9 @@
|
|
|
newFeature.setStyle(createLabel(newFeature));
|
|
|
vectorSources.value.addFeature(newFeature);
|
|
|
map.value.getView().animate({
|
|
|
- center: fromLonLat(nowShip.value.ol),
|
|
|
+ // center: fromLonLat(nowShip.value.ol),
|
|
|
+ // offset: [5000, 5000],
|
|
|
+ center: fromLonLat([113.6934,22.599]),
|
|
|
duration: 1000
|
|
|
})
|
|
|
};
|