开发者

Tile-Overlay Animation - Bing / Google

开发者 https://www.devze.com 2023-02-01 22:51 出处:网络
I\'ve created a tile set, and this tile set expires every 10 mins.However I want to be able to show a cycle of the past 50 mins (of stored tiles i have).

I've created a tile set, and this tile set expires every 10 mins. However I want to be able to show a cycle of the past 50 mins (of stored tiles i have).

I know with Google Maps 2.0 you can do this with tog开发者_开发问答gling the map tiles on / off, however google 3.0 (since it's mobilized) doesn't seem to have a real clean way of doing this that I've found so far.

Is there a good way to do it with either google 3 or bing that you've seen/used?

Cheers


The issue is likely because that tiles are cached. Try appending a timestamp to end of the tile's url. When you want to change the tiles, update the timestamp then turn the layer off then on. I have updated google v2/v3 and bing 6.2 tile overlays in this manner without any issues.

0

精彩评论

暂无评论...
验证码 换一张
取 消