percent-encoded URLs are mangled by Google Earth

前端 未结 1 1209
情话喂你
情话喂你 2021-01-22 10:01

In a KML file for Google Earth consumption I am using Google Charts dynamic icons whose URLs contain percent-encode characters, e.g., this one. As can be seen by intercepting ne

1条回答
  •  长情又很酷
    2021-01-22 10:44

    I came back to this after a long lull and found the answer. Even though you are inserting an URL and thus URL encoding guidelines should apply KML expects special entities to be Unicode- and not URL-encoded even in URLs! In other words you need this:

    http://chart.apis.google.com/chart?chst=d_map_pin_letter_withshadow&chld=•|cccccc|000000
    

    In retrospect the fact that that it requires "" for the ampersand should have put me on the right track but hindsight is always 20/20...

    0 讨论(0)
提交回复
热议问题