关于php:如何刷新bing地图? | 珊瑚贝

How to refresh bing map?


如果我刷新页面并按下图钉,必应地图可以正常工作。但是,如果我进行 ajax 调用并加载地图,则之前的引脚会保留。如何移除这些别针?

  • 我不能不使用 remove 和 removeAt 因为我失去了对以前绘制的引脚的引用。


假设您使用的是 AJAX v7 控件,为了删除地图上以前的项目,您可以使用 EntityCollection 类中的 clear() 方法。

参见:http://msdn.microsoft.com/en-us/library/gg427616.aspx

所以如果你使用的是基本方式,你可以使用:

1
map.entities.clear();

我建议您使用 iSDK 从 API 开始:http://www.bingmapsportal.com/isdk/ajaxv7


来源:https://www.codenong.com/15984562/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9244.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?