# Mapsgl apple

> Mapsgl apple is an open-source agent skill for maps and travel. Adds Xweather weather layers to native iOS, iPadOS, Mac Catalyst and visionOS 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-apple
- **Repository:** https://github.com/vaisala-xweather/xweather-agent-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** mapsgl-apple
- **Collection:** https://github.com/vaisala-xweather/xweather-agent-skills
- **Categories:** [maps and travel](https://ai-powered.com/categories/maps-and-travel)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through the Xweather MapsGL SDK for Apple platforms, which draws weather and custom map data on top of either Mapbox Maps or MapLibre Native using Metal. It covers choosing the map provider, installing the SDK through Swift Package Manager, CocoaPods, Carthage or xcframeworks, and creating the map controller that wraps the underlying map view.

The skill sets out coding conventions for the SDK: it defaults to SwiftUI unless the project is UIKit, keeps credentials out of source, resolves the current SDK release from the Xweather releases endpoint instead of a remembered version, and requires the Xweather attribution in every example. It also lists common build errors and their fixes, such as the Mapbox mercator projection requirement and the main-actor isolation of the layer API.

It expects an active Xweather account with Weather API and Maps access, a client id and secret, and for Mapbox, a public access token plus a secret download token. Code is written in Swift. Reference files cover layers, styles, expressions, legends, timelines and session-based billing on iOS.

## When your agent uses it

> This skill should be used when working with the Xweather MapsGL SDK for Apple platforms (the MapsGL iOS/iPadOS/macCatalyst/visionOS SDK) — installing it via Swift Package Manager, CocoaPods, Carthage or xcframeworks, creating a MapboxMapController or MapLibreMapController, and adding, removing, styling, animating or inspecting MapsGL weather layers in Swift. Use it whenever a task mentions MapsGL on iOS or Apple platforms, mapsgl-apple-sdk, MapsGLMaps, MapsGLMapbox, MapsGLMapLibre, XweatherAccount, WeatherService.LayerCode, addWeatherLayer in Swift, or a native weather map in SwiftUI or UIKit. Also use it for questions about MapsGL session usage or cost in an Apple app — sessions, the 5-minute clock intervals, the access multiplier, and which view and app lifecycle events should attach and detach weather layers. Also covers Xweather's attribution requirement — the 'Powered by Vaisala Xweather' credit and logo rules that apply wherever Xweather data or imagery is displayed.

## 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-apple)
- [License: MIT](https://github.com/vaisala-xweather/xweather-agent-skills/tree/HEAD/plugins/xweather/skills/mapsgl-apple)

## Features

- **Map provider selection:** Guides choosing between Mapbox Maps and MapLibre Native, and which Swift package branch matches each.
- **SDK installation paths:** Covers Swift Package Manager, CocoaPods, Carthage and manual xcframework embedding.
- **Built-in weather layers:** Adds, removes, toggles and restyles radar, temperature, wind and other weather layers by layer code.
- **Custom sources and layers:** Explains adding vector sources and fill or line layers for non-weather data.
- **Animation and inspection:** Describes timeline playback over time, legends, and tap-to-inspect values at a coordinate.
- **Session cost guidance:** Advises when to attach and detach weather layers on iOS to limit MapsGL session usage.

## Good for

- Add a radar and wind layer to a SwiftUI map in my iPhone app
- Set up MapsGL with MapLibre in a UIKit project
- Animate precipitation over the last three hours on a map
- Toggle temperature layer visibility from a switch
- Find why my Mapbox weather map shows only the basemap

## 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-apple`:

```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-apple &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-apple" ~/.claude/skills/mapsgl-apple &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/mapsgl-apple` 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-apple &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-apple" ~/.agents/skills/mapsgl-apple &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/mapsgl-apple` 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-apple &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-apple" ~/.cursor/skills/mapsgl-apple &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/mapsgl-apple` 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-apple
```

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

### VS Code

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

```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-apple &&
cp -R "$tmp/plugins/xweather/skills/mapsgl-apple" ~/.copilot/skills/mapsgl-apple &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/mapsgl-apple` 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-apple` into your agent's skills folder as `mapsgl-apple`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which platforms does the SDK support?

The package manifest targets iOS 16+, macCatalyst 16+ and visionOS 1+. There is no native macOS AppKit target; a Mac app means Mac Catalyst.

### Do I need to choose a map provider before installing?

Yes. The SPM branch is provider-specific: master for Mapbox and maplibre for MapLibre. The skill says to infer the provider from the project or request, and to ask when that evidence is absent.

### Where do the Xweather credentials go?

The skill says client id and secret should live in a gitignored plist, xcconfig or the keychain and be read at runtime, never committed to source.

### Does the skill itself explain billing?

It covers the Apple-specific lifecycle side of session usage and points to the mapsgl skill and public docs for the full billing model.

### How do I install Mapsgl apple in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mapsgl-apple to use it in all your projects, or to .claude/skills/mapsgl-apple 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 apple 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 apple?

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 apple?

The closest alternatives to Mapsgl apple are Mapsgl, Mapsgl android, Raster maps, Axiom location and Globestudio.

## 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 android](https://ai-powered.com/skills/mapsgl-android): Mapsgl android 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.
- [Globestudio](https://ai-powered.com/skills/globestudio-github): Globestudio is an open-source agent skill for design and media.

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