OpenUpSA / wazimap-ng

Backend for Wazimap-NG. See also https://github.com/OpenUpSA/wazimap-ng-ui/
https://geo.vulekamali.gov.za/
Apache License 2.0
11 stars 16 forks source link

Icon on profile categories not displaying #190

Open adieyal opened 3 years ago

adieyal commented 3 years ago
  1. Change the icon for a profile category in the Django Admin, e.g. (https://staging.wazimap-ng.openup.org.za/admin/points/profilecategory/41/change/?_changelist_filters=theme_id%3D2)
  2. Navigate to the correct profile instance, e.g. https://wazimap-ng.africa/
  3. Find the profile category in the points mapper
  4. Notice that the chosen icon is not visible.

0.12 The icon should be added here: https://github.com/OpenUpSA/wazimap-ng/blob/4835bc9346b361a7d6d4aba5fb8697124801005d/wazimap_ng/points/views.py#L112

milafrerichs commented 3 years ago

the API response should look like this:


[
  {
    "name": "Health",
    "id": 43,
    "icon": "local_hospital",
    "subthemes": [
      {
        "label": "Pharmacies",
        "id": 300,
        "count": 1500,
+       "icon": "local_hospital"
        "metadata": {
          "source": "",
          "description": "",
          "licence": 1
        }
      },
    ]
  },