Skip to main content
100%

Firef.ly style swipe

✓ Published0🌍 Public
Aandyrutkowski
Last edited Oct 7, 2018
Created on Oct 7, 2018

Two Mapbox GL maps display different Firef.ly styles side by side, with a draggable vertical swipe divider that lets viewers compare the visualizations. The before map uses one style URL, while the after map uses another, both centered on coordinates [0, 0] at zoom level 0. The code loads the Mapbox GL JS library and its compare plugin, then instantiates two map objects and connects them with `mapboxgl.Compare`.

AI-generated description

forked from <a href='http://bl.ocks.org/TheMapSmith/'>TheMapSmith</a>'s block: <a href='http://bl.ocks.org/TheMapSmith/b9b4a46967462cdbc7f6'>Firef.ly style swipe</a>

mit Licensed

Similar vizzes