Google地图标记不会在Chrome v27中呈现 [英] Google Maps Markers not rendering in Chrome v27
问题描述
使用Chrome v27.0.1453.93。标记不会使用最新的Google Maps API版本呈现。标记在Safari和FF中呈现。 Chrome开发工具在 https://maps.gstatic.com/intl/en_us/mapfiles/api-3/13/2/main.js 。
我删除了弃用的MarkerImage类,但它仍然在Chrome中抛出js错误。
这用于工作。 已实施的网址就在这里。
预先致谢。
我找到了解决这个问题的方法:在创建标记时添加参数optimize:false。我不知道这个参数是否有其他影响。
marker = new google.maps.Marker(
优化:false
)
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.
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
)
这篇关于Google地图标记不会在Chrome v27中呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!