mapbox avatar

Mapbox Google Maps Migration

If you're moving from Google Maps to Mapbox GL JS, this handles the translation work. It maps API equivalents (like how coordinate order flips from lat,lng to lng,lat), explains the philosophy shift from imperative objects to declarative data layers, and shows migration patterns for markers, popups, and events. The most useful bit is understanding when to use DOM-based markers versus WebGL layers. Google renders everything as DOM elements which chokes around 500+ points, while Mapbox's data-driven layers can handle thousands. Includes a seven-step migration strategy that starts with auditing your current implementation and ends with optimizations you can only do in Mapbox. Honest take: the hardest part isn't the API differences, it's rewiring your brain from objects to data sources.

skills.sh installs
1.5K
GitHub stars
86
last updated
Aug 21, 2026

Install

$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-google-maps-migration --agent claude-code

Installs into .claude/skills of the current project.

Files

Mapbox Google Maps Migration Skill

Comprehensive guidance for migrating from Google Maps Platform to Mapbox GL JS. Provides API equivalents, pattern translations, and strategies for successful migration.

Core Philosophy Differences

Google Maps: Imperative & Object-Oriented

  • Create objects (Marker, Polygon, etc.)
  • Add to map with .setMap(map)
  • Update properties with setters
  • Heavy reliance on object instances

Mapbox GL JS: Declarative & Data-Driven

  • Add data sources
  • Define layers (visual representation)
  • Style with JSON
  • Update data, not object properties

Key Insight: Mapbox treats everything as data + styling, not individual objects.

Map Initialization

Google Maps

const map = new google.maps.Map(document.getElementById('map'), {
  center: { lat: 37.7749, lng: -122.4194 },
  zoom: 12,
  mapTypeId: 'roadmap' // or 'satellite', 'hybrid', 'terrain'
});

Mapbox GL JS

Sponsors

Details

Repository
github.com/mapbox/mapbox-agent-skills
Categories
Backend & APIs, Documentation, AI & Agent Building
First seen
May 16, 2026

More from mapbox/mapbox-agent-skills

All 18
1qdrant avatarqdrant-version-upgradeqdrant/skillsCovers upgrading Qdrant server and SDKs without interrupting availability or losing data integrity. Use when someone asks 'how do I upgrade Qdrant', 'can I jump1.4Kskills.sh installs
2quodsoler avatarue-module-build-systemquodsoler/unreal-engine-skillsUse when working with Build.cs, Target.cs, module creation, plugin setup, or build errors in Unreal Engine — including "unresolved external symbol," "cannot ope1.4Kskills.sh installs
3capawesome-team avatarcapacitor-push-notificationscapawesome-team/skillsGuides the agent through setting up and using push notifications in Capacitor apps using Firebase Cloud Messaging via the @capacitor-firebase/messaging plugin. 1.4Kskills.sh installs
4mapbox avatarmapbox-maplibre-migrationmapbox/mapbox-agent-skillsGuide for migrating from MapLibre GL JS to Mapbox GL JS, covering API compatibility, token setup, style configuration, and the benefits of Mapbox's official sup1.4Kskills.sh installs
5jezweb avatarai-image-generatorjezweb/claude-skillsGenerate AI images using Gemini or GPT APIs directly. Covers model selection (Gemini for scenes; GPT Image 2 for text rendering, batch variations, multi-referen1.4Kskills.sh installs
6anthropics avatarstripe-best-practicesanthropics/claude-plugins-officialBest practices for building Stripe integrations. Use when implementing payment processing, checkout flows, subscriptions, webhooks, Connect platforms, or any St1.4Kskills.sh installs