Slight maps demo tweak

This commit is contained in:
Max Lynch
2013-11-17 13:46:48 -06:00
parent 75d73d4973
commit ffa1b3ae17
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
@charset "UTF-8";
/**
* Nav controllers and header bar animations
*/

View File

@ -46,6 +46,13 @@
};
var map = new google.maps.Map(document.getElementById("map"),
mapOptions);
// Stop the side bar from dragging when mousedown/tapdown on the map
google.maps.event.addDomListener(document.getElementById('map'), 'mousedown', function(e) {
e.preventDefault();
return false;
});
$scope.map = map;
}
google.maps.event.addDomListener(window, 'load', initialize);