If I search for “Province of Huelva, ES” on the Google Maps webpage , I get a marker and province borders with a color layer that even fills when zoomed out.
You can use the Google Maps API to get this polygon (or layer, json object, ...) and even change its color by simply providing a query string, like on a Google Maps web page?
Now I have to use regions of the LatLng value to draw the polygon, but it would be great if I could get the polygon by providing only the search bar.
Thanks guys!
source
share