Show Individual Map on GD Archive Item

This topic contains 6 replies, has 3 voices, and was last updated by  Kor 4 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #541857

    Ashley Appadoo
    Expired Member
    Post count: 17

    I am trying to display individual maps on the GD Archive page for each listing.

    I have added the ‘gd_map’ shortcode to the ‘GD Archive Item’ page, but I cannot pass the post_id so that it shows the map with one marker under each listing on the archive page.

    See attachment.

    Shortcode used: [gd_map width=”100%” height=”125px” maptype=”ROADMAP” zoom=”12″ map_type=”auto” post_settings=”1″]

    #541953

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    generally speaking we don’t support more than one active map on a page at a time.

    Since you are using Google you can try using a static map for that.

    
    
    
    [gd_map width="100%" height="425px" maptype="ROADMAP" zoom="0" map_type="post" post_settings="1" static="1"]
    
    #542092

    Ashley Appadoo
    Expired Member
    Post count: 17

    Hi Alex,

    Thank you for the static map tip, I didn’t have the Static API set up so configured that and it is working now.

    Width 100% doesn’t work with this shortcode as it brings back a width of 100px so I’ve set it a bit bigger than needed and hidden the overflow in CSS.

    Additionally, when using Grid 4 or 5 it throws the static maps off as the location is directly in the middle which is cut off in these grid views, see attachment.
    I will play around with some css to see if I can dynamically recenter the image, but if you have any ideas please let me know, I will update when I find a fix for this.

    #542096

    Ashley Appadoo
    Expired Member
    Post count: 17

    When clicking on the static map it then says:
    Sorry, no records were found. Please adjust your search criteria and try again.

    Is there a template file where I can change this behaviour, either take the link off or link it to the listing detail page for the post?

    #542126

    Kor
    Moderator
    Post count: 16516

    Hi Ashley,

    Thanks for your reply. Which static link did you click on? Could you share the URL of the page in question? Also, share your Website WP admin access here in private reply.

    #542133

    Ashley Appadoo
    Expired Member
    Post count: 17
    This reply has been marked as private.
    #542158

    Kor
    Moderator
    Post count: 16516

    Hi Ashley,

    Thanks for your reply. If that’s the case, you can disable the static map click using the custom CSS code below.

    img.geodir-static-map-image {pointer-events:none;}
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