Skip to content

Commit

Permalink
ga. minzoom
Browse files Browse the repository at this point in the history
  • Loading branch information
geohacker committed Mar 23, 2016
1 parent feb9dda commit 864c221
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 12 additions & 1 deletion longest.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
style: 'mapbox://styles/geohacker/cim0ng7dq00jxcglvn6jsjiqs', //stylesheet location
center: [82.705, 21.841], // starting position
zoom: 4, // starting zoom
hash: true
hash: true,
minZoom: 4
});

var index = 0;
Expand Down Expand Up @@ -135,6 +136,16 @@
animateMarker(0);
}

// Google Analytics

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-75475863-1', 'auto');
ga('send', 'pageview');

</script>

</body>
Expand Down
15 changes: 14 additions & 1 deletion reachability.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@
center: [78.36, 22.32], // starting position
zoom: 4, // starting zoom
hash: true,
maxZoom: 11
maxZoom: 11,
minZoom: 4
});


// Google Analytics

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-75475863-1', 'auto');
ga('send', 'pageview');

</script>

</body>
Expand Down

0 comments on commit 864c221

Please sign in to comment.