reyemtm / geojson-network-control

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

Home Page:https://www.getbounds.com/blog/network-tracing-with-turfjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://www.getbounds.com/blog/network-tracing-with-turfjs/

License:MIT License


Languages

Language:JavaScript 85.4%Language:HTML 14.6%