Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.58 KB

File metadata and controls

61 lines (39 loc) · 1.58 KB

Mapboxgljs.LayerViewer

A UI framework for showing multiple layers in Mapbox GL JS, essentially a wrapper to Mapbox GL JS which integrates various plugins into a full map UI.

Branched from the Leaflet.LayerViewer library.

Originally written for the CycleStreets Bikedata project.

Intended primarily as a GeoJSON viewer, but supports GeoJSON, heatmap and bitmap layers.

Layers and settings are defined using a simple, high-level, declarative structure.

Features

  • Show/hide multiple layers
  • Supports GeoJSON, heatmap and bitmap layers.
  • Updating of GeoJSON over AJAX
  • Form controls issue new API calls to send parameters
  • Excel export buttons (where supported by API)
  • Drawing integration
  • Geocoder integration
  • Geolocation integration
  • Multiple bitmap background layers
  • HTML5 pushstate URL support
  • Mobile support
  • Region switcher, using a GeoJSON file
  • Page popup support
  • Popup label dictionary support, including tooltips
  • Basic password-protection
  • Automatic legend generation

Forthcoming features

  • Charting of data, with stratification
  • Name overlays
  • Clustering support

Install dependencies

yarn install

Examples

License and copyright

GPL3.

Copyright CycleStreets Ltd.