Skip to content

Instantly share code, notes, and snippets.

@tastatham
Created July 23, 2018 12:24
Show Gist options
  • Save tastatham/e92091c414be21e4ff306423abebe2e5 to your computer and use it in GitHub Desktop.
Save tastatham/e92091c414be21e4ff306423abebe2e5 to your computer and use it in GitHub Desktop.
mapbox4
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