Skip to content

Commit

Permalink
#158 build candidateNetwork color
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Aug 24, 2021
1 parent 9dab2c0 commit 9b081c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions simccs_maptool/static/js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,9 @@ function generatecandidatenetwork(panelid) {
return AiravataAPI.utils.FetchUtils.post("/maptool/candidate-network/", formData).then(function( data ) {
// Note: 'data' includes Sinks and Sources but since those are
// already displayed I'm opting to only display the Network
var candidateNetworkLayer = L.geoJSON(null, {style:{color:"blue",opacity:0.5,weight:4}});
var candidateNetworkLayer = L.geoJSON(null, {style:{color:"black",opacity:0.6,weight:3}});
candidateNetworkLayer.clearLayers();
candidateNetworkLayer.addData(data["Network"]);
candidateNetworkLayer.setStyle({'color':'black','weight': 3});

if (!map.hasLayer(candidateNetworkLayer)) {
candidateNetworkLayer.addTo(map);
Expand Down

0 comments on commit 9b081c6

Please sign in to comment.