mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
394 B
TypeScript
12 lines
394 B
TypeScript
import * as L from 'leaflet';
|
|
import 'leaflet.polylinemeasure';
|
|
|
|
const map = L.map('map', {center: L.latLng(43.24209, 76.87743), zoom: 15});
|
|
|
|
L.tileLayer("http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", {
|
|
subdomains: ['a', 'b', 'c'],
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
}).addTo(map);
|
|
|
|
L.control.polylineMeasure().addTo(map);
|