Skip to content
Skill

Mapsgl android

Guides building Android apps that show Xweather weather layers on Mapbox maps

Mapsgl android is an open-source agent skill for maps and travel. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About Mapsgl android

This skill covers the Xweather MapsGL Android SDK, which draws weather and custom map data on top of the Mapbox Maps SDK for Android. It walks the agent through creating a map controller, adding and removing built-in weather layers by their layer codes, restyling them with paint and expression values, and wiring up custom sources and layers.

The skill also gives the agent the surrounding pieces an app needs: the timeline and animation controls, legends and data inspection, the Gradle repositories and dependencies for the AAR, and Android-specific pitfalls such as the required Mercator projection, GLES 3.0 and minimum SDK level. It includes a complete single-Activity example and a note on attaching and detaching layers so usage-based session costs stay under control.

It expects an Xweather client id and secret, a Mapbox access token and a Mapbox downloads token, plus an Android project in Kotlin. The skill points the agent to the latest published SDK release rather than a fixed version.

When your agent uses it

This skill should be used when working with the Xweather MapsGL Android SDK (mapsgl-android-sdk / com.xweather.mapsgl) - setting up MapboxMapController, adding or removing weather layers via LayerCode or WeatherService configs, styling with StyleValue and Expression, custom sources and layers, legends, data inspector presentations, timeline animation, layer masks, or integrating the AAR/JitPack dependency into an Android app. Use it whenever a task mentions MapsGL Android, MapboxMapController, addWeatherLayer, LayerCode, WeatherService, XweatherAccount, or weather overlays on Mapbox Maps SDK for Android. Also covers MapsGL session-based usage/cost (shared with the JS SDK) and common Android gotchas (Mercator, OpenGL ES 3.0, minSdk 28, Mapbox peer dependency). Documents the MapsGL Android 1.6.1 release - every API here is in that published build, with no unreleased or development-branch surface. When docs and SDK disagree, prefer the SDK (source / KDoc / demos) over xweather.com documentation.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 15 files (117 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the xweather plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add vaisala-xweather/xweather-agent-skills
/plugin install xweather@vaisala-xweather

Or copy only this skill to ~/.claude/skills/mapsgl-android:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mapsgl-android &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-android" ~/.claude/skills/mapsgl-android &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mapsgl-android inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mapsgl-android to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mapsgl-android &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-android" ~/.agents/skills/mapsgl-android &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mapsgl-android inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mapsgl-android to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mapsgl-android &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-android" ~/.cursor/skills/mapsgl-android &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mapsgl-android inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/vaisala-xweather/xweather-agent-skills.git --path plugins/xweather/skills/mapsgl-android

Or copy the folder to ~/.gemini/skills/mapsgl-android yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mapsgl-android:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mapsgl-android &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-android" ~/.copilot/skills/mapsgl-android &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mapsgl-android inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/vaisala-xweather/xweather-agent-skills.git

Then copy xweather-agent-skills/plugins/xweather/skills/mapsgl-android into your agent's skills folder as mapsgl-android. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Map controller setup
Creates the Mapbox-backed controller, centers the map and waits for the map to finish loading before adding layers.
Weather layer management
Adds, removes and toggles built-in weather layers using layer codes or service configurations.
Layer styling
Adjusts paint, opacity and color scales for weather layers, with guidance per render type.
Timeline animation
Controls playback range, preloading and play or pause for time-based weather animation.
Legends and data inspection
Adds on-map legends and tap-to-inspect presentations keyed by style layer id.
Custom sources and layers
Adds GeoJSON or vector sources and fill or circle layers on top of the map.
Install and session cost guidance
Explains Gradle repository setup, credential wiring and detaching layers to limit session usage.

Good for

  • Add a live radar overlay with a legend to an Android weather app
  • Show temperature and wind layers on a map screen with an animated timeline
  • Restyle a weather layer's colors and opacity for a custom app theme
  • Set up the MapsGL dependency and Mapbox tokens in a new Android project
  • Draw a custom GeoJSON layer beneath a weather layer

Mapsgl android FAQ

What credentials does Mapsgl android need?

It needs both an Xweather client id and secret and a Mapbox access token plus a Mapbox downloads token. A missing Mapbox token can look like a MapsGL failure.

Which Android requirements apply?

The skill lists minimum SDK 28, OpenGL ES 3.0 for encoded paths, a required Mercator projection, and Mapbox as a peer dependency that must be added separately.

When should weather layers be added?

Layers should be added inside the map-loaded callback, after the view is attached, since adding them earlier silently does nothing.

Does Mapsgl android cover the MapsGL web SDK?

No, it covers the Android SDK. Billing details are referenced to the separate mapsgl skill.

How do I install Mapsgl android in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mapsgl-android to use it in all your projects, or to .claude/skills/mapsgl-android in one project. Or install the xweather plugin, which includes it: /plugin marketplace add vaisala-xweather/xweather-agent-skills, then /plugin install xweather@vaisala-xweather.

Does Mapsgl android run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Mapsgl android?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Mapsgl android?

The closest alternatives to Mapsgl android are Mapsgl, Mapsgl apple, Raster maps, Axiom location and Azure maps search dotnet.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from vaisala-xweather/xweather-agent-skills

  1. Guides an agent through building Xweather MapsGL weather map layers in web apps

    • Open source
    • 8 GitHub stars
    • Maps and travel
  2. Adds Xweather weather layers to native iOS, iPadOS, Mac Catalyst and visionOS maps

    • Open source
    • 8 GitHub stars
    • Maps and travel
  3. Builds Xweather weather map image and tile URLs with layer, time and style options

    • Open source
    • 8 GitHub stars
    • Maps and travel
  4. Builds and runs Xweather Weather API URLs with access-cost estimates

    • Open source
    • 8 GitHub stars
    • Cloud and infrastructure
  5. Guides building a secure receiver for pushed Xweather weather data instead of polling

    • Open source
    • 8 GitHub stars
    • Cloud and infrastructure