D
D
DonTraffic2021-12-30 01:32:24
Yandex maps
DonTraffic, 2021-12-30 01:32:24

How to make custom buttons on Vue Yandex Map?

Hello. I want to start learning vue yandex map. Created a map through a tag and displayed a simple marker. Well, there I indulged with baluns, etc. Now my question is how to make a custom button? such as zooming in on a map or calling a vue method on click. I looked at the information on this portal: tyk . There the information comes to an end just on markers.
I also saw such a portal: poke . But as I understood there about a blank map, not vue. Please tell me where I did not look or what I did not understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-12-30
@0xD34F Vue.js

Since the documentation for the component does not say anything about this, you will have to use the ymaps api directly. To access it, use loadYmap . To access a map, get a reference to an instance of its component, the map will be available as a property of myMap. Well, you have already seen the section of the map documentation dedicated to creating buttons - so take and create .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question