Skip to content

Commit

Permalink
#103 debug ...
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Apr 6, 2021
1 parent 99e8a51 commit 2c6287b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions simccs_maptool/templates/simccs_maptool/build.html
Original file line number Diff line number Diff line change
Expand Up @@ -716,24 +716,29 @@ <h5 class="modal-title">Generate MPS file</h5>
selected_ids.push(entry['sink_id']);
}
var sinkLayer = maplayers[datalayerid];
console.log(sinkLayer);
console.log(selected_ids);
sinkLayer.eachLayer(function(layer) {
feature_id = layer.feature.properties['ID'].toString();
console.log(feature_id);
if (selected_ids.includes(feature_id)) {
sinkselection.push(layer);
}
});
console.log(sinkselection);
var panediv = displayselecteddata(panelid);

// record data
sourceselection_panel[panelid] = sourceselection.concat();
sinkselection_panel[panelid] = sinkselection.concat();

sidebar.addPanel({
id: panelid,
tab: '<i class="fa fa-cog" aria-hidden="true"></i>',
title: title,
pane: '<div style="font-size: 125%">' + panediv.innerHTML +"</div>",
});


// simple show the data
//sidebar.open(panelid);

}

// load workspace id
Expand Down

0 comments on commit 2c6287b

Please sign in to comment.