npx skills add ...
npx skills add mapbox/mapbox-agent-skills --skill mapbox-android-patterns
Official integration patterns for Mapbox Maps SDK on Android. Covers installation, adding markers, user location, custom data, styles, camera control, and featureset interactions. Based on official Mapbox documentation.
npx skills add mapbox/mapbox-agent-skills --skill mapbox-android-patterns
Official patterns for integrating Mapbox Maps SDK v11 on Android with Kotlin, Jetpack Compose, and View system.
Use this skill when:
Official Resources:
Create app/res/values/mapbox_access_token.xml:
Get your token: Sign in at mapbox.com
Maps need network access. Include this in AndroidManifest.xml — agents often omit it and only list location permissions later:
In settings.gradle.kts:
In module build.gradle.kts:
For Jetpack Compose:
Basic map:
With ornaments:
Layout XML (activity_map.xml):
Activity:
Point annotations are the most common way to mark locations on the map.
Jetpack Compose:
View System:
Multiple markers:
Step 1: Add permissions to AndroidManifest.xml:
Step 2: Request permissions and show location:
Check:
mapbox_access_token.xmlStyle.STANDARD (recommended and optimized)Load these references when you need detailed patterns for specific topics:
references/compose.md -- Jetpack Compose: dependencies, token setup, MapboxMap, annotations with click, GeoJSON, MapEffectreferences/annotations.md -- Circle, Polyline, and Polygon annotation patternsreferences/location-tracking.md -- Camera follow user location + get current location oncereferences/custom-data.md -- GeoJSON sources and layers: lines, polygons, points, update/removereferences/camera-styles.md -- Camera control (set, animate, fit) + map styles (built-in and custom)references/interactions.md -- Featureset interactions, custom layer taps, long press, gestures