Support » Plugin: Basic Google Maps Placemarks » Display link to view map from template

  • Resolved Feuf



    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 !

Viewing 1 replies (of 1 total)
  • 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…

Viewing 1 replies (of 1 total)
  • The topic ‘Display link to view map from template’ is closed to new replies.