The overall task is to fill cities, within borders, with square polygons. I get the boundaries of cities:

this.map.data.loadGeoJson('server/cities.json'); 

For Moscow, for example, it is an array of> 1000 elements, sorting through its a bad idea. How to determine whether a point belongs on the map of this area (city)?

  • take the coordinates (lat / lng) by clicking on the map, and use the Google Geocoding API or something else. - Robert Dampilon

0