mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-09 04:14:04 +00:00

* Replace mymap with map * Updated quick-start - added variables * Add variable names Add variable names * Replace blanks with tabs
692 B
692 B
layout, title, customMapContainer
layout | title | customMapContainer |
---|---|---|
tutorial_frame | Quick Start | true |
var map = L.map('map').setView([51.505, -0.09], 13);
var tiles = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox/streets-v11',
tileSize: 512,
zoomOffset: -1
}).addTo(map);
</script>