我正在使用Google static maps API V2创建一个带有自定义蓝色标记图标的地图:
http://www.stolencamerafinder.com/images/pin-lost.png
不幸的是,我在我的自定义图片上线之前测试了网址,Google似乎以某种方式缓存了这些知识:
http://maps.googleapis.com/maps/api/staticmap?center=51.86654,-2.2480254&zoom=6&size=100x70&sensor=false&markers=icon:http%3A%2F%2Fwww.stolencamerafinder.com%2Fimages%2Fpin-lost.png%7C51.86654,-2.2480254 (如果此图片有蓝色图标,那么自我发布此问题后缓存已更新!)
<img src="http://maps.googleapis.com/maps/api/staticmap?center=51.86654,-2.2480254&zoom=6&size=100x70&sensor=false&markers=icon:http%3A%2F%2Fwww.stolencamerafinder.com%2Fimages%2Fpin-lost.png%7C51.86654,-2.2480254">
我可以通过在我的图标网址中添加一个无意义的参数来欺骗它(例如:“?a = a”):
<img src="http://maps.googleapis.com/maps/api/staticmap?center=51.86654,-2.2480254&zoom=6&size=100x70&sensor=false&markers=icon:http%3A%2F%2Fwww.stolencamerafinder.com%2Fimages%2Fpin-lost.png?a=a%7C51.86654,-2.2480254">
但是我不想为此重新部署我的应用程序。我的问题是: