Map Markers Not Displaying (JavaScript/Google Maps API V3)

后端 未结 2 2074
灰色年华
灰色年华 2021-01-13 20:56

I\'m having trouble getting map markers to display using Google Maps API v3. I\'m attempting to keep them all in a single array, to make displaying a large amount relativel

2条回答
  •  情歌与酒
    2021-01-13 21:24

    It's the new keyword that makes all the difference!

    I had the same problem. Using the new keyword when constructing the Marker object makes it work again in Chrome at least. Putting it in a differed timeout event didn't. And here I thought new was nothing but syntactic sugar...

提交回复
热议问题