Min zoom on map for single result

Home Forums Calendar Products Events Calendar PRO Min zoom on map for single result

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1222286
    Adage
    Participant

    Hello,

    I wonder how I may set a min zoom on map for single venue page.

    Thank you.

    #1222940
    Nico
    Member

    Hi there Adage,

    Glad to help you out on this one as well! Can you clarify a bit on the requirement? You want to set a fixed zoom level just for single venue pages?

    Please let me know about it and I’ll try my best to help,
    Cheers,
    Nico

    #1223017
    Adage
    Participant

    Hello,
    Yes that’s it : the actual map shows the whole city ; I want to show only the neighbourhood.
    It’s more a “minimum” zoom than a “fixed” zoom since the user should be able to zoom and unzoom manually.

    Also, I’d like not to allow scrollwheel zoom and dezoom ; how can I do that ?

    Thank you.

    #1226275
    Nico
    Member

    Thanks for clarifying Adage!

    If you want to change the zoom of all embed maps, you can do so from ‘WP-Admin > Settings > General > Google Maps default zoom level’. But if you just want to target single venue pages, you can use the following snippet (paste it in your theme’s (or child theme’s) functions.php file):

    https://gist.github.com/niconerd/b747a80afb2b33c5fa6d7deede65b1f8

    For the scroll wheel, it’s not so easy to do it for embed maps. You can find some suggestions here → http://stackoverflow.com/questions/21992498/disable-mouse-scroll-wheel-zoom-on-embedded-google-maps

    Please let me know if this helps,
    Best,
    Nico

    #1243018
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Min zoom on map for single result’ is closed to new replies.