Answer the question
In order to leave comments, you need to log in
How to add point on yandex map in Vue 3?
Good afternoon, there is a problem when adding a point on the map, if we use vue 3, I mean that if we do the initialization of the map through
data(){
return {
map:null
}
},
methods:{
initMap() {
this.map = new ymaps.Map(this.$refs.map, {
center:this.center,
controls: [],
zoom: this.zoom
});
},
mounted() {
this.initMap()
}
this.map.geoObjects.add(myPlacemark)
let map;
...
initMap() {
map = new ymaps.Map(this.$refs.map, {
center:this.center,
controls: [],
zoom: this.zoom
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question