Reputation: 4134
Has anyone been able to get map marker clicks working on iPad? I have tried the following, which worked nicely on Google Chrome, but not on the iPad.
// Marker
var marker = new google.maps.Marker({
position: location,
title: 'Title',
map: map,
icon: '/images/marker.gif'
});
// Click listener
google.maps.event.addListener(marker, 'click', function() {
...
});
Upvotes: 2
Views: 2738
Reputation: 4134
The problem was that I was listening on "click" events when I should have been listening on "mousedown" events.
Upvotes: 5