Hello,
I'm trying to make encoded polygons with donuts (islands / holes) in
it.
In Google Earth (non-encoded points and levels) it is drawn well and
looks like this:
www.gisdro.nl/DONUT/Donut.kml
But when I encode the polygons and use this in Google Maps it looks
like this:
www.gisdro.nl/DONUT/
I use this piece of code:
new GPolygon.fromEncoded({
polylines: [
{points: "urp~H{m}\
\rG_GW}@hNsMpQ{HgE_MeFhD{GfA_GoBmA_AeCaDaB_EmAiE_Pwy@{AaF{CgFqCsCaFeCsB[oQZ }Co@aE{BLlUd@bFr@`ApD|
I~GzMf@lCJrD\
\vCTDtBpCt@hB^jCVjJnBpL`@fMhApBv@`CFnBKnEV`Ch@jB`C`Ff@xBGFRxAvX{JiRo~@D_@iJ cl@[KcI`FAf@`AlFf@x@jBhKXfCJ|
Dr@`G^j@fBt@@b@jGyD",
levels:
"PCCEFHCFCAGACECBGBDDBIBEABDBADABFACCDACABDACAAIGCABHBFBACAAFBBEP",
color: "#FFFFFF",
opacity: 1,
weight: 2,
numLevels: 18,
zoomFactor: 2},
{points: "urp~H{m}\
\rG_GW}@hNsMpQ{HgE_MeFhD{GfA_GoBmA_AeCaDaB_EmAiE_Pwy@{AaF{CgFqCsCaFeCsB[oQZ }Co@aE{BLlUd@bFr@`ApD|
I~GzMf@lCJrD\
\vCTDtBpCt@hB^jCVjJnBpL`@fMhApBv@`CFnBKnEV`Ch@jB`C`Ff@xBGFRxAvX{J",
levels: "PCCEFHCFCAGACECBGBDDBJBEABDBADABFACCDACABDACAAGP",
color: "#FFFFFF",
opacity: 1,
weight: 2,
numLevels: 18,
zoomFactor: 2}],
fill: true,
color: "#FF0000",
opacity: 0.7,
outline: true
});
It makes no diffference when I change the order of the polygons.
The polygons are drawn well seperately, so no issue with the encoding.
What's going wrong?