I am using http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/
as a reference to how to create polygons with a hole.
I am trying to gray out most of the world and have a hole in the
polygon around NY state.
I encoded my coordinates and used the utitlity on that website to
create this code. the really long encoded string is the coordinates
for NY states boundaries and the short one is a 6 point box I created
that covers the US.
Rendered seperately these polygons come out correct; however when I
try to use them together and create the hole, the 6 point box does not
render and NY state renders with a fill.
var poly = new GPolygon.fromEncoded({
polylines: [
{ points: "c}wbMlgw|`...@ylmg@e~wkjx...@}
`udRrdsqXnihCduxsAv{_yLp_jHrdypNkmhl[fsia@",
levels: "PFHFGP",
color: "#FF0000",
opacity: 0.7,
weight: 3,
numLevels: 18,
zoomFactor: 2
},
{ points:
"wpnbg~qyen...@_xfccdmkpysxissdcshrsdwqjuew{dz~igil_wbs|
bntl{xgwgcic{_g_`ffjdshlnpgmerpc...@jxugeb@kobbgekcqjgrfa...@gbrwoj_ofoso_oko`god@klLobFwgN_}
Iw{Dg|ekdpglceakoybq{kcxcebhgcec}h_mg}kackleynwzv...@s_ssf\\ckgwrkgod}
nFcvD{zKkmI}iVwwFsrVgxB}
z...@s]opncfbmyc_tawvizaasclzj{~inko{zju@kppachasgpa_]...@_ncbnzqcbhaflc}
gb~ohpivvnluebtekbgfrjhue~~wv_c~zestaj_pkllzf...@~cnn`gnwmiycrdnltlvjobbdjik~rdfwew{dvlnvgnxjgmenxjbfbrjfc~ef~xllljaj|
z...@vsc{ffs|gk}akbbs_nz{hv...@skh~vgstabtr@rta...@l}
a...@`fb~rigqcvgv@nkSv_iAzaZvcK}vBfpZ|
z...@ljqb~mipboculbytttn@vbnmikfp...@xteuugabm@e{{EgiLssjAwzGocWk_AqdIvxWy}
wdojvgxjno`gndpanjhffiqzycbrkhrcrasvebyjn~g...@sv@dbdkk^i_...@kwxwvsisfsbtmjmq_xkoh}
af~}p...@nk|b{cefynomcrikfjnvusml...@caqzvmk`mu{dsrqxnb_eu`jzcpvhk^fef}
LgE`hxHnK|fmOgEzfFkmcB?",
levels: "PDFDEP",
color: "#00FF00",
opacity: 0.7,
weight: 3,
numLevels: 18,
zoomFactor: 2}],
fill: true,
color: "#CCCCCC",
opacity: 0.5,
outline: true
});
map.addOverlay(poly);
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.