You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The linear rings in polygons in GeoJson have this extra vertex. So it could be removed (go up to length-1), when copying/transforming, like your script does.
for(vark=0;k<geojsonGeometry.coordinates[i][j].length;k++){// the ring: array of coordinates, where first/last coordinate/vertex/point matchvarll=newgoogle.maps.LatLng(geojsonGeometry.coordinates[i][j][k][1],geojsonGeometry.coordinates[i][j][k][0]);bounds.extend(ll);path.push(ll);}
Thats all :)
The text was updated successfully, but these errors were encountered:
Hello,
thanks for the script.
While debugging my code, i came to see this in the spec:
"Paths are closed automatically; do not repeat the first vertex of the path as the last vertex."
See:
https://developers.google.com/maps/documentation/javascript/reference#PolygonOptions
The linear rings in polygons in GeoJson have this extra vertex. So it could be removed (go up to length-1), when copying/transforming, like your script does.
Thats all :)
The text was updated successfully, but these errors were encountered: