large-scale-map-visualization
БесплатноБез исполняемых скриптовНе проверенMaster of high-performance web map implementations handling 5,000-100,000+ geographic data points. Specializes in Leaflet.js optimization, Supercluster…
Об этом скилле
Large-Scale Map Visualization Expert
Master of high-performance web map implementations handling 5,000-100,000+ geographic data points. Specializes in Leaflet.js optimization, spatial clustering algorithms, viewport-based loading, and progressive disclosure UX patterns for map-based applications.
Activation Triggers
Activate on: "map performance", "too many markers", "slow map", "clustering", "10k points", "marker clustering", "leaflet performance", "spatial visualization", "geospatial clustering", "viewport loading", "map data optimization", "real-time map", "Supercluster", "marker cluster"
NOT for: Static map images (use Mapbox/Google Static) | 3D visualizations (use Maplibre GL) | Non-geographic data visualization (use D3.js/Chart.js) | Simple maps with <100 markers (vanilla Leaflet is fine)
Core Expertise
Performance Architecture
┌─────────────────────────────────────────────────────────────┐
│ MAP PERFORMANCE TIERS │
├─────────────────────────────────────────────────────────────┤
│ │
│ 0-100 markers → Vanilla Leaflet (no optimization) │
│ 100-1,000 → Basic clustering (react-leaflet-cluster)│
│ 1,000-10,000 → Supercluster + viewport loading │
│ 10,000-50,000 → Supercluster + canvas + sampling │
│ 50,000-500,000 → Web Workers + server-side clustering │
│ 500,000+ → MVT tiles + backend pre-aggregation │
│ │
└─────────────────────────────────────────────────────────────┘
Technology Stack Decisions
| Use Case | Best Library | Why |
|---|---|---|
| React + <5k points | react-leaflet-cluster |
Simple drop-in, wraps Leaflet.markercluster |
| React + 5-50k points | use-supercluster hook |
3-5x faster, viewport-aware, GeoJSON native |
| React + 50k+ points | supercluster + Web Workers |
Offload clustering to background thread |
| Static sites | Server-side clustering | Pre-compute at build time |
| Real-time updates | Canvas renderer + sampling | Minimize DOM manipulation |
Key Techniques
1. Marker Clustering with Supercluster
Why Supercluster beats alternatives:
- Performance: Handles 500k points in 1-2 seconds vs 8+ seconds for Leaflet.markercluster
- Architecture: Index-based k-d tree clustering, can run server-side or in Workers
- API: Simple GeoJSON input/output
- Viewport-aware: Only clusters visible points
Implementation Pattern:
import useSupercluster from "use-supercluster";
export function OptimizedMap({ locations }: { locations: Place[] }) {
const mapRef = useRef<L.Map | null>(null);
const [bounds, setBounds] = useState<BBox | null>(null);
const [zoom, setZoom] = useState(10);
// Convert to GeoJSON Feature collection
const points = useMemo(() =>
locations.map(place => ({
type: "Feature" as const,
properties: {
cluster: false,
placeId: place.id,
place
},
geometry: {
type: "Point" as const,
coordinates: [place.longitude, place.latitude]
}
})),
[locations]
);
// Cluster points based on viewport
const { clusters, supercluster } = useSupercluster({
points,
bounds,
zoom,
options: {
radius: 75, // Cluster radius in pixels
maxZoom: 16, // Stop clustering at street level
minPoints: 2 // Minimum points to form cluster
}
});
// Update viewport on map move
useEffect(() => {
if (!mapRef.current) return;
const handleMove = () => {
const map = mapRef.current!;
const b = map.getBounds();
setBounds([b.getWest(), b.getSouth(), b.getEast(), b.getNorth()]);
setZoom(map.getZoom());
};
mapRef.current.on("moveend", handleMove);
handleMove(); // Initial load
return () => mapRef.current?.off("moveend", handleMove);
}, []);
return (
<MapContainer ref={mapRef} preferCanvas={true}>
{clusters.map(cluster => {
const [lng, lat] = cluster.geometry.coordinates;
const { cluster: isCluster, point_count } = cluster.properties;
if (isCluster) {
return (
<Marker
key={`cluster-${cluster.id}`}
position={[lat, lng]}
icon={createClusterIcon(point_count, zoom)}
eventHandlers={{
click: () => {
const expansionZoom = Math.min(
supercluster!.getClusterExpansionZoom(cluster.id),
18
);
mapRef.current?.setView([lat, lng], expansionZoom, {
animate: true
});
}
}}
/>
);
}
return (
<PlaceMarker
key={cluster.properties.placeId}
place={cluster.properties.plac
Установить large-scale-map-visualization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepWebSearchWebFetchВложенные файлы
FAQ
Что делает скилл large-scale-map-visualization?
Master of high-performance web map implementations handling 5,000-100,000+ geographic data points. Specializes in Leaflet.js optimization, Supercluster algorithms, viewport-based loading, canvas rendering, and progressive disclosure UX patterns.
Как установить скилл large-scale-map-visualization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл large-scale-map-visualization запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic