Map Zoom in Supreme Direcotory

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 8 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #360543

    Roman
    Buyer
    Post count: 232

    Hello, could please help me with these questions:

    1. How can I set the minimum zoom for the map on listing archive and search results pages in Supreme Directory?

    2. How can I allow mouse scroll zoom in and zoom out for the same map?

    Thank you.

    #360558

    Guust
    Moderator
    Post count: 29970

    Add this filter code in functions.php or as a code snippet:

    
    
    add_filter('sd_map_shortcode_args', 'modify_sd_map_shortcode_args');
    function modify_sd_map_shortcode_args($args) {
          $args['scrollwheel'] = 'true';
          $args['zoom'] = '12';
          return $args;
    }

    Thanks

    #360566

    Roman
    Buyer
    Post count: 232

    Thanks, Guust,
    after applying the code scrolling works just as expected, but I’m not sure about the minimum zoom level for the map. I would like the map not to zoom out bellow a certain level how can I do that?

    #360985

    Paolo
    Site Admin
    Post count: 31211

    That is not an option, I’m sorry

    #361072

    Roman
    Buyer
    Post count: 232

    Hi Paolo,
    I came across this post recently https://wpgeodirectory.com/support/topic/can-i-set-a-minzoom-on-the-map/ isn’t it something that can be applied to Supreme’s Map as well?

    Thanks.

    #361246

    Paolo
    Site Admin
    Post count: 31211

    oh yes I didn’t remember about that.

    The maps are always from the plugin, never from the theme, so yes you just need to know the map name (you can get that with firebug or developer tools): https://wpgeodirectory.com/support/topic/can-i-set-a-minzoom-on-the-map/#post-297570

    Thanks

Viewing 6 posts - 1 through 6 (of 6 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