javascriptyandex-apiyandex-maps

Getting an address of point on click within polygon in yandex map


I'm using yandex map to identify whether address is inside of particular company's delivery zone.

I've found already working sample (yandex delivery zone api) with drawing polygons in map. It works well, but I need to get an delivery address inside of polygon.

Issue is that, when we click the polygon's area, we cannot get address of clicked point.

How to get an address inside of polygon?


Solution

  • In Yandex.Maps API you can set interactivity model for an object. It describes which events would be generated by the geoObject and which of them would be 'visible' on the map level.