South Africa

Download (36 KB)

To render the map use the following code:

$('#map').vectorMap({map: 'za_mill'});

Download (36 KB)

To render the map use the following code:

$('#map').vectorMap({map: 'za_merc'});

Codes

1 ZA-WC Western Cape
2 ZA-FS Orange Free State
3 ZA-EC Eastern Cape
4 ZA-NC Northern Cape
5 ZA-LP Limpopo
6 ZA-MP Mpumalanga
7 ZA-NL KwaZulu-Natal
8 ZA-NW North West
9 ZA-GT Gauteng

Processor config

[{
  "name": "read_data",
  "file_name": "ne_10m_admin_1_states_provinces_lakes/ne_10m_admin_1_states_provinces_lakes.shp",
  "filter": "iso_a2 = \"ZA\""
},{
  "name": "join_data",
  "data": [
    ["955", "ZA-NC"],
    ["956", "ZA-WC"],
    ["957", "ZA-NW"],
    ["958", "ZA-FS"],
    ["959", "ZA-GT"],
    ["960", "ZA-MP"],
    ["961", "ZA-LP"],
    ["962", "ZA-NL"],
    ["1612", "ZA-EC"]
  ],
  "fields": [{
      "name": "OBJECTID_1",
      "type": 4,
      "width": 9
  },{
      "name": "iso_3166_2",
      "type": 4,
      "width": 10
  }],
  "on": "OBJECTID_1"
},{
  "name": "write_data",
  "format": "jvectormap",
  "params": {
    "code_field": "iso_3166_2",
    "name_field": "name",
    "name": "za"
  }
}]