Skip to content

Commit

Permalink
#126 test popup for experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Jul 26, 2021
1 parent d2a78fb commit 99ca3a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simccs_maptool/templates/simccs_maptool/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,9 @@ <h5 class="modal-title">Generate MPS file</h5>
return mymarker;
}
});
var result_networkLayer = new L.geoJSON(data["Network"],{style:{color:"blue",opacity:0.5,weight:4}});
var result_networkLayer = new L.geoJSON(data["Network"],{style:{color:"blue",opacity:0.5,weight:4},
onEachFature: function (feature, layer) {layer.bindPopup("Flow: " + feature.properties.Flow +"<br/>Length (KM): "+feature.properties.LengKM);}
});

map.addLayer(result_sinkLayer);
map.addLayer(result_sourceLayer);
Expand Down

0 comments on commit 99ca3a3

Please sign in to comment.