Answer the question
In order to leave comments, you need to log in
How to call the destroy() method in vue-yandex-map (vue 3)?
Actually, how to destroy it when I click on the button for selecting the marker I need?
A simple version with an example from the documentation does not work, it gives an error:
export default defineComponent({
setup() {
const dataMap = reactive({
onClickYmap(e: any) {
console.log(e.get('coords'))
},
return { t, ...toRefs(dataMap) }
})
})
runtime-core.esm-bundler.js?5c40:217 Uncaught TypeError: e.get is not a function
at onClickYmap (Index.vue?22a2:853)
at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:163)
at HTMLElement.invoker (runtime-dom.esm-bundler.js?830f:301)
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