Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sabke

    (@sabke)

    Indeed it’s possible when you put a link into your markerwindow

    But could it also be possible when you click on the marker itself???

    Thx

    Michael

    Plugin Author NickDuncan

    (@nickduncan)

    Hi Michael
    That would require some custom JS.

    Locate this in WPGoogleMaps.php :

    google.maps.event.addListener(marker, 'click', function() {
       infoWindow.close();
       infoWindow.setContent(html);
       infoWindow.open(MYMAP.map, marker);
    });

    You could then add the relevant JS code that trigger that allows you to move to an anchor on your page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Anchors’ is closed to new replies.