Kml layers doesn't update when reloading the page

后端 未结 2 1300
心在旅途
心在旅途 2021-01-17 22:43

[EDIT] it seems the problem comes from google maps which takes some time to update the KML link...I\'m not sure, but in the end, it works...[/EDIT]

I embedded an exi

2条回答
  •  情歌与酒
    2021-01-17 23:33

    Or you can simplify it even further and use:

    var URL = '[your kml url here]&ver=' + Date.now();

    var georssLayer = new google.maps.KmlLayer(URL);

提交回复
热议问题