Skip to content

JackDougherty/mapbox-gl-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapbox-gl-compare

Mapbox compare two maps side-by-side with sync and swipe

links

working demo http://jackdougherty.github.io/mapbox-gl-compare/index.html

non-working demo with MAGIC WMS layer http://jackdougherty.github.io/mapbox-gl-compare/index2.html

Mapbox GL v 0.20 limited WMS support demo (no compare slider yet) http://jackdougherty.github.io/mapbox-gl-compare/wms.html

non-working attempt to duplicate above with MAGIC WMS (no compare slider yet) http://jackdougherty.github.io/mapbox-gl-compare/wms2.html

Credit

https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-compare/

see also these Mapbox GL examples https://www.mapbox.com/mapbox-gl-js/examples/

To Do

Decide on best platform and UI for 1934-present neighborhood change map

read more about WMS raster layers in mapbox/mapbox-gl-js#965 or http://fuzzytolerance.info/blog/2016/03/15/ZXY-to-WMS-Proxy/ or http://bl.ocks.org/Sumbera/ba554bb5cc8dfe4d7866 or https://www.mapbox.com/mapbox-gl-js/example/third-party/

add a layer switcher https://www.mapbox.com/mapbox-gl-js/example/setstyle/ or https://www.mapbox.com/mapbox-gl-js/example/toggle-layers/ but with drop-down menus https://esri.github.io/esri-leaflet/examples/switching-basemaps.html

need to disable rotate? https://www.mapbox.com/mapbox-gl-js/example/disable-rotation/

place geocoder results as point on map? https://www.mapbox.com/mapbox-gl-js/example/point-from-geocoder-result/

About

Mapbox compare two maps side-by-side with sync and swipe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages