Try Now
More in this section

Forums / General Discussions / Maps Features

Maps Features

2 posts, 0 answered
  1. Marcy
    Marcy avatar
    1 posts
    21 Feb 2013
    19 Jun 2013
    Link to this post
    I'm very new to Sitefinity and am looking for a way to alter how the maps associated with address fields behave. When I click on a pin representing an address, nothing happens. Instead, I'd like for it to display a balloon with the address and a link to get directions--more like the behavior you'd expect from Google Maps. Is this possible?

  2. Jonathan
    Jonathan avatar
    119 posts
    19 Dec 2012
    19 Jun 2013 in reply to Marcy
    Link to this post
    Yes, you will need to use the maps API and bind to the the click event of that marker. 
    var infoWindow = new google.maps.InfoWindow();var infoWindow = new google.maps.InfoWindow();// Created the info window that you will see when marker is clicked
    google.maps.event.addListener(marker, "click", function () {//get the marker instance that Sitefinity is using
            infoWindow.setContent("Put HTML markup here including directions link");
            infoWindow.open(map, marker);
2 posts, 0 answered