GD – GMap Listing Page Settings

This topic contains 6 replies, has 4 voices, and was last updated by  Alex Rollin 7 years ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #409555

    James Barker
    Full Member
    Post count: 91

    There are settings on the GMap widget to choose which map view you want. I’m having an issue with the snazzymaps custom code – and actually, it’s not just theirs, it’s more to do with how Google Maps is interpreting complex spaces around the Las Vegas Strip – at any rate, the closer I zoom in, the worse it looks with uncolored sections. I have the map on the detail page set to Terrain which, when zoomed in, at least shows the inside of (most) structures without any weird abnormalities. For the time being, I’d like to use this setting for the listing page but selecting it in the widget settings doesn’t make any changes; it appears to stay on the roads map (I can tell because the terrain map negates the neon green on the roads and it’s still there despite changing the settings to Terrain in the widget and there’s also the terrain ☑️ on the map itself one can click and unclick.)

    #409608

    Guust
    Moderator
    Post count: 29970

    Where can we see this please?
    And add WP admin details too in a private reply.
    Thanks

    #409611

    James Barker
    Full Member
    Post count: 91
    This reply has been marked as private.
    #409635

    Kiran
    Moderator
    Post count: 7069

    Hi James,

    In Supreme the sidebar listing map is rendered via shortcode so it does not taking affect map view parameter from widget settings.

    Add following code snippets in your child theme functions.php file OR add it in via any snippet plugin.

    
    
    function _gd_custom_supreme_listing_map_args( $args = array() ) {
        $args['maptype']                = 'TERRAIN';    // HYBRID, ROADMAP, SATELLITE, TERRAIN
        $args['zoom']                   = 14;           // number between 1 to 19
        $args['autozoom']               = true;         // true or false
        $args['scrollwheel']            = true;         // true or false
        $args['sticky']                 = true;         // true or false
        $args['enable_marker_cluster']  = true;         // true or false
    
        return $args;
    }
    add_filter ('geodir_map_options_gd_listing_map', '_gd_custom_supreme_listing_map_args', 10, 1 );

    You can change parameters values as you want.

    Let us know.

    Thanks,
    Kiran

    #409658

    James Barker
    Full Member
    Post count: 91

    Worked great! Thanks!

    #409659

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #409702

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    You can find this snippet and many others in our FAQ under the section for Supreme Directory

    https://wpgeodirectory.com/docs/faqs/#supreme

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