Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Searching across your own objects

Save as filesEdit on JSFiddle

Searching for an object by name is implemented using the geocode function. However, this function searches among the objects on the regular or public map.

But what if you need to set up a search across your own objects and integrate it with the Yandex.Maps API? Write your own search provider, which you can use in the geocode function and in the Search on map control.

The search provider must implement the IGeocodeProvider interface. This example shows how to create your own provider and connect it to the standard Search control on the map.

The example is discussed in more detail in the club.

Пишете на JavaScript? У нас есть вакансии
Mon Oct 31 2022 13:07:25 GMT+0300 (Moscow Standard Time)