MapLibre GL Swipe

A MapLibre GL plugin for swiping layers to compare them side by side

Basic Example

Simple vanilla JavaScript/TypeScript example showing how to add the swipe control to compare satellite and vector layers.

Vanilla JS TypeScript Swipe

React Example

React example demonstrating the React wrapper component, custom hooks, and external control synchronization.

React TypeScript Swipe