kendrick-oppong/geoskills/webgis-performance-optimization

Claude Code and agent skill by kendrick-oppong/geoskills

Trust tier 2
  • community
LLM review pending
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-optimization

SKILL.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

SymptomLikely causeFix direction
Slow initial load, fast afterOversized single payload (huge GeoJSON)Switch to vector tiles / FlatGeobuf / paginated fetch
Janky pan/zoom with many markersToo 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 viewRendering full-detail geometry at a scale where it can't be perceivedSimplify geometry per zoom level (server-side, e.g. via tippecanoe's -simplification, or mapshaper)
Memory grows over a long session, never freedEvent listeners / map layers not cleaned up on navigation/unmountAudit map.remove()/listener cleanup in component teardown
Slow attribute-heavy popups/tooltipsFetching full feature detail on every hoverFetch 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 framePush 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 useEffect cleanup, Angular ngOnDestroy) — 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

javascript
// MapLibre: built-in clustering on a GeoJSON source
map.addSource('points', {
type: 'geojson', data: geojson,
cluster: true, clusterMaxZoom: 14, clusterRadius: 50,
});
bash
# Simplify + tile with zoom-aware detail reduction (tippecanoe)
tippecanoe -o output.mbtiles -z14 -Z0 --drop-densest-as-needed input.geojson

Related skills

  • vector-tile-pipeline — the tiling/simplification pipeline referenced above
  • deckgl-large-scale-viz — GPU-based rendering strategy for very large datasets
  • realtime-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kendrick-oppong/geoskills/webgis-performance-optimization/badge)](https://verified-skill.com/skills/kendrick-oppong/geoskills/webgis-performance-optimization)

Something wrong with this skill or its page? Tell us.