change zoom level of marker

New home Forums Pro Add-on General queries change zoom level of marker

Tagged: ,

Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #69092
    caleb1
    Participant

    Just noticed something went wrong with my video recorder making the playback very fast. Hopefully you can slow down the playback or pause to see everything that happens. Let me know if you need any clarification or more info.

    #69108
    Dylan
    Moderator

    Hi there,

    Thank you for getting back to me. Yes, I see, it appears the override is not applying in this case.

    Please try replacing this script with the following instead:

    jQuery(function($){
        $(document.body).on("click", ".wpgmaps_mlist_row, .wpgmaps_blist_row", function(event) {
            WPGMZA.maps[0].setZoom(1);
        });
    });

    I believe this is due to the fact that our initial even binding happens sooner than the override function occurs. This means this static binding should work as expected.

    I hope this helps?

    #69166
    caleb1
    Participant

    I tried that code and at first it did not work, but then I realized I had another function in my custom JS section that was causing an issue. (it was there from when I was trying to fix another issue but was unsuccessful, and I did not remove the code)
    After removing that unneeded function it works as intended now.
    Your help is very much appreciated. You are the best!

    #69171
    Dylan
    Moderator

    Hi there,

    Only a pleasure, so glad to hear that helped you achieve the desired functionality.

    🙂

Viewing 4 posts - 31 through 34 (of 34 total)
  • You must be logged in to reply to this topic.