Maps Features
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
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);
);