mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-12-08 21:26:14 +00:00
* Replace Mapbox with OpenStreetMap Replace Mapbox with OpenStreetMap * Revert Gemfile * Replace blanks with tabs * Fix lint * Replace Mapbox with OSM * Add OSM Tile Usage Policy link * typo: productive→production Co-authored-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
17 lines
430 B
Markdown
17 lines
430 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://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
maxZoom: 19,
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
}).addTo(map);
|
|
|
|
</script>
|