maplibre-navigation

Render MapLibre GL JS maps with OSRM routes, geolocation, and marker layers.

Updated Jun 17, 2025
One-click install
npx skills add https://github.com/Karlito8888/new-ggv-gps --skill maplibre-navigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maplibre-navigation
Source: https://github.com/Karlito8888/new-ggv-gps/tree/main/.claude/skills/maplibre-navigation
Command: npx skills add https://github.com/Karlito8888/new-ggv-gps --skill maplibre-navigation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides the core map rendering, routing, geolocation, markers, and layers required to build a robust MapLibre-based navigation experience for MyGGV GPS.

Core Features & Use Cases

  • Map rendering & configuration: Set up MapLibre map with custom styles and view state.
  • Layers management: Add and manage routes, blocks, and POI markers.
  • Geolocation & tracking: Real-time position updates and orientation handling.
  • Routing & directions: Compute and display routes using OSRM or MapLibre Directions.
  • User interactions: Map interactions, controls, and responsive UX.

Quick Start

Clone the project, install dependencies, run the dev server, and verify the map renders with markers and a route layer.

Frequently Asked Questions about maplibre-navigation

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

FAQPage Schema
How do I build a navigation app with MapLibre GL JS and real-time routing?

MapLibre GL JS enables interactive map rendering with integrated routing through OSRM or MapLibre Directions APIs. This Skill provides geolocation tracking, route calculation, marker placement, and layer management to build complete GPS navigation experiences for web and mobile platforms.

Can I add custom markers and polygon layers to a MapLibre map?

Yes. This Skill handles GeoJSON data sources, polygon layer rendering, and marker placement on MapLibre GL JS maps. You configure layers for routes, blocks, and POI markers with full control over styling and interactivity.

What's required to set up geolocation and orientation handling in MapLibre?

Geolocation and orientation handling require browser APIs and MapLibre event listeners. This Skill manages real-time position updates, heading orientation, and responsive UX interactions to keep the map centered on the user's location with proper directional cues.

How do I integrate OSRM routing with MapLibre for turn-by-turn directions?

OSRM routing integrates through HTTP requests that return GeoJSON route geometries. This Skill computes routes using OSRM endpoints, renders them as line layers on MapLibre, and manages display alongside real-time geolocation for complete navigation workflows.

Does MapLibre handle performance optimization for mobile navigation apps?

MapLibre GL JS includes performance optimizations for mobile and desktop. This Skill applies these through responsive layer management, efficient marker rendering, and interaction controls designed to maintain smooth performance across devices during real-time navigation.