我正在尝试在 Google Maps V3 中加载多边形路径,如果编码线很短,一切正常。但如果它更长这样 - 我在上面得到错误。我认为它与“@”字符有某种关系。操作在 Chrome 中!!
polyShape.setPath(google.maps.geometry.encoding.decodePath("snfiIwfxtCXhGfEbLzAhJRbPYlPk@jHmCxJMlE?hJeBtE}Ed_@_AxN{AbLkCrGcHlTsDrKoBpNRzH?vE?jHl@pGtA~IfCfFvHpCLnBm@~FqH~[aCzRs@rZg@dI{Hx]qLze@_L|SmHpJyMfFyDoBcHiGuCwBcHtAkAs@MoFiBoF}BViBvEmGvF_ElIuAjDwJvEiB`DB|AhB|DxAnFXhGSpG_GdIgLi@gHbAsB|DWhGeB~F}FzAgAjAwEfMkH|AuBdB{@hCwBzIaBrDIzBR~BPdArCrJd@dE@rKe@vIy@`HK`NKqBrOmBfEsBvK...."));