阅读背景:

如何删除Google Maps V3的所有图钉?

来源:互联网 

I am currently working on a code where we have a world map. On this map, the users position (you) is marked with a white marker. And there is so called "drivers" which drive around on our globe. The drivers position is taken from an API which my friend has written. But now to the problem, when our site here grabs values from all drivers which is shown on the API, it add their position. Then after 3000 ms, it grabs values again. Which means that drivers pins adds again, again and again, over each other. That due to my loop which grabs values from our API every 3000 ms. How could I use the code I got now, and make all drivers pins to be removed 100 ms before values are grabbed from my API?I am currently working on a code where we have




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: