Debian Codegraph @

example/marker-clustering-realworld-maxzoom.388.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Leaflet debug page</title>
5
6 <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" crossorigin="" />
7 <script src="https://unpkg.com/[email protected]/dist/leaflet-src.js" integrity="sha512-WXoSHqw/t26DszhdMhOXOkI7qCiv5QWXhH9R7CgvgZMHz1ImlkVQ3uNsiQKu5wwbbxtPzFXd1hK4tzno2VqhpA==" crossorigin=""></script>
8 <meta name="viewport" content="width=device-width, initial-scale=1.0">
9 <link rel="stylesheet" href="screen.css" />
10
11 <link rel="stylesheet" href="../dist/MarkerCluster.css" />
12 <link rel="stylesheet" href="../dist/MarkerCluster.Default.css" />
13 <script src="../dist/leaflet.markercluster-src.js"></script>
14 <script src="realworld.388.js"></script>
15
16 </head>
17 <body>
18
19 <div id="map"></div>
20 <span>Markers will show on the bottom 2 zoom levels even though the markers would normally cluster.</span>
21 <script type="text/javascript">
22
23 var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
24 maxZoom: 18,
25 attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Points &copy 2012 LINZ'
26 }),
27 latlng = L.latLng(-37.82, 175.24);
28
29 var map = L.map('map', {center: latlng, zoom: 13, layers: [tiles]});
30
31 var markers = L.markerClusterGroup({ disableClusteringAtZoom: 17 });
32
33 for (var i = 0; i < addressPoints.length; i++) {
34 var a = addressPoints[i];
35 var title = a[2];
36 var marker = L.marker(L.latLng(a[0], a[1]), { title: title });
37 marker.bindPopup(title);
38 markers.addLayer(marker);
39 }
40
41 map.addLayer(markers);
42
43 </script>
44 </body>
45 </html>