折线静态地图URL字符错误

时间:2016-07-15 22:46:22

标签: google-maps url static polyline google-static-maps

我正在尝试使用静态地图网址获取折线图。我的问题是看起来像一个角色(也许^)没有帮助我制作地图,它显示了全球地图。 这是我的折线:

mzxnEfswpUQVmCoCmAgAiDsD ?? GNUS_HqGeC} B {AuAy @ú@ oCcD ?? KPUSoBiBMMIG} EoEtBmC ?? SQNYP] jCuEhCuE {I {I 14 IL _ @ _ @ kF_FMIOOUSSUIG [WgB_BYWk @} @ ?? IJ_A {@ WWOOc @] BW @瓦@ gAAq @ C_C的ΔE@@ [佛@@ @ KBQJo @吨QA ?? WKDW ^ {的mB {1}}} AkBBMZ @ ?? SCB _ @] Q 2 O @ Ew的@的Ca @ CWGa @ GWG]齐@ IUUa @ EMKQGIWiB ?? QJSg @ {BuGcCaK ??联安特派团@ ADCK] CC ?? UJK] iAkDGUE [MgARk @ ?? YDkAsS ?? WDC_ @ KeAKuAK_AKc @ q因子@ {BSK @的Fc @ ?? QPS] S] kIgNiB}℃ } @} A _ @ _ B 12 SRIKqBiD_BkCq @ 的Ag @ö@沃顿沃顿@ EAS [uBmD {@yA并[c @ QS []毫米@ ?? GX] S @的Qm @ WSEYKg @镁@ @千兆克@ AkAAe] ??? \ W @?OLI @ ??升@ ^米@ ASAOAUAa @ ISEA @慕@ Y染色体长臂@]●@一个@ WQ] [I @米@沃顿@ Q_ @ IM [ AQC @柯@ SgAGo @ T [?? YDE @仙@ AgCAkDCuEXk @,θY?AAE?}甲?wCVo @ ?? W'A} AAMD?oFTkI ?? Wn的@? ø@?CE?{坝@ EmAC_ @ CWS {AGSOk @于@]} @ @连接?? UPM [sDeH} BWE {@gBAw @ ?? UPA @} @ QB}不要@ uA_ @米@} @}的cB的AoC] AB ?? SPeAkBmA {贝@ gAaFcK ?? BV @ Wc中@} B} DSC {EgAmBsA_CsDmGk @ aAaCmE_ @ AB ?? SRGKOUKSoAoBaA {胡@ WAK @ e抗原@ EA [} @的iA} DB_A ?? WLmAcFaAqDkCkJwAmFDy @ ?? UJeA_Eq @iCYgAqBmHgDeO ??? FAU {@uAgFsB}李国华@ gCsB {您好@ SBB {@ ?? UJUy @镁@瓦特@剪辑} AOG {@oDWgAF {@ ?? UJ] yAQaA {@ qEUmAi @ cCUqAG [WmAK [IA @马@克@ qAOg @ IYKa @ Pe的@ ?? YJQ_Ak @ UCK @ gDUkAOs @?WA ?? WJOu @ CIU @ kD的[ABW @ {窦@ RC @ ?? YHIi @林@ MkAMiAO}自治系统CEK @ UcDC]的Gq @@ OG ?? WDCw @ KoCCQKaCQcC _ @ {EWyCIkAEq @?SG ??的UI @ CK @金@ UII} @_ I @ ?? UbACaAa @ YY ??乌尔@ AQ @一个@ y M的] YW ?? SbAEaAGoBKeCAeB @ yAHmED_DKs @ ISQUIGa @ E {AC_ @ EM @ | d

如果我在这样的网站中插入我的折线,它会起作用: https://developers.google.com/maps/documentation/utilities/polylineutility

但是当我尝试创建我的静态URL时不起作用。这是我的链接:

https://maps.googleapis.com/maps/api/staticmap?size=900x900&path=weight:5%7Ccolor:orange%7Cenc:mzxnEfswpUQVmCoCmAgAiDsD??GNUS_HqGeC} B {AuAy @ú@ oCcD ?? KPUSoBiBMMIG} EoEtBmC ?? SQNYP] jCuEhCuE {I {I 14 IL _ @ _ @ kF_FMIOOUSSUIG [WgB_BYWk @} @ ?? IJ_A {@ WWOOc @] BW @瓦@ gAAq @ C_C的ΔE@@ [佛@@ @ KBQJo @吨QA ?? WKDW ^ {的mB {1}}} AkBBMZ @ ?? SCB _ @] Q 2 O @ Ew的@的Ca @ CWGa @ GWG]齐@ IUUa @ EMKQGIWiB ?? QJSg @ {BuGcCaK ??联安特派团@ ADCK] CC ?? UJK] iAkDGUE [MgARk @ ?? YDkAsS ?? WDC_ @ KeAKuAK_AKc @ q因子@ {BSK @的Fc @ ?? QPS] S] kIgNiB} ç} @} A _ @ _ B 12 SRIKqBiD_BkCq @ 的Ag @ö@沃顿沃顿@ EAS [uBmD {@yA并[c @ QS []毫米@ ?? GX] S @ @ Qm的WSEYKg @镁@ @千兆克@ AkAAe] ??? \ W @?OLI @ ??升@ ^米@ ASAOAUAa @ ISEA @慕@ Y染色体长臂@]●@一个@ WQ] [I @米@沃顿@ Q_ @IM [ AQC @柯@ SgAGo @ T [?? YDE @仙@ AgCAkDCuEXk @,θY?AAE?}甲?wCVo @ ?? W'A} AAMD?oFTkI ?? Wn的@ 2 O @?CE?{坝@ EmAC_ @ CWS {AGSOk @于@]} @ @连接?? UPM [sDeH} BWE {@gBAw @ ?? UPA @} @ QB}不要@ uA_ @米@} @的cB }的AoC] AB ?? SPeAkBmA {贝@ gAaFcK ?? BV @ Wc中@} B} DSC {EgAmBsA_CsDmGk @ aAaCmE_ @ AB ?? SRGKOUKSoAoBaA {胡@ WAK @ e抗原@ EA [} @的iA} DB_A ?? WLmAcFaAqDkCkJwAmFDy @ ?? UJeA_Eq @ iCYgAqBmHgDeO ??? FAU {@uAgFsB}李国华@ gCsB {您好@ SBB {@ ?? UJUy @镁@瓦特@剪辑} AOG {@oDWgAF {@ ?? UJ] yAQaA {@ qEUmAi @ cCUqAG [WmAK [IA @马@克@ qAOg @ IYKa @ Pe的@ ?? YJQ_Ak @ UCK @ gDUkAOs @?WA ?? WJOu @ CIU @ kD的[ABW @ {窦@ RC @ ?? YHIi @林@ MkAMiAO} ASsCEk @ UcDC]的Gq @ @oG ?? WDCw @ KoCCQKaCQ CC _ @ {EWyCIkAEq @?SG ??的UI @ CK @金@ UII} @_ I @ ?? UbACaAa @ YY ??乌尔@ AQ @一个@ y M的] YW ?? SbAEaAGoBKeCAeB @ yAHmED_DKs @ ISQUIGa @ E {AC_ @ EM @ | d

如果我稍微修改第一个^作为随机字母作为" m"它工作,但这改变了我正在搜索的坐标。有谁知道我做错了什么?

请注意,在折线中,我们不需要像文档google developers static-maps文档中所述的中心和缩放。

这是我在这里的第一篇文章,所以我将非常感谢你的帮助!

1 个答案:

答案 0 :(得分:1)

因为在编码折线的末尾似乎缺少@

https://maps.googleapis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