syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
276 stars 114 forks source link

Address search functionality in the maps component #275

Open pratapagiri opened 3 months ago

pratapagiri commented 3 months ago

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

sabari-senthamaraikannan commented 3 months ago

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.