Pin (map marker) bouncing

This topic contains 8 replies, has 4 voices, and was last updated by  Karin Zickler 4 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #532733

    Karin Zickler
    Lifetime Member
    Post count: 47

    Hi, how can I adjust the pin bounce on the search results page?
    In the file map.min.js (.setAnimation(google.maps.Animation.BOUNCE)), I replaced the “BOUNCE” with “DROP” – this functions very well, but I don’t like the drop very much.
    I found this code: (.setAnimation(google.maps.Animation.BOUNCE);setTimeout(function(){marker.setAnimation(null); }, 750);

    But this don’t work. Can you help? I would like the pin bouncing once or twice.

    Thank you!

    #532739

    Alex Rollin
    Moderator
    Post count: 27815

    The developers will take a look at your topic. Thanks for your patience.

    #533286

    Kiran
    Moderator
    Post count: 7069

    Hi Karin,

    I have added filter to customize map marker animation. It will be in next release.

    You can apply patch available at here: https://github.com/AyeCode/geodirectory/commit/d868f33f724a1996667e28452571f755a67fc401

    You can try this filter after next release or after applying patch: https://github.com/AyeCode/geodirectory/commit/d868f33f724a1996667e28452571f755a67fc401#diff-1761fb2bc58919b030f187b51718a0b4R358

    Kiran

    #533297

    Karin Zickler
    Lifetime Member
    Post count: 47

    Dear Kiran,
    Great, thank you very much!

    #534172

    Karin Zickler
    Lifetime Member
    Post count: 47

    Hi,
    I’ve just updated Geodirectory and tried to set the pinpoint animation. Where can I find the setting for it?

    #534182

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Karin,

    You can set the pinpoint marker animation to
    bounce, drop or none using below filter.

    
    add_filter('geodir_map_marker_animation', 'geodir_map_marker_animation_custom_callback', 10);
    function geodir_map_marker_animation_custom_callback( $bounce ){
      $bounce = 'bounce'; // bounce, drop or none
      return $bounce; 
    }
    
    #534185

    Karin Zickler
    Lifetime Member
    Post count: 47

    Hi Naveen,
    Thank you very much. Now I can set my map markers to drop, bounce or none. Is there a possibility to let it bounce once or twice?

    #534406

    Kiran
    Moderator
    Post count: 7069

    Hi Karin,

    Sorry, bounce animation is controlled by Google MAP API. We just allowed to set animation type.

    Kiran

    #534407

    Karin Zickler
    Lifetime Member
    Post count: 47

    Ok, thank you very much.

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount