mapbox avatar

Mapbox Android Patterns

This covers the essential patterns for integrating Mapbox Maps SDK v11 into Android apps with both Jetpack Compose and the traditional View system. You get installation steps, basic map initialization, adding markers through point annotations, and showing user location with proper permissions. The code examples are concrete and follow current Mapbox patterns like using Style.STANDARD and the annotation manager API. It's focused on the fundamentals rather than advanced features, so if you're doing route visualization, custom layers, or complex styling, you'll need the official docs. Good for getting a map on screen quickly and understanding the lifecycle management quirks that trip people up.

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

Install

$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-android-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Mapbox Android Integration Patterns

Official patterns for integrating Mapbox Maps SDK v11 on Android with Kotlin, Jetpack Compose, and View system.

Use this skill when:

  • Installing and configuring Mapbox Maps SDK for Android
  • Adding markers and annotations to maps
  • Showing user location and tracking with camera
  • Adding custom data (GeoJSON) to maps
  • Working with map styles, camera, or user interaction
  • Handling feature interactions and taps

Official Resources:


Installation & Setup

Requirements

  • Android SDK 21+
  • Kotlin or Java
  • Android Studio
  • Free Mapbox account

Step 1: Configure Access Token

Create app/res/values/mapbox_access_token.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <string name="mapbox_access_token" translatable="false"
        tools:ignore="UnusedResources">YOUR_MAPBOX_ACCESS_TOKEN</string>
</resources>

Sponsors

Details

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

More from mapbox/mapbox-agent-skills

All 18
1quodsoler avatarue-testing-debuggingquodsoler/unreal-engine-skillsUse when writing automation tests, functional tests, or any test in Unreal Engine. Also use when the user asks about "UE_LOG", logging, log categories, assertio1.5Kskills.sh installs
2callicrate avataragents-mdcallicrate/skillsUse when the requested deliverable includes creating, reviewing, moving, splitting, or updating a repository AGENTS.md; produces scoped repo guidance. Do not tr1.4Kskills.sh installs
3ailabs-393 avatarstoryboard-managerailabs-393/ai-labs-claude-skillsAssist writers with story planning, character development, plot structuring, chapter writing, timeline tracking, and consistency checking. Use this skill when w1.4Kskills.sh installs
4cap-go avatardebugging-capacitorcap-go/capgo-skillsComprehensive debugging guide for Capacitor applications. Covers WebView debugging, native debugging, crash analysis, network inspection, and common issues. Use1.4Kskills.sh installs
5jezweb avatarsocial-media-postsjezweb/claude-skillsCreate platform-specific social media posts for LinkedIn, Facebook, Instagram, and Reddit. Handles character limits, hashtag strategies, hook placement, and ima1.4Kskills.sh installs
6mapbox 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