Created
July 23, 2018 12:24
-
-
Save tastatham/e92091c414be21e4ff306423abebe2e5 to your computer and use it in GitHub Desktop.
mapbox4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var beforeMap = new mapboxgl.Map({ | |
container: 'before', | |
style: 'mapbox://styles/tastatham1/cjjy2a3sd4lx02sqcse1jkgyd', | |
center: [0, 43.825234], | |
pitch:20, | |
zoom: 4 | |
}); | |
var afterMap = new mapboxgl.Map({ | |
container: 'after', | |
style: 'mapbox://styles/tastatham1/cjjy6l7jc3egi2rrut7j7x201', | |
center: [0, 43.825234], | |
pitch:20, | |
zoom: 4 | |
}); | |
var map = new mapboxgl.Compare(beforeMap, afterMap, { | |
// Set this to enable comparing two maps by mouse movement: | |
// mousemove: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment