Maps Features

Posted by Community Admin on 03-Aug-2018 18:44

Maps Features

All Replies

Posted by Community Admin on 19-Jun-2013 00:00

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?

Thanks,
Marcy

Posted by Community Admin on 19-Jun-2013 00:00

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.close();
        infoWindow.setContent("Put HTML markup here including directions link");
        infoWindow.open(map, marker);
    );

This thread is closed