syncfusion/ej2-angular-ui-components

Address search functionality in the maps component

pratapagiri opened this issue · 2 comments

Hi,
We are evaluating Syncfusion maps component in our application for address search functionality (for example with OpenStreetMap)
Could you please let us if this is possible and how to get this working?

Thanks
Kiran

Hi @pratapagiri ,

The Maps component does not natively support address search functionality. However, you can achieve this by creating a data source that includes latitude, longitude, and the name of each place. When you provide a name that matches an entry in your data source, you can display markers on the Maps component using the corresponding latitude and longitude values.

You can find the sample that demonstrates the same at the below link.
Sample

In the example mentioned above, we have provided a drop-down list above the map to facilitate place searching. When a user selects a name from the dropdown that matches an entry in our data source, a marker corresponding to that place will be rendered on the map.