-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing cities on the map #87
Comments
Hi @havsar If you have only a few cities, you can easily get the coordinates through Google. Just type the city name and coordinates. You will however have to make sure that the coordinates are specified in +/- values rather than North/South/East/West. Here's an example: If you want to get the coordinates for New York, Google will return something like this: 40.7128° N, 74.0060° W In order for react-simple-maps and d3-geo to understand this, you will have to specify it like this: [-74.0060, 40.7128]
If you have a lot of cities, you can also try using something like this: Hope this helps. |
Hi @zimrick Thanks for the quick response, the solution you described worked for me. I used this tool, if someone else needs: https://www.maps.ie/coordinates.html |
Maybe add a "gotchas" section to the docs with this |
My goal is to show markers for several cities on the world map.
I see on the examples that I can achieve this by setting correct marker coordinates.
But how to know the coordinates?
The text was updated successfully, but these errors were encountered: