D
D
Dmitry2018-05-21 19:18:36
Google Maps
Dmitry, 2018-05-21 19:18:36

Google Maps Api - POLYGONS. How to quickly register coordinates?

I overlay my image (layer) with the master plan of the microdistrict under construction on google maps.
I do according to the instructions: https://developers.google.com/maps/documentation/j...

var historicalOverlay;

      function initMap() {
        var map = new google.maps.Map(document.getElementById('map'), {
          zoom: 13,
          center: {lat: 40.740, lng: -74.18}
        });

        var imageBounds = {
          north: 40.773941,
          south: 40.712216,
          east: -74.12544,
          west: -74.22655
        };

        historicalOverlay = new google.maps.GroundOverlay(
            'https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
            imageBounds);
        historicalOverlay.setMap(map);
      }

I need to outline with polygons a lot of objects with complex geometry. To do this, you need to register the coordinates of each point of the polygon. Since these buildings are not yet on a clean google map, you have to select the coordinates of each point of the polygon by touch.
Question: Is there any way to get the coordinates by poking the mouse?
Well, for example, I poked somewhere, and longitude and width appeared in a separate window. And I already enter these values ​​into the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
agent7, 2018-06-09
@agent7

I think this will help you
www.birdtheme.org/useful/v3tool.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question