obiba / amber-studio

Content management app for Amber
MIT License
1 stars 1 forks source link

Minor issue with form fields having Geo data #9

Open kazoompa opened 1 year ago

kazoompa commented 1 year ago

Scenario 1

The map is not shown

Scenario 2

Remedies

Here is the form that was used w/ Geo data:

{
  "label": "location",
  "items": [
    {
      "type": "autocomplete",
      "label": "City",
      "name": "city",
      "options": [
        {
          "value": "1",
          "label": "Montreal"
        },
        {
          "value": "2",
          "label": "Laval"
        },
        {
          "value": "3",
          "label": "Longueuil "
        }
      ],
      "newValue": true,
      "hint": "",
      "condition": "",
      "required": true
    },
    {
      "type": "map",
      "label": "LongLat",
      "name": "longlat",
      "geometryType": "Point",
      "center": "[45.5019,73.5674]"
    }
  ],
  "description": "Location"
}