Skip to content

traffordDataLab/lab_leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab Leaflet

Resources for creating Trafford Data Lab maps using the Leaflet JavaScript mapping library.

Some files reference additional functions not found within this repo. These dependencies are listed within the files themselves.

  • lab_leaflet_template.html - Example demonstrating the use of the Lab Leaflet resources
  • lab_marker_pin.svg - The SVG marker pin representation, the code is contained within labMarkerSVG.js, however it is included here to enable easy alterations to be made if required
  • lab_marker_shadow.png - PNG image to act as the marker shadow on the Leaflet map
  • labCreateTileLayer.js - Function to create raster tile layers from a limited set of providers
  • labCreateVectorTileLayer.js - Function to create vector tile layers from Ordnance Survey Zoomstack (requires additional mapbox-gl.js and leaflet-mapbox-gl.js libraries)
  • labLeafletMap.css - Styling for the map objects, e.g. plugins, information panels, links etc.
  • labLeafletMap.js - The Lab map object. This is an object containing an instance of a Leaflet map with particular tools in specific places e.g. geo locate, layer control etc. and containers such as legend, information panel etc. plus other items related to the map environment
  • labMarkerSVG.js - Function to return a Leaflet L.icon object comprising an SVG representation for a map marker. Currently there is only one representation - a pin with a coloured sphere. The colour and size of the marker can be controlled via inputs
  • leaflet_boilerplate.R - Example script for creating Lab themed Leaflet maps in R
  • leaflet.reachability_lab_setup.js - Setup script to customise the appearance and behaviour of our leaflet.reachability plugin
  • leaflet.reachability_lab.css - Custom CSS to override our leaflet.reachability plugin defaults
  • MarkerCluster.TraffordDataLab.css - Custom CSS to override the Leaflet MarkerCluster plugin defaults

About

Resources for creating Trafford Data Lab maps using Leaflet.

Resources

License

Stars

Watchers

Forks

Packages

No packages published