Skip to content

Commit

Permalink
set map zoom level for each case study
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Jul 26, 2021
1 parent ea63025 commit ff7efde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions simccs_maptool/templates/simccs_maptool/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1890,42 +1890,42 @@ <h5 class="modal-title">Generate MPS file</h5>
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
//pan to a location for better view
map.setView([32.2611,-86.08615]);
map.setView([32.2611,-86.08615],7);
break;
case "Midwest_2011_3":
$( "#case_studies_title" ).text("Midwest 2011");
case_folder = "3_2011_Midwest";
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
map.setView([40.0,-84.29]);
map.setView([40.0,-84.29],7);
break;
case "GulfCoast_2013_4":
$( "#case_studies_title" ).text("GulfCoast 2013");
case_folder = "4_2013_GulfCoast";
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
map.setView([32.89,-95.69]);
map.setView([32.89,-95.69],7);
break;
case "TexasPanhandle_2011_5":
$( "#case_studies_title" ).text("Texas Panhandle 2011");
case_folder = "5_2011_TexasPanhandle";
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
map.setView([35.038,-101.85]);
map.setView([35.038,-101.85],8);
break;
case "IllinoisBasin_2015_11":
$( "#case_studies_title" ).text("Illinois Basin 2015");
case_folder = "11_2015_IllinoisBasin";
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
map.setView([38.385,-87.822]);
map.setView([38.385,-87.822],9);
break;
case "OrdosBasin_2014_10":
$( "#case_studies_title" ).text("Ordos Basin 2014");
case_folder = "10_2014_OrdosBasin";
summary_json = "summary.json";
display_case_study(case_folder, summary_json);
map.setView([37.87,109.20]);
map.setView([37.87,109.20],7);
break;
default:
return;
Expand Down

0 comments on commit ff7efde

Please sign in to comment.