New 2 Maps For The Cost Of One


The Mapbox GL JS documentation has a prissy novel illustration showing how y'all tin synchronize 2 maps side-by-side. Swipe Between Maps creates 2 synchronized maps in addition to allows y'all to swipe betwixt the 2 dissimilar map instances.

Swipe Between Maps could endure a a prissy agency to showcase all the beautiful map styles that I'm certain y'all accept been creating alongside Mapbox Studio. Of cast y'all aren't express to merely 2 maps. You could add together a carte du jour to i of the map instances inward Swipe Between Maps which would permit users to alter the base of operations map layer (you could fifty-fifty add together a carte du jour to permit users to alter the base of operations maps of both map instances).

I've created a quick demo which adds a carte du jour to Swipe Between Maps. Swipe Compare allows y'all to direct a dissimilar base of operations map fashion inward the left map instance. I've added merely iv base of operations map styles to my example. You could off cast add together equally many map styles equally y'all accept created inward Mapbox Studio.
Buat lebih berguna, kongsi:
close