Skip to content

A GeoJSON Network tool for simple upstream and downstream network tracing.

License

Notifications You must be signed in to change notification settings

reyemtm/geojson-network-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson-network-control

A GeoJSON Network plugin for Mapbox GL JS/MapLibre for simple upstream and downstream network tracing.

This tool is very much in development.

Usage in a Mapbox GL JS Map

import NetworkControl from "./networkControl/networkControl.js"

//After the map and data have loaded

map.addControl(new NetworkControl({
  options: {
    originPoints: points, //geojson points
    linearNetwork: networkLines, //geojson linestrings
    originLayer: "points", //origin layer name
    color: "cyan", //color of highlight
    debug: true
  }
}), 'top-right');

About

A GeoJSON Network tool for simple upstream and downstream network tracing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published