# Mapsgl android

> Mapsgl android is an open-source agent skill for maps and travel. Guides building Android apps that show Xweather weather layers on Mapbox maps. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/vaisala-xweather/xweather-agent-skills/tree/main/plugins/xweather/skills/mapsgl-android
- **Repository:** https://github.com/vaisala-xweather/xweather-agent-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** mapsgl-android
- **Collection:** https://github.com/vaisala-xweather/xweather-agent-skills
- **Categories:** [maps and travel](https://ai-powered.com/categories/maps-and-travel), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/mapsgl-android)
- [License: MIT](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/mapsgl-android)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Mapsgl](https://ai-powered.com/skills/mapsgl): Mapsgl is an open-source agent skill for maps and travel.
- [Mapsgl apple](https://ai-powered.com/skills/mapsgl-apple): Mapsgl apple is an open-source agent skill for maps and travel.
- [Raster maps](https://ai-powered.com/skills/raster-maps): Raster maps is an open-source agent skill for maps and travel.
- [Axiom location](https://ai-powered.com/skills/axiom-location-charleswiltgen): Axiom location is an open-source agent skill for maps and travel.
- [Azure maps search dotnet](https://ai-powered.com/skills/azure-maps-search-dotnet): Azure maps search dotnet is an open-source agent skill for maps and travel.
- [Android clean architecture](https://ai-powered.com/skills/android-clean-architecture): Android clean architecture is an open-source agent skill for developer tools.
- [Ima SDK client side](https://ai-powered.com/skills/ima-sdk-client-side): Ima SDK client side is an open-source agent skill for developer tools.
- [Android SDK knowledge patch](https://ai-powered.com/skills/android-sdk-knowledge-patch): Android SDK knowledge patch is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/mapsgl-android
