google maps javascript API v3 and markerWithLabel

樊博雅
2023-12-01

最近公司车辆位置服务系统地图出现标注图片叠加到一块了,客户都艹了,boss让我看看到底是什么情况。

系统开发上线使用是在2013年十月初,当时地图使用的google 的javascript API V3,引入:“maps.google.com/maps/api/js?sensor=false”。

当时google map javascript API V3版本是3.15,标注使用的是markerWithLabel 1.1.5,可以将车辆的信息标注在地图上,Icon是不重叠的。

现在google map javascript API V3 版本是3.16,而maps.google.com/maps/api/js?sensor=false的意思是获取当前google 最新在线API。

maps.google.com/maps/api/js?sensor=false&v=3.16 <======>maps.google.com/maps/api/js?sensor=false,版本升级后导致markerWithLabel

不兼容,无奈之下只好将maps.google.com/maps/api/js?sensor=false该成maps.google.com/maps/api/js?sensor=false&v=3.15,这样问题就解决了。

参考如下连接:

statckoverflow

 类似资料:

相关阅读

相关文章

相关问答