GitHub

<script>
  var map = L.map('map', {
    center: [41.4583, 12.7059],
    zoom: 5,
    // Optional customizations
    mapTypeId: 'topo',
    mapTypeIds: ['streets', 'terrain', 'satellite', 'topo'],
    gestureHandling: true,
    zoomControl: true,
    pegmanControl: true,
    locateControl: true,
    fullscreenControl: true,
    layersControl: true,
    minimapControl: true,
    editInOSMControl: true,
    loadingControl: true,
    searchControl: true,
    disableDefaultUI: false,
    // Experimental feature
    rotate: true,
  });
  map.once('idle',function(){ /* Waiting for map init */});
</script>

Read the original on github.com ↗