Reputation: 45943
Here's the functionality I am looking for:
How do you create the click events for the above?
Also, how do you disable the pan functionality? I tried panControl: false
but that didn't seem to do anything.
Upvotes: 0
Views: 134
Reputation: 31912
panControl just removes the pan control thing that normally appears in the top-left corner, it doesn't prevent the user actually being able to pan the map. You probably want to set draggable:false
For the click events, you do something like:
var infowindow = new google.maps.InfoWindow({
content: 'Hello World!'
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map, this);
});
google.maps.event.addListener(map, 'click', function() {
document.location.href = "bigmap.html";
});
Upvotes: 1