|
@@ -31,7 +31,7 @@ export default {
|
|
// viewMode: '3D'
|
|
// viewMode: '3D'
|
|
});
|
|
});
|
|
const marker = new AMap.Marker({
|
|
const marker = new AMap.Marker({
|
|
- position: [this.$route.query.x, this.$route.query.y], // 位置
|
|
|
|
|
|
+ position: new AMap.LngLat(this.$route.query.x, this.$route.query.y), // 位置
|
|
label: {
|
|
label: {
|
|
offset: new AMap.Pixel(20, 20),
|
|
offset: new AMap.Pixel(20, 20),
|
|
content: "点击打开高德地图",
|
|
content: "点击打开高德地图",
|