We are experiencing an issue related to Google Maps API V3. The issue is that while we drag the Marker the map also starts dragging.
We are experiencing this issue ONLY on Touch Screens in Windows 8 Environment + Internet Explorer, its fine on NORMAL screens / Mobile Screens - IPaid/ other browsers (Safari and FireFox).
We used below solution, but it throws error (eval javascript error
) in Internet Explorer9 and 10:
google.maps.event.addListener(marker, 'dragstart', function(){
mapObject.setOptions({ draggable: false });
});
google.maps.event.addListener(marker, 'dragend', function(){
mapObject.setOptions({ draggable: true });
});
We have also reported this issue here: gmaps-api-issues
EDIT:
We have a posted a related question here also.
Some success At Last (the map still move a bit but can be ignored at the moment)!
Declared two variables:
When Marker is dragged:
When Marker is dropped (drag ends):
When the Map Drag starts:
When Map is in dragging state:
Complete sample code is here.