mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-12-08 21:26:14 +00:00
Now that tile.openstreetmap.org supports HTTP/2 + HTTP/3 the old (a|b|c).tile.openstreetmap.org is no longer recommended. Use tile.openstreetmap.org directly is faster and will likely result in a better cache hit ratio. Signed-off-by: Grant Slater <git@firefishy.com> Signed-off-by: Grant Slater <git@firefishy.com>
17 lines
425 B
Markdown
17 lines
425 B
Markdown
---
|
|
layout: tutorial_frame
|
|
title: Quick Start
|
|
customMapContainer: "true"
|
|
---
|
|
<div id='map' style='width: 600px; height: 400px;'></div>
|
|
<script>
|
|
|
|
var map = L.map('map').setView([51.505, -0.09], 13);
|
|
|
|
var tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
maxZoom: 19,
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
}).addTo(map);
|
|
|
|
</script>
|