Permalink
Browse files

disable google map interactivity

as an experiment, disable most interactivity of google maps views,
especially scrollWheel and draggable -- this should allow folks to
scroll past maps on their phones.
  • Loading branch information...
Bill Walker
Bill Walker committed Apr 4, 2013
1 parent 1528080 commit 045b8644b9eecedeca9902ee447b44edb59bfc4b
Showing with 8 additions and 1 deletion.
  1. +8 −1 app/views/locations/_google.html.erb
@@ -18,7 +18,14 @@
// Create a terrain style map
var myOptions = {
- mapTypeId: google.maps.MapTypeId.TERRAIN
+ mapTypeId: google.maps.MapTypeId.TERRAIN,
+ draggable: false,
+ scrollwheel: false,
+ zoomControl: false,
+ streetViewControl: false,
+ zoomControl: false,
+ mapTypeControl: false,
+ panControl: false
};
var map = new google.maps.Map(document.getElementById("map"), myOptions);

0 comments on commit 045b864

Please sign in to comment.