-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
32 lines (23 loc) · 947 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html style="height:100%">
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet-src.js" crossorigin=""></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="dist/editablecirclemarker.js"></script>
</head>
<body style="height:100%">
<div id="map" style="height:100%"></div>
<script type="text/javascript">
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}),
latlng = new L.LatLng(50.5, 30.51);
var map = new L.Map('map', {center: latlng, zoom: 15, layers: [tiles]});
var marker = L.editableCircleMarker(latlng, 300)
map.addLayer(marker);
</script>
</body>
</html>