Creating categories
To review key information on defining categories, see Categorías.
In the presets
directory, customize the .json
files
presets
directory, customize the .json
filesIn the presets directory, each .json
file needs:
icon
must mach the name of an icon in theicons
folder - use prefix only, excluding the size refernce and file extension (eg. forfishing-24px.svg/fishing-100px.svg
usefishing
).name
will be the human-readable label shown to the usergeometry
must 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 nosort
is included, categories will be listed alphabetically byname
.an array of
fields
(optional) which should match thekey
created in the fields directory. Fields will be displayed to users in the order they are listed in thefields
array.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
):Last updated