Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Generel overview and country level:

...

province country level:

...

district region level:

...

Chart config

Code Block
languagejson
layers: [
  {
    mapKey: 'africa-s4da',
    layer: 1,
    filterField: 'ADM0_NAME'
  },
  {
    mapKey: 'africa-s4da-drilldown',
    filterField: 'NAME_1',
    layer: 2,
    parentMapFilterField: 'ADM0_NAME'
  }
]

...

If we have a map of all s4da countries of Africa and we click on the country Ethiopia to load a map of all provinces regions of Ethiopia. Now this identifier tells us to only fetch the provinces regions that have the value “Ethiopia“ in the field given to “parentLayerIdentifier“. If you are unsure what field to put into “parentLayerIdentifier“ then look what is defined as “filterField“ under “filter” in your chart config. The values in those two fields should match. So if you have selected a field for the filter that matches a name then you should configure an equivalent field as “parentLayerIdentifier“. Often the fields are named exactly the same in both maps but if you have the maps from different sources their names might differ.

...