Skip to content

Commit

Permalink
center map for the experiment result
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Jul 26, 2021
1 parent ff7efde commit d2a78fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion simccs_maptool/templates/simccs_maptool/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,11 @@ <h5 class="modal-title">Generate MPS file</h5>
map.addLayer(result_sinkLayer);
map.addLayer(result_sourceLayer);
map.addLayer(result_networkLayer);
//layercontrol.addOverlay(result_sinkLayer,"Sinks");
var temp_collection = [];
temp_collection.push(result_sinkLayer);
temp_collection.push(result_sourceLayer);
var vectorGroup = L.featureGroup(temp_collection);
map.fitBounds(vectorGroup.getBounds());
})).catch(display_error_modal);

AiravataAPI.utils.FetchUtils.showSpinner($.getJSON( "/maptool/solution-summary/"+experiment_id, function( data ) {
Expand Down

0 comments on commit d2a78fb

Please sign in to comment.