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
At present, when creating a polyline where the first and the last points
are equal, the resulting curve is automatically converted to GPolygon
without an 'opt-out' alternative.
What if to enable such a case, making the following patch to
mxn.google.core.js:504:
Remove:
if (this.closed || gpoints[0].equals(gpoints[length-1])) {
Add:
if (this.closed || !('closed' in this) && gpoints[0].equals(gpoints[length-1])) {
Basically, what it does is checking if a .closed field isn't present before
checking endpoints. This way it's now possible to enforce closed GPolyline
by explicitly setting .closed = false.
Activity