Google Maps Markers not rendering in Chrome v27

隐身守侯 提交于 2019-12-10 11:05:39

问题


Using Chrome v27.0.1453.93. Markers do not render using the latest google maps api version. Markers render in Safari and FF. Chrome development tools indicate an Uncaught Type Error in Line 10 of https://maps.gstatic.com/intl/en_us/mapfiles/api-3/13/2/main.js.

I removed the deprecated MarkerImage class but it's still throwing a js error in Chrome.

This used to work. Implemented url is here.

Anyone else seeing this?

Thanks in advance.


回答1:


I found a solution to this problem: add the parameter optimized: false when you create you marker. I don't know if there are other impacts with this parameter.

marker = new google.maps.Marker(
  optimized: false
)


来源:https://stackoverflow.com/questions/16800204/google-maps-markers-not-rendering-in-chrome-v27

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!