geospatial-sdk-integration

Integrate Camptocamp geospatial-sdk into Vue.js apps with Pinia for map state.

3|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/camptocamp/sextant-viewer --skill geospatial-sdk-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geospatial-sdk-integration
Source: https://github.com/camptocamp/sextant-viewer/tree/main/.claude/skills/geospatial-sdk
Command: npx skills add https://github.com/camptocamp/sextant-viewer --skill geospatial-sdk-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue.js developers often struggle to integrate Camptocamp geospatial-sdk with Pinia-based map state in a clean, scalable way. This Skill demonstrates using MapContext as the single source of truth and binding map state to Pinia stores to enable consistent, bidirectional synchronization between the map and the UI.

Core Features & Use Cases

  • MapContext as the single source of truth, with Pinia bindings to reflect state in components and maps.
  • Framework-agnostic guidance for using the geospatial-sdk with OpenLayers or MapLibre, including immutable update patterns and change detection.
  • Real-world scenario: build a map-enabled dashboard where layers and viewport are managed in Pinia and rendered consistently across the UI.

Quick Start

Install the geospatial-sdk packages, create a Pinia store to hold MapContext, and wire the store to a Vue component so map updates propagate to the UI and vice versa.

Frequently Asked Questions about geospatial-sdk-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Vue UI components with OpenLayers or MapLibre map state using Pinia?

Sync Vue UI with OpenLayers or MapLibre by binding MapContext to a Pinia store as the single source of truth, enabling bidirectional synchronization between the map and UI so updates propagate automatically.

What is the best way to manage map layers and viewport state in a Vue.js application?

The best way to manage map layers and viewport state in Vue.js is to store MapContext inside a Pinia store, ensuring consistent state rendering across the UI and the map simultaneously.

Does the geospatial-sdk work with both OpenLayers and MapLibre?

Yes, the geospatial-sdk provides framework-agnostic guidance supporting both OpenLayers and MapLibre, including immutable update patterns and change detection for map state management.

How do I set up geospatial-sdk in a Vue project with Pinia?

To set up geospatial-sdk in Vue, install the geospatial-sdk packages, create a Pinia store to hold MapContext, and wire the store to Vue components so map updates reflect in the UI and vice versa.

Why should I use MapContext as a single source of truth for Vue map applications?

Using MapContext as a single source of truth prevents state desynchronization, allowing Pinia bindings to consistently reflect map changes in UI components and UI interactions to update the map directly.

Can I build a map-enabled dashboard where layers are managed in Pinia and rendered consistently across the UI?

Yes, you can build a map-enabled dashboard by managing layers and viewport in a Pinia store bound to MapContext, ensuring consistent rendering across the map and all connected UI components.