Hi, I'm using the Static Maps API to display a map with a path in an image column, using polyline encoding.
However, some URLs work while others don't, and I suspect it may be due to special characters in the polyline.
Example of a polyline that works: ld~eEfw}qJ}Gwu@yY|RjFni@
excample polyline that doesnt works:
Example of a polyline that doesn't work: lzdiExhmpJgK_uAQcDg@aIeBqGoA^yCbDcF`Ci@xA`@rArN`oB
example of complete URL (without key):
https://maps.googleapis.com/maps/api/staticmap?size=650x650&maptype=hybrid&style=feature:administrative%7Cvisibility:off&style=feature:landscape%7Cvisibility:off&style=feature:poi%7Cvisibility:off&path=color:0x00000000%7Cweight:5%7Cfillcolor:0xca25ff50%7Cenc:lzdiExhmpJgK_uAQcDg@aIeBqGoA^yCbDcF`Ci@xA`@rArN`oB&markers=color:0xf9b137%7Clabel:A%7C-33.123423, -60.513979 &markers=color:0xf9b137%7Clabel:B%7C-33.124912, -60.515218 &markers=color:0xf9b137%7Clabel:C%7C-33.120917, -60.514662 &markers=color:0xf9b137%7Clabel:D%7C-33.123849, -60.520007&key=
I tried this URL in Chrome and Edge without success, but strangely, I used the same URL to generate a PDF with a bot, and it worked perfectly, displaying the maps I wanted in the generated PDF.
I hope someone can help me. Thanks!
User | Count |
---|---|
16 | |
15 | |
4 | |
3 | |
2 |