map-routing-geo-review

Reviews map integration code for API key security, marker performance, coordinate correctness, and location privacy.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/FluxonLab/Skillry --skill map-routing-geo-review-fluxonlab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: map-routing-geo-review
Source: https://github.com/FluxonLab/Skillry/tree/main/plugins/optional-specialist/skills/82-map-routing-geo-review
Command: npx skills add https://github.com/FluxonLab/Skillry --skill map-routing-geo-review-fluxonlab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Map integrations frequently ship with unrestricted API keys, unclustered markers that freeze the browser, swapped latitude/longitude order, and location data collected without consent. This Skill audits map, routing, and geocoding code against a structured checklist to catch these defects before production. ## Core Features & Use Cases - API Key and Security Audit: Verifies Google Maps, Mapbox, and HERE keys are referrer-restricted, minimally scoped, and never exposed in client-side routing or geocoding calls. - Performance and Rendering Review: Checks marker clustering above 200 points, canvas rendering above 5,000 points, tile caching headers, CORS, and retina tile support. - Geospatial Correctness and Privacy: Catches Leaflet [lat, lng] vs GeoJSON [lng, lat] mixups, FLOAT coordinate precision loss, and GDPR/CCPA risks in geolocation handling. - Use Case: Before launching a store-locator feature with 3,000 markers and turn-by-turn directions, run this review to confirm clustering is enabled, the routing key is proxied server-side, and coordinates are stored as DECIMAL(11,8). ## Quick Start Review the map integration code in this project for API key exposure, marker performance, coordinate handling, and location privacy issues.

Frequently Asked Questions about map-routing-geo-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review map code for API key security?▼

Check that Google Maps keys are restricted by HTTP referrer and limited to only the APIs used, and that Mapbox tokens have minimum scopes like styles:read and tiles:read. Any key visible in a browser URL query string must be referrer-restricted, and backend geocoding calls must use server-side environment variables.

How many markers can Leaflet render before performance drops?▼

Rendering more than 200 markers as individual DOM elements causes severe frame-rate drops, so clustering with Leaflet.markercluster or Supercluster is required. Above 5,000 points, switch to canvas rendering such as CircleMarker on a canvas layer or Mapbox circle layers with a GeoJSON source.

Why do my map markers appear in the wrong location?▼

The most common cause is mixing coordinate order: Leaflet uses [lat, lng] while GeoJSON uses [lng, lat] with longitude first. Audit every coordinate array in the codebase and validate latitude stays within -90 to +90 and longitude within -180 to +180.

Does geolocation tracking require user consent under GDPR?▼

Yes, location data must not be sent to analytics or third parties without explicit user consent under GDPR and CCPA. navigator.geolocation should never be called silently on page load, and stored trip history requires a retention policy and user deletion support.

When should I use GeoJSON versus vector tiles in MapLibre?▼

GeoJSON works well under 2 MB or 5,000 features with instant loading, but degrades beyond 20 MB and risks browser crashes past 100,000 features. Larger datasets or zoom-dependent rendering need vector tiles generated with tippecanoe or Planetiler, served via PMTiles or a tile server like Martin.

When should this map review not be used?▼

It does not cover pure database GIS query review such as PostGIS with no front-end map, which belongs to a backend review. It also excludes geospatial ETL pipelines processing Shapefiles or GeoTIFFs without any map rendering component.