Files
leaflet/docs/examples/quick-start/example-basic.md
Falke Design 1e7f27331a Simplifiy examples (#7816)
* Replace mymap with map

* Updated quick-start - added variables

* Add variable names

Add variable names

* Replace blanks with tabs
2021-11-26 22:17:11 +02:00

692 B

layout, title, customMapContainer
layout title customMapContainer
tutorial_frame Quick Start true
<script>
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 &copy; <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>