Firef.ly style swipe
✓ Published0🌍 Public
SStephen
Last edited Mar 22, 2016
Created on Mar 6, 2016
Two full-screen Mapbox GL maps are stacked on top of each other, showing before-and-after Firefly-style raster styles. A swipe comparison tool, implemented with `mapboxgl.Compare`, lets viewers drag a vertical divider to reveal the other style on the same world view. Both maps share the same center and zoom, created with `new mapboxgl.Map`, using custom style URLs from `fireflyexperience`. The code loads the `mapbox-gl-compare` plugin and initializes two maps in separate `<div>` elements, each with the same geographical extent.
AI-generated description