scottdejonge/map-icons

Add a JSON file with information about every icon

viktorstrate opened this issue · 0 comments

It would be nice to have a JSON file, that describes every icon. Somthing like the following

[
  {
    "name": "{NAME}",
    "category": "{CATEGORY}"
  }, {
    "name": "{NAME}",
    "category": "{CATEGORY}"
  }, {
    "name": "{NAME}",
    "category": "{CATEGORY}"
  }
]

Where {NAME} is the name of that icon, fx. "Campground" and {CATEGORY} is the name of the category, as shown on the website fx. "General", "Toilets" etc..

It could be used to dynamically load icons. Among other things, like a search feature.

When a new icon is added to this pack, it should be added to the JSON file too.

I will happily send a pull request, if you think this is a great idea 😀