HTML5 – Get Started with LeafletJS Mapping




  
  
  




Javascript

  var map = L.map('map').setView([38.7964062, -95.4801544], 4);
  var osm = '//{s}.tiles.mapbox.com/v3/examples.map-i87786ca/{z}/{x}/{y}.png';

  L.tileLayer(osm, {
    minZoom: 3,
    maxZoom: 10
  }).addTo(map);