R
R
Rodion Yurchenko2017-04-10 21:24:03
JavaScript
Rodion Yurchenko, 2017-04-10 21:24:03

How to import polygons from google maps (area outline)?

Good afternoon!
Given:
The site has a Google map on which you need to draw a city area using leaflet.draw
Now I have implemented a simple drawing of a polygon + saving in the database
But some areas are quite difficult to draw "for memory"
If you ask Google for the same area, then Google, in addition to everything gives out a map + the polygon of this area is drawn on it (attached the screen below)
Do: Is it possible, and if "yes" then how can I import this polygon directly to the map that is on the site?
6321c7a1bd904a39b01ef177f611b853.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor L, 2017-04-11
@Fzero0

Well, as an option, open google maps, enter ivanovka, a polygon appears then -> button share tab -> code and there for the frame there will be a link with parameters
just keep the link and upload the necessary map to your site
or read about the parameters
1
2

F
freeExec, 2017-04-11
@freeExec

In general, Google prohibits making derivative maps from its services. As well as showing maps not through their API. So you are on a slippery slope.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question