Option | Default | Description |
---|---|---|
InitialMapCenterLatLng | [51.4826,0.0077] |
Initial centre of the baselayer map (e.g. Google Maps) defined in an array of the form [latitude, longitude].
|
InitialmapZoom | 8 |
Initial zoom level of baselayer map expressed as an integer. For Google Maps this integer can range from 1 to 18.
|
mapUnits | true |
When mapUnits is true the baselayer map displays its scale in both miles and kilometres otherwise when false only miles are shown.
|
radioNotDropdown | false |
When true a list of radio buttons instead of a dropdown menu are used to select groups of layers. A 'group of layers' refers to all the layers relating to a specific disease for a given number of timesteps. In the example data a 'group of layers' refers to all 12 layers, one per month, for Dengue in 2016.
|
userDefinedBaseMaps | true |
The default baselayer is a OpenStreetMap (userDefinedBaseMaps=true).
If using Google Maps (userDefinedBaseMaps=false) in your own version of this Atlas software you will needed to use YOUR Google account KEY in either index.html or app.R as appropriate.
In the case where MutationObserver() is not supported by the web browser the fallback is OpenStreetMap.
|
Option | Default | Description |
---|---|---|
downloadData | undefined |
This field is only ever used when creating your own Dynamic Atlas so is not relevant to this (Shiny) website.
When relevant it should be a string giving the relative path and filename (on web server) of the layer group data currently being displayed by the Dynamic Atlas.
The data for download could for example be the geojson file or another file format such as csv e.g. 'folder_location/filename.extension'
Alternatively set 'downloadData' to undefined if there is no data to be downloaded.
In this Shiny app this field should always be set to undefined.
|
filename | undefined |
This field is only ever used when creating your own Dynamic Atlas so is not relevant to this (Shiny) website. When relevant it should be a string giving the relative path and filename of the .geojson file containing the layer data on the web server e.g. 'data/mydata.geojson'. In this Shiny app this field should be set to undefined.
|
friendlyname |
This is a string which appears in the dropdown menu (or radiobutton list) for each group of layers. In the example data this field is defined as 'SriLanka Dengue 2016'
|
|
geojsonExtraInfo | undefined |
This is a string containing the name of an optional field (column) which may be defined in the CSV spreadsheet. Each value in this column will relate to a sub-region and will be displayed in the map popup box. In the example data this field gives the population of each sub-region (i.e. district) so is defined as 'Population'
This input box is not used by this Shiny app instead this information should be entered in the input box at the top of this webpage where the shapefiles and CSV are uploaded.
|
geojsongeom |
This is a string giving the name of sub-region geometry as defined in both shapefiles and CSV spreadsheet. It is the overall name of every feature (i.e. all polygons/points). In the example dataset this string is defined as 'District'
This input box is not used by this Shiny app instead this information should be entered in the input box at the top of this webpage where the shapefiles and CSV are uploaded.
|
|
geojsonname |
This defines an array of integers where each integer corresponds to a layer at a given timestep. The elements in this array form the x-axis on the timeseries figure. Each timestep should have a unique integer. This geojsonname field must be array of the same length as layerName i.e. each element in geojsonname should have a corresponding element in layerName. Both arrays should be ordered such that the first element relates to the first time point through to the last element corresponding to the last time point. In the example dataset this array refers to the months in a calendar year so is defined as ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
|
|
layerMarker |
This defines a list of parameters used for plotting a Leaflet position marker on each group of layers. Example usage, { latlng:[53.4875, -2.2901], popuptxt:'Centre of Salford' }. The parameter 'latlng' is an array of coordinates [longitude, latitude] defining the marker's position and 'popuptxt' is a string which will be displayed in a popup box when the marker is clicked. In the example dataset this list is set to undefined as we choose not to display a position marker on the map.
|
|
layerName |
This defines an array of strings where each string is the name of a layer. Each layer should have a unique name. There should be the same number of names as there are layers in a given group. These names appear in the Leaflet dropdown menu (at top-left on map). In the example dataset this array is defined as ['Dengue Jan 2016','Dengue Feb 2016','Dengue Mar 2016','Dengue Apr 2016','Dengue May 2016','Dengue Jun 2016','Dengue Jul 2016','Dengue Aug 2016','Dengue Sep 2016','Dengue Oct 2016','Dengue Nov 2016','Dengue Dec 2016']
|
|
mapBoundary |
The 'mapBoundary' field lists parameters for placing an external boundary/border (polyline) around the map.
Example usage { filename:'data/externalBorder.geojson', borderStyle:{color:'#aaa', weight:2} }.
The parameter 'filename' is a string for the relative path and filename of the geojson file containing the external boundary. The 'filename' field is only ever used when creating your own Dynamic Atlas so is not relevant to this (Shiny) website as the boundary is automatically computed as part of this Shiny app. The parameter 'borderStyle' is a list of styles for the border.
Unless 'borderStyle' is undefined always define both colour and weight. If a boundary is not required then this list should be set to undefined.
For this website, in this Shiny app, this list should be set to { filename:undefined, borderStyle:{color:'#aaa', weight:2} }, where the 'color' and 'weight' can be customised as required.
|
|
radioButtonValue |
This defines a string which is used to determine which layer from 'layername' should be displayed by default.
This string must be one of the strings in the 'layername' array.
In the example dataset this string is defined as 'Dengue Jul 2016'
|
|
regionNames |
This is list of strings for labelling the overall region (or country) and sub-regions on the map e.g. usage {country:'UK', area:'District'}.
Where the field 'country' is the overall name of the mapped region (e.g. a country) and 'area' is the label given to sub-regions (e.g. district, LSOA) or point locations (e.g. hospitals).
If either 'country' or 'area' is not required set to an empty string i.e. area:' '.
In the example dataset this list is defined as {country:'SriLanka', area:'District'}
|
Option | Default | Description |
---|---|---|
colgrades |
This is a list of parameters are for defining the colours on the maps and legend within a layer group.
Example usage {Ints:0.01, Inis:0, Num:undefined, Vals:['#0c2c84', '#225ea8', '#41b6c4']}. The parameters are defined as follows: - 'Ints' is a number (integer or float) defining the step (bin) size on the legend entries e.g. 4000. - 'Inis' is a number (integer or float) defining the starting value on the legend e.g. 1. - 'Num' is an integer number of colours to be displayed on the map. If it is set to undefined only the colours in 'Vals' are used. Conversely if 'Num' is set to 24 this will result in 24 colours grades based on the colours defined in 'Vals'. - 'Vals' is an ordered array of hexadecimal colours for the map and corresponding legend. The number of elements in the array will determine the range covered (starting at Inis and increasing in increments of Ints). In the example dataset this list is defined as {Ints:1, Inis:0, Num:undefined, Vals:['#fff7db', '#ffeda0', '#fed976', '#fd8d3c', '#fc4e2a', '#e31a1c', '#b10026', '#800026']}. Therefore the lowest value on the legend will be 0, steps (bins) are of size 1 and there will be 8 steps (bins) in total. |
|
featurehltStyle |
This is a list of Leaflet style parameters for the highlighted sub-region (feature) on the map. Clicking on a sub-region (feature) will highlight the border of the sub-region with the styles in this list.
In the example dataset this is defined as { weight:5 } so the wide of the border increases to 5 pixels when a sub-region (feature) is clicked.
|
|
legend |
This field takes Boolean values (true or false). When this field is set to true a legend will be displayed on the map.
In the example dataset this is defined as true.
|
|
mapPosition |
This list defines the coordinates and zoom for the baselayer map e.g. usage: {centerLatLng:[52, 0], zoom:12}. Where the field 'centerLatLng' is an array of coordinates [longitude, latitude] which defines the centre of the layer group, and 'zoom' is an integer defining the zoom of the layer group. In the example dataset this list is defined as {centerLatLng: [7.8731, 80.7718], zoom:8}
|
|
mapStyles |
This is a list of Leaflet parameters for the styling of the map.
Example usage { weight:1, opacity:1, color:'#007AC3', fillOpacity:0.5, smoothFactor:1 }. The parameters are defined as follows: - 'weight' is the weight of the border surrounding each sub-region or point. - 'opacity' is the opacity of the border surrounding each sub-region or point ('opacity' must have a value ranging from 0 to 1). - 'color' is the colour of the border surrounding each sub-region or point. - 'fillOpacity' is the opacity of the fill colour for each sub-region or point. - 'smoothFactor' is a number which allows polyline simplification to improve performance times; the default is 1, higher numbers improve performance. In the example dataset this list is defined as { weight:1, opacity:1, color:'#aaa', fillOpacity:0.7, smoothFactor:1, radius:undefined } |
|
noDataColour |
This is a colour string for a map sub-region when there is no data reported for that sub-region (i.e. data value is undefined).
In the example dataset this is defined as 'rgba(0, 0, 0, 0.3)' which gives a light grey colour to the sub-region.
|
|
popupBox |
This is a Boolean so has values true or false.
When true a popup box appears when a sub-region on a map is clicked, this popup box displays information about the sub-region e.g. sub-region name, outcome value, etc.
Conversely when false a static textbox displays the information. When using raster maps it is advisable to set this parameter to false since the popup box sometimes appears at a location some way from where the map was clicked.
In the example dataset this is defined as false
|
|
units |
This is a list of strings containing the units and labelling of the map popup box and timeseries axes. Example uasage, { html:'cases/10,000', unicode:'cases/10,000', xlab:'month' }. The 'html' parameter is used in the map popup box and 'unicode' formatting is used on the timeseries y-axis. Both these parameters are the outcome units (e.g. cases per 10,000 population) the difference between them is that the 'html' string can contain html/css formatting and 'unicode' can contain unicode characters e.g. { html:'cases / 10 <span style=\"vertical-align:super\">3</span> pop', unicode:'cases / 10\u00B3 pop', xlab:'year' }. The string 'xlab' is the x-axis label on the timeseries figure. If no labels are required set each parameter to an empty string i.e. { html:' ', unicode:' ', xlab:' ' }. In the example dataset any of the above examples work fine.
|
Option | Default | Description |
---|---|---|
sliderlabel |
This is either set to null or a text string which gives the label of timestep unit e.g. 'month'. In the example dataset this string is defined as 'month'
|
|
timeData |
This is a list of parameters defining the time format for the slider and timeseries for a given group of layers.
Example usage { timeseries: true, timeseriesMin:1, timeseriesMax:12, timeseriesStep:1, highlight:{xLeft:2, xRight:4, colorFill:'rgba(0,0,0,0.1)', title:'shaded region represents time before some event'}, xlabs:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] }. The parameters are defined as follows: - 'timeseries' when true the timeseries will be plotted otherwise set to false. - 'timeseriesMin' is the minimum time value in the data for the layer group. - 'timeseriesMax' is the maximum time value in the data for the layer group. - 'timeseriesStep' is number defining the time interval (step) size between successive time points in the data; it is assumed these intervals/steps are equidistant. - 'highlight' is an array defining the start ('xLeft') and finish ('xRight') of a band of background colour ('colorFill') along the timeseries x-axis (height of band is full length of y-axis). The 'title' parameter can be used to describe the band. If 'xLeft' is set to undefined the band will start at the lowest x-axis value. If 'xRight' is set to undefined the band will finish at the highest x-axis value. If a highlighted band is not required set 'highlight' to undefined. - 'xlabs' is an array of x-axis labels for each tick mark on the axis (at each time increment). If labels are not required set xlabs:undefined in which case the x-axis will be labelled using integers starting at 1. If there is no time data then set 'timeseries' to false and the other parameters to undefined i.e. { timeseries:false, timeseriesMin:undefined, timeseriesMax:undefined, timeseriesStep:undefined, highlight:undefined }. In the example dataset where the timeseries spans month 1 (January) to month 12 (December) with time intervals/steps of 1 month then these parameters are defined as { timeseries:true, timeseriesMin:1, timeseriesMax:12, timeseriesStep:1, highlight:undefined, xlabs:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] } |
|
timePlot |
This is a list of parameters used for plotting the timeseries.
Example usage: { Background1Colour:'rgba(0,0,255,0.1)', Line1Colour:'rgba(0,0,255,0.2)', Background2Colour:'#007ac3', Line2Colour:'#007ac3', Background3Colour:'rgba(80,80,80,0.1)', Line3Colour:'rgba(80,80,80,0.2)', MarkerSize:3, HighlightColour:'#b41019', HighlightSize:5, ymax:1.0 } The parameters are defined as follows: - 'Background1Colour' is the background colour of the 'meandata' (format Hex or rgba). - 'Line1Colour' is the line colour of the 'meandata' (format Hex or rgba). - 'Background2Colour' is the background colour of the sub-region dataset (format Hex or rgba). - 'Line2Colour' is the line colour of the sub-region dataset (format Hex or rgba). - 'Background3Colour' is the background colour of the upper and lower confidence interval dataset (format Hex or rgba). - 'Line3Colour' is the line colour of the upper and lower confidence intervals dataset (format Hex or rgba). - 'MarkerSize' is an integer defining the default size of the markers on the timeseries figure. - 'HighlightColour' is the line colour of the highlighted point and vertical line on the timeseries figure (format Hex or rgba). - 'HighlightSize' is an integer defining the marker size of the highlighted points on the timeseries plot. - 'ymax' is a number defining the maximum y-axis value on the timeseries figure. For ymax:undefined the maximum y-axis value is computed dynamically. In the example dataset this list is defined as { Background1Colour:'rgba(0,0,255,0.1)', Line1Colour:'rgba(0,0,255,0.2)', Background2Colour:'#007ac3', Line2Colour:'#007ac3',MarkerSize:3, HighlightColour:'#b41019', HighlightSize:5, ymax:14.0 } |
Option | Default | Description |
---|---|---|
meandata |
This defines an array of data which will be plotted on the timeseries figure and would typically be a country/region wide outcome for each timestep in the layer group. If no such data is available then this field should be set to null. In the example dataset this array is the mean count of Dengue cases per month throughout Sri Lanka (units are cases per 10,000 head of population) so is defined as [ 3.16, 2.09, 1.27, 1.34, 1.14, 2.23, 5.05, 2.3, 1.71, 1.03, 1.06, 3.62 ]; these values are plotted in light blue with a filler (shaded area) down to zero on the y-axis.
|