Yandex maps how to disable scrolling and enable by clicking on the map. Help me know that through Api but I can't even catch up with how to connect it? This is done as a js library and in it you prescribe api or how?
1 answer
How to get started with the API is best described by documentation .
You can disable scaling when scrolling through the map behavior : ScrollZoom. There is an example of how to use behaviors .
You can enable click-through behavior on a map like this:
myMap.events.add('click', function(){ myMap.behaviors.enable('scrollZoom') }) Here is a working example.
|