kendrick-oppong/geoskills/webgis-performance-optimization
Claude Code and agent skill by kendrick-oppong/geoskills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when a web map is slow, janky, or memory-heavy — client-side rendering performance, tile/data loading strategy, clustering, simplification, LOD, web workers, and memory leak patterns specific to interactive maps.
Install
npx vskill@latest install kendrick-oppong/geoskills/webgis-performance-optimizationSKILL.md
The same SKILL.md was published earlier as kendrick-oppong/geoskills/webgis-performance-optimization.
WebGIS Performance Optimization
When to use this skill
- "The map is laggy / freezes / crashes the tab on large data"
- Diagnosing slow pan/zoom, slow initial load, or memory growth over a long session
- Deciding between clustering, simplification, tiling, or aggregation for a given dataset size
Diagnostic framework — find the actual bottleneck first
| Symptom | Likely cause | Fix direction | |
|---|---|---|---|
| Slow initial load, fast after | Oversized single payload (huge GeoJSON) | Switch to vector tiles / FlatGeobuf / paginated fetch | |
| Janky pan/zoom with many markers | Too many DOM/SVG elements (Leaflet default markers at scale) | Cluster (supercluster), switch to canvas/WebGL rendering, or deck.gl | |
| Slow only at low zoom / continent view | Rendering full-detail geometry at a scale where it can't be perceived | Simplify geometry per zoom level (server-side, e.g. via tippecanoe's -simplification, or mapshaper) | |
| Memory grows over a long session, never freed | Event listeners / map layers not cleaned up on navigation/unmount | Audit map.remove()/listener cleanup in component teardown | |
| Slow attribute-heavy popups/tooltips | Fetching full feature detail on every hover | Fetch minimal tile-embedded properties; lazy-load full detail only on click | |
| Slow spatial filtering (e.g. "features within viewport") | Filtering done in JS over the full in-memory dataset per frame | Push filtering to the backend/tile source, or index client-side with a quadtree/rbush |
Checklist
- [ ] Is data delivered as vector tiles (or otherwise tiled/paginated) rather than one large GeoJSON blob, once feature count exceeds roughly 10-50k?
- [ ] Are point clusters used at low zoom instead of rendering every individual marker (Leaflet:
Leaflet.markercluster/supercluster; MapLibre: cluster option on GeoJSON source; deck.gl: aggregation layers)? - [ ] Is geometry simplified appropriately per zoom level rather than shipping full-precision polygons to a zoomed-out view?
- [ ] Are expensive computations (clustering, spatial joins, simplification) offloaded to a Web Worker so the main thread/UI stays responsive?
- [ ] Is the map instance and all its listeners properly torn down on component unmount/route change (React
useEffectcleanup, AngularngOnDestroy) — a very common SPA memory-leak source? - [ ] Are raster tiles cached (browser HTTP cache headers, or a service worker) to avoid re-fetching on repeated pan-backs?
- [ ] For frequently-updating real-time data (live tracking), is the update strategy patching only changed features rather than replacing the entire dataset/layer each tick?
Common pitfalls
- Leaflet with thousands of individual DOM markers: each marker is a DOM node; beyond a few thousand this degrades badly — cluster or switch rendering strategy (canvas renderer, or a different engine per
webgis-engine-selection). - Sending full-resolution GeoJSON regardless of zoom: forces the browser to parse and render orders of magnitude more vertices than are visually distinguishable at that zoom — always pair delivery format with zoom-aware simplification.
- Recomputing derived data (clusters, aggregates) synchronously on every map `move`/`zoom` event on the main thread: causes visible jank; debounce/throttle these handlers and consider workers for heavy computation.
- Not memoizing layer/source definitions in React, causing the map library to tear down and recreate layers every render instead of diffing efficiently.
- Loading an entire real-time feed's full history into the map on every update instead of maintaining an incremental in-memory state and only diffing/patching what changed.
Reference snippets
Related skills
vector-tile-pipeline— the tiling/simplification pipeline referenced abovedeckgl-large-scale-viz— GPU-based rendering strategy for very large datasetsrealtime-geospatial-tracking— incremental update strategy for live data feeds
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/webgis-performance-optimization/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kendrick-oppong/geoskills/webgis-performance-optimization)