markers with animated gifs don't work in api v3

2,680 views
Skip to first unread message

uno

unread,
Mar 2, 2011, 4:04:43 PM3/2/11
to Google Maps JavaScript API v3
hello, i'm currently switching from api v2 to v3. in v2, i've used
animated gifs here & there, but in v3 the animation doesn't work on
the normal satellite and road map. (however, they work in street view
mode). is this a known issue or did support for animatited gif stop in
v3? thanks for tips, uno

DJGorman

unread,
Mar 3, 2011, 1:25:54 PM3/3/11
to Google Maps JavaScript API v3
I'd be interested in knowing what happened with this as well. My
animated gifs were working in V3 up until sometime over the past
week. Did a recent update break it?

geoco...@gmail.com

unread,
Mar 3, 2011, 2:19:35 PM3/3/11
to Google Maps JavaScript API v3
On Mar 3, 10:25 am, DJGorman <dan.j.gor...@gmail.com> wrote:
> I'd be interested in knowing what happened with this as well.  My
> animated gifs were working in V3 up until sometime over the past
> week.  Did a recent update break it?

What version of the API are you using? If it is the development
version, try reverting to v3.3...

http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning

-- Larry

>
> On Mar 2, 1:04 pm, uno <radio.apo...@googlemail.com> wrote:
>
>
>
> > hello, i'm currently switching from api v2 to v3. in v2, i've used
> > animated gifs here & there, but in v3 the animation doesn't work on
> > the normal satellite and road map. (however, they work in street view
> > mode). is this a known issue or did support for animatited gif stop in
> > v3? thanks for tips, uno- Hide quoted text -
>
> - Show quoted text -

Chad Killingsworth

unread,
Mar 3, 2011, 2:30:19 PM3/3/11
to google-map...@googlegroups.com
Sure did: https://groups.google.com/d/topic/google-maps-js-api-v3/LeDqN1ZwY9g/discussion

As a workaround, try setting draggable: true on your markers.

Chad Killingsworth

DJGorman

unread,
Mar 3, 2011, 2:52:04 PM3/3/11
to Google Maps JavaScript API v3
I've noticed that you can get animated GIF markers to work if you use
the MarkerImage overload of Marker.setIcon instead of the String:

Instead of:
myMarker.setIcon(myIconUrl);
try:
var myIcon = new google.maps.MarkerImage(myIconUrl);
myMarker.setIcon(myIcon);


On Mar 3, 10:25 am, DJGorman <dan.j.gor...@gmail.com> wrote:

2sb

unread,
Apr 10, 2013, 3:13:25 PM4/10/13
to google-map...@googlegroups.com
Amazing that i found this link. For me it has stopped working now in 2013 :) 
Draggle works but i can't make my icon draggble because it is a radar image on a particular location :)

Barry Hunter

unread,
Apr 10, 2013, 5:50:11 PM4/10/13
to google-maps-js-api-v3
Guessing, try setting {optimized:false} as part of MarkerOptions. 

optimized is turned on by default, and renders the markers on a Canvas where possible, animated gives probably dont work on a canvas. 



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-a...@googlegroups.com.

To post to this group, send email to google-map...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

geoco...@gmail.com

unread,
Apr 12, 2013, 12:11:39 AM4/12/13
to Google Maps JavaScript API v3
On Apr 10, 5:50 pm, Barry Hunter <barrybhun...@gmail.com> wrote:
> Guessing, try setting {optimized:false} as part of MarkerOptions.
>
> optimized is turned on by default, and renders the markers on a Canvas
> where possible, animated gives probably dont work on a canvas.
>

From the (current) documentation:
https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions
optimized | boolean | Optimization renders many markers as a single
static element. Optimized rendering is enabled by default. Disable
optimized rendering for animated GIFs or PNGs, or when each marker
must be rendered as a separate DOM element (advanced usage only).

-- Larry

>
>
>
>
>
>
> On Wed, Apr 10, 2013 at 8:13 PM, 2sb <2sbs...@gmail.com> wrote:
> > Amazing that i found this link. For me it has stopped working now in 2013
> > :)
> > Draggle works but i can't make my icon draggble because it is a radar
> > image on a particular location :)
>
> > On Thursday, March 3, 2011 11:30:19 AM UTC-8, Chad Killingsworth wrote:
>
> >> Sure did:https://groups.google.**com/d/topic/google-maps-js-**
> >> api-v3/LeDqN1ZwY9g/discussion<https://groups.google.com/d/topic/google-maps-js-api-v3/LeDqN1ZwY9g/d...>
Reply all
Reply to author
Forward
0 new messages