Google Maps Markers not rendering in Chrome v27

2019-05-26 19:32发布

问题:

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
)