@@ -674,12 +674,12 @@ def getUTMProj(point: shapely.Point) -> int:
674
674
"OMF" : [("omf.place_{}" , lon .ScatterplotLayer )],
675
675
},
676
676
"conn_comp" : {
677
- "OSM" : [("results.connected_components_{}_osm" , lon .ScatterplotLayer )],
678
- "OMF" : [("results.connected_components_{}_omf" , lon .ScatterplotLayer )],
677
+ "OSM" : [("results.connected_components_{}_osm" , lon .ScatterplotLayer ), ( "osm.edge_with_cost_{}" , lon . PathLayer ) ],
678
+ "OMF" : [("results.connected_components_{}_omf" , lon .ScatterplotLayer ), ( "omf.edge_with_cost_{}" , lon . PathLayer ) ],
679
679
},
680
680
"strongly_comp" : {
681
- "OSM" : [("results.strong_components_{}_osm" , lon .ScatterplotLayer )],
682
- "OMF" : [("results.strong_components_{}_omf" , lon .ScatterplotLayer )],
681
+ "OSM" : [("results.strong_components_{}_osm" , lon .ScatterplotLayer ), ( "osm.edge_with_cost_{}" , lon . PathLayer ) ],
682
+ "OMF" : [("results.strong_components_{}_omf" , lon .ScatterplotLayer ), ( "omf.edge_with_cost_{}" , lon . PathLayer ) ],
683
683
},
684
684
"isolated_nodes" : {
685
685
"OSM" : [("results.isolated_nodes_{}_osm" , lon .ScatterplotLayer )],
@@ -1915,7 +1915,7 @@ def colorRange():
1915
1915
# Check all layers
1916
1916
for layer in omfLayers + osmLayers :
1917
1917
1918
- # If the layer is of point type, we change with the appropriate
1918
+ # If the layer is of type point , we change with the appropriate
1919
1919
if type (layer ) == lon ._layer .ScatterplotLayer :
1920
1920
1921
1921
if layer in omfLayers :
@@ -1937,6 +1937,17 @@ def colorRange():
1937
1937
values = gdfcopy ["id" ],
1938
1938
cmap = colorMap
1939
1939
)
1940
+
1941
+ # Edges with cost for connected components
1942
+ if type (layer ) == lon ._layer .PathLayer :
1943
+ # Line color and width
1944
+ colorLine = getColorFromColorPicker (colorPickerLine )
1945
+
1946
+ width = input .width_min_pixels ()
1947
+
1948
+ layer .width_min_pixels = width
1949
+
1950
+ layer .get_color = colorLine
1940
1951
1941
1952
1942
1953
### Components Dataframe modification handler ###
0 commit comments