How to set latitude and longitude according to the address field

I am working on a project in which I want to use google map API so, how can I set latitude and longitude according to the address field for the implementation of the map facility

1 Reply 1 reply marked as answer

SB Swetha Babu Syncfusion Team March 3, 2021 02:49 PM UTC

Hi Ishan,

Thank you for contacting Syncfusion support.

We can achieve your requirement by using the CenterPosition property in the Maps component. We can add the latitude and longitude values in the CenterPosition property of the Maps which will position the map to the specific location. However, we have created a simple MVC application to demonstrate the same and it can be downloaded from the below link.

https://www.syncfusion.com/downloads/support/forum/163092/ze/Maps1371193108

In the above sample, we have rendered Google map with the marker to indicate the desired location with the center position. Please let us know if the above sample meets your requirement.

Regards,
Swetha Babu

Marked as answer
Loader.
Up arrow icon