let icon = {
url: 'http://www.dabaoku.com/gif/170/gif001.gif', // 20px x 20px icon
anchor: new window.google.maps.Point(20, 20) // anchor is in the center at 10px x 10px
}
let marker = new window.google.maps.Marker({
position: new window.google.maps.LatLng(lat, lng),
icon: icon,
zIndex: 9999,
optimized: false
})
注意:optimized: false (google map api v3)