Published
Edited
Oct 27, 2021
1 fork
Importers
2 stars
Also listed in…
Clustering
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof showCoverageOnHover = checkbox({
options: ["showCoverageOnHover"],
value: "showCoverageOnHover"
})
Insert cell
viewof spiderfyOnMaxZoom = checkbox({
options: ["spiderfyOnMaxZoom"],
value: "spiderfyOnMaxZoom"
})
Insert cell
viewof zoomToBoundsOnClick = checkbox({
options: ["zoomToBoundsOnClick"],
value: "zoomToBoundsOnClick"
})
Insert cell
viewof removeOutsideVisibleBounds = checkbox({
options: ["removeOutsideVisibleBounds"],
value: "removeOutsideVisibleBounds"
})
Insert cell
viewof animate = checkbox({
options: ["animate"],
value: "animate"
})
Insert cell
viewof maxClusterRadius = slider({
min: 10,
max: 200,
step: 1,
value: 80,
title: "maxClusterRadius",
description: "defaults to 80",
format: v => `${v}px`
})
Insert cell
viewof spiderfyDistanceMultiplier = slider({
min: 1,
max: 10,
precision: 2,
value: 1,
title: "spiderfyDistanceMultiplier",
description: "defaults to 1"
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
lmc = {
L;
const leafletmarkercluster = await require('leaflet.markercluster@1');
if (!leafletmarkercluster._style) {
const href = await require.resolve(
"leaflet.markercluster@1/dist/MarkerCluster.css"
);
const href2 = await require.resolve(
"leaflet.markercluster@1/dist/MarkerCluster.Default.css"
);
document.head.appendChild(
(leafletmarkercluster._style = html`<link href=${href} rel=stylesheet><link href=${href2} rel=stylesheet>`)
);
}
return leafletmarkercluster;
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more