sayed falil
sayed falil

Reputation: 27

How can I visualize real city boundaries on a map from latitude and longitude data, and highlight boundaries on click?

I have a set of latitude and longitude data corresponding to various cities. I would like to:

Display these points on an interactive map (e.g., using Leaflet, Google Maps, Mapbox, or another JavaScript mapping library).

Show the actual administrative boundaries of each city (similar to how major mapping platforms outline cities).

Highlight or outline a city when the user clicks on the city name or marker. I am not sure how to:

Obtain or load the boundary (polygon) data for each city. Render these boundaries on the chosen map library. Implement interactivity (e.g., highlighting the city boundary upon click).

Could anyone provide guidance or best practices on the following:

Upvotes: -3

Views: 21

Answers (0)

Related Questions