digidem / mapeo-desktop

Local-first mapping and monitoring in remote environments
https://mapeo.app
GNU General Public License v3.0
261 stars 33 forks source link

Feature switches to a single preset when entering data #723

Closed DerekCaelin closed 1 year ago

DerekCaelin commented 1 year ago

https://user-images.githubusercontent.com/10799815/227246997-cf129ee8-9611-4ab7-b19b-649442c26195.mp4

Describe the bug A custom configuration reverts to a single preset when data is entered. (Error occurs on desktop version, but not mobile)

Can you do the same thing twice? The exact steps to see the problem again.

  1. Create custom configuration
  2. Draw a polygon
  3. Select a feature type
  4. Enter data in any field
  5. Feature reverts to a single type

Expected behavior Feature remains that which was selected.

Desktop:

Mapeo Version:

Additional context Add any other context about the problem here.

DerekCaelin commented 1 year ago

The feature to which it reverts appears to be the result of which is listed first in the point array of defaults.json.

EG:

{ "area": [ "production", "nature-based", "conservation", "policy" ], "line": [ "nature-based", "conservation", "production", "policy" ], "point": [ "policy", "conservation", "production", "nature-based" ],

Results in:

image
DerekCaelin commented 1 year ago

I resolved the issue by providing a different "type" under "tags" for each category.

image image