Google Maps JS API v3 and looping animated gif's

后端 未结 1 1164
渐次进展
渐次进展 2021-01-26 13:12

I can\'t seem to loop animated gifs with the Google Maps API. It plays the animation the first time around but will not play it again after that.

Can anyone point me in

1条回答
  •  滥情空心
    2021-01-26 13:21

    Key is to set optimized: false, but since you already have and its not working - I tested to create own simple example and it worked.

    
    
      
        
        
        Google Maps JavaScript API v3 Example: Marker Simple
        
        
        
      
      
        

    Edit it as you please to suit your needs, you can also try to swap using of google.maps.MarkerImage to google.maps.icon because MarkerImage seems to be deprecated see : MarkerImage and Icon.

    Good luck with da code.!

    0 讨论(0)
提交回复
热议问题