Sha256: 574d8955d15bcd3735184b17d4044e20a68624d14740b1a501a4951e4c38fa4f
Contents?: true
Size: 768 Bytes
Versions: 3
Compression:
Stored size: 768 Bytes
Contents
--- layout: tutorial_frame title: Zoom Levels Tutorial --- <script> var map = L.map('map', { minZoom: 1, maxZoom: 1, dragging: false }); var cartodbAttribution = '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'; var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { attribution: cartodbAttribution }).addTo(map); L.control.scale({maxWidth: 150}).addTo(map); setInterval(function(){ map.setView([0, 0], 0, {duration: 1, animate: true}); setTimeout(function(){ map.setView([60, 0], 0, {duration: 1, animate: true}); }, 2000); }, 4000); map.setView([0, 0], 0); </script>
Version data entries
3 entries across 3 versions & 1 rubygems