This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from shapely.ops import linemerge | |
import geopandas as gpd | |
import networkx as nx | |
def remove_pseudonodes(gdf, geom_col="geometry"): | |
def _gdf_to_graph(gdf, geom_col) -> nx.Graph: | |
# Find all unique start & end points and assign them an id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize map with spotlight enabled | |
var map = L.map( | |
'map', { | |
spotlight: true, // This one enables spotlight on the map | |
scrollWheelZoom:false, | |
zoomControl: false, | |
boxZoom: false, | |
doubleClickZoom: false, | |
dragging: false | |
}).setView([50.11703222529853, 8.679703474044802], 18); |