Creating categories
In the presets directory, customize the .json files
presets directory, customize the .json filesIn the presets directory, each .json file needs:
iconmust mach the name of an icon in theiconsfolder - use prefix only, excluding the size refernce and file extension (eg. forfishing-24px.svg/fishing-100px.svgusefishing).namewill be the human-readable label shown to the usergeometrymust be an array ofpoint,area, and/orline(All categories for use in Mapeo Mobile must includepoint.)sort(optional) is an integer that will determine the order in which categories are displayed on the Categories screen of Mapeo Mobile. If nosortis included, categories will be listed alphabetically byname.an array of
fields(optional) which should match thekeycreated in the fields directory. Fields will be displayed to users in the order they are listed in thefieldsarray.color(optional) determines the color of observation dots on the map. (Dots fall back to orange if no color is defined.) Value can be a hex code, CSS color name or any string supported by validate-color.
Example preset file (fishing-site.json):
fishing-site.json):{
"icon": "fishing",
"name": "Fishing Site",
"sort": 10,
"color": "#13D5CF",
"fields": [
"name"
],
"geometry": [
"point",
"area"
]
}Last updated