This topic contains 1 reply, has 2 voices, and was last updated by Sofia Moss Sofia Moss 2 months, 3 weeks ago.

Controlling the Bouncing Markers

  • Hello,

    Does anyone know how to control the markers in the map so they don’t endlessly bounce? I’d like to make them bounce maybe three times when they are selected and then stop. Otherwise no bouncing at all would be preferable to the endless bounce. Searched everywhere for this control but can’t find it.

    Anyone have help? Thanks in advance!

    Share this content
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    Thank you for your inquiry, for standalone version to control the bounce, you can edit js/super-store-finder.js or js/super-store-finder-mobile.js and search for keyword below:

    marker.setAnimation(google.maps.Animation.BOUNCE);

    and change it to:

    marker.setAnimation(google.maps.Animation.BOUNCE);
    setTimeout(function(){ marker.setAnimation(null); }, 750);

    Once, saved and uploaded, clear your browser cache and refresh again.

    More resolutions available at this link here https://stackoverflow.com/questions/7339200/bounce-a-pin-in-google-maps-once

    Cheers,
    Sofia

The topic ‘Controlling the Bouncing Markers’ is closed to new replies.