Basic Google Maps Placemarks
[resolved] Display link to view map from template (2 posts)

  1. Feuf
    Posted 2 years ago #


    This plugin is really useful for the page I've been building : I'm using both list & map shortcodes into a page template, and I've worked on a special section that would display only some places (highlight category).
    Since it wouldn't look like the list shortcode I'm already using, I had to develop some code into the template.
    Now the issue is that I can't put a link to the map on these posts. I've been looking into core.php, shortcode-bgmp-list-marker.php and functions.js to copy the list behavior but somehow it won't link to the map.
    I wanted to had a line under this one (in functions.js) that would add event listeners on my section and not only into the shortcode :

    $( '.' + $.bgmp.prefix + 'list' ).find( 'a' ).filter( '.' + $.bgmp.prefix + 'view-on-map' ).click( $.bgmp.viewOnMap );

    Maybe the function file is only targetting the shortcodes so I can't access the rest of the template.

    Any information would be usefull, thanks !


  2. Feuf
    Posted 2 years ago #

    Forget about it, it's working !
    I've been refreshing the page for about a billion times but today the link is redirecting to the pointer on the map.
    Mysteries of coding...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic