mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
lint
This commit is contained in:
@@ -10,7 +10,7 @@ Include the following links and scripts in your page:
|
|||||||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
||||||
|
|
||||||
<!-- Maplibre GL -->
|
<!-- Maplibre GL -->
|
||||||
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css" rel='stylesheet' />
|
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet" />
|
||||||
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
||||||
|
|
||||||
<!-- Maplibre GL Leaflet -->
|
<!-- Maplibre GL Leaflet -->
|
||||||
@@ -22,11 +22,10 @@ Initialize it to a div like this:
|
|||||||
```html
|
```html
|
||||||
<div id="map" style="width: 100%; height: 500px"></div>
|
<div id="map" style="width: 100%; height: 500px"></div>
|
||||||
<script>
|
<script>
|
||||||
const map = L.map('map')
|
const map = L.map('map').setView([52.517, 13.388], 9.5)
|
||||||
.setView([52.517, 13.388], 9.5)
|
|
||||||
|
|
||||||
L.maplibreGL({
|
L.maplibreGL({
|
||||||
style: 'https://tiles.openfreemap.org/styles/liberty'
|
style: 'https://tiles.openfreemap.org/styles/liberty',
|
||||||
}).addTo(map)
|
}).addTo(map)
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user