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:
- if (this.closed || gpoints[0].equals(gpoints[length-1])) {
+ 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.
Original issue reported on code.google.com by estee...@gmail.com on 24 May 2010 at 10:22
Original issue reported on code.google.com by
estee...@gmail.com
on 24 May 2010 at 10:22