B
B
beefront172019-02-19 20:04:55
JavaScript
beefront17, 2019-02-19 20:04:55

How to implement a map?

Good afternoon! Can you please tell me the best way to implement the map?
You need to draw a map of the United States and lat, longbring certain objects to it, like so here
you just need to take something easier and free.
React project.
The question is if there is a svg map how to add these elements?
I would be grateful for any advice on this topic)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rodion Meshcheryakov, 2019-02-19
@beefront17

I solved a similar problem some time ago and used the following library https://www.react-simple-maps.io/
There, the map is simple, you can display custom markers, and limit geography to the US borders

A
Alexander, 2019-02-19
@NeiroNx

on svg it is necessary to write an eleptic coordinate converter. I would take the library https://leafletjs.com/ - the simplest of the free ones.

A
anjiJa, 2019-03-01
@anjiJa

Here it is:
https://foobaa-e6a06.firebaseapp.com/maps
i implemented with
https://mapbox.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question