Skip to content

Commit

Permalink
implemented 'only points' display
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasRey committed Jun 4, 2018
1 parent 810c1ef commit ccc8a59
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 187 deletions.
3 changes: 0 additions & 3 deletions index.html
Expand Up @@ -121,7 +121,6 @@ <h2 id="inAppTitle" hidden>TITLE - Subtitle</h2>
<div class="col-md-12" style="text-align: center;">
<div class="chartBlock">
<div id="weeklyChartTitle_AR" class="row" style="padding-left:15px;float:left;">
<strong>Title</strong>
</div>
<div class="row" style="padding-left:15px;">
<div id="geoSAnchorCumulative" class="chartAnchor"></div>
Expand All @@ -133,7 +132,6 @@ <h2 id="inAppTitle" hidden>TITLE - Subtitle</h2>
<div class="col-md-12" style="text-align: center;">
<div class="chartBlock">
<div id="weeklyChartTitle" class="row" style="padding-left:15px;float:left;">
<strong>Title</strong>
</div>
<div class="row" style="padding-left:15px;float: none; margin: 0 auto;">
<div id="geoSAnchorCombined" class="chartAnchor"></div>
Expand All @@ -145,7 +143,6 @@ <h2 id="inAppTitle" hidden>TITLE - Subtitle</h2>
<div class="col-md-12" style="text-align: center;">
<div class="chartBlock">
<div id="weeklyChartTitle_WIR" class="row" style="padding-left:15px;float:left;">
<strong>Title</strong>
</div>
<div class="row" style="padding-left:15px;">
<div id="geoSAnchorMeasure" class="chartAnchor"></div>
Expand Down
4 changes: 4 additions & 0 deletions js/config.js
Expand Up @@ -12,6 +12,8 @@ var configFile = {
data : {
analysisLayer : {
geometry : {
// display (BOOLEAN) - Choose to display the layer or not.
display: true,
name : "Districts",
source : "data/yem_adm2.json",
// format (STRING) - Set the format of the dataset. Can be either "TopoJSON", "GeoJSON" or "EsriJSON".
Expand All @@ -22,6 +24,8 @@ var configFile = {
geoName : "admin2Name"
},
geometryPoints : {
// display (BOOLEAN) - Choose to display the layer or not.
display: true,
name : "Districts",
source : "data/yem_centroids_adm2.json",
// format (STRING) - Set the format of the dataset. Can be either "TopoJSON", "GeoJSON" or "EsriJSON".
Expand Down
8 changes: 6 additions & 2 deletions js/config_forGIS.js
Expand Up @@ -25,11 +25,11 @@
// delimiter (STRING) - Defines the delimiter used in the dataset.
delimiter : ",",
// remote (BOOLEAN) - To be set as 'true' for online use. Set as 'false' to avoid CORS issues on local use.
remote : true,
remote : false,
// XMLHttpRequestHeader (header, value : STRING) - Set the request header for password-protected remote sources - Leave blank for local sources.
XMLHttpRequestHeader : {
header : "Authorization",
value : "253719af-9259-40f5-a003-6f0de8711c8f"
value : "xxx"
},
// fieldsForAnalysis - Defines the fields to be considered from the epi dataset.
fieldsForAnalysis : {
Expand Down Expand Up @@ -125,6 +125,8 @@
},
geoSources : {
polygons : {
// display (BOOLEAN) - Choose to display the layer or not.
display: true,
// name (STRING) - Name of the layer as it is going to be displayed in the legend.
name : "Districts",
// source (STRING) - Source of the layer's data.
Expand All @@ -137,6 +139,8 @@
geoName : "admin2Name"
},
points : {
// display (BOOLEAN) - Choose to display the layer or not.
display: true,
// name (STRING) - Name of the layer as it is going to be displayed in the legend.
name : "Districts",
// source (STRING) - Source of the layer's data.
Expand Down

0 comments on commit ccc8a59

Please sign in to comment.