Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate eox-map and eox-drawtools for "bounding-box" format #1271

Open
silvester-pari opened this issue Sep 25, 2024 · 0 comments
Open

Integrate eox-map and eox-drawtools for "bounding-box" format #1271

silvester-pari opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels

Comments

@silvester-pari
Copy link
Collaborator

Consider the following JSON schema:

        "spatial": {
          "title": "Spatial Extents",
          "type": "object",
          "format": "bounding-boxes",
          "required": [
            "bbox"
          ],
          "properties": {
            "bbox": {
              "type": "array",
              "items": {
                "type": "array",
                "format": "bounding-box",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4
              },
              "minItems": 1
            }
          }
        },

This should render an eox-map with eox-drawtools allowing multiple bounding boxes.
Another example could be (with options):

          "properties": {
            "bbox": {
              "type": "array",
              "items": {
                "type": "array",
                "format": "bounding-box",
                "items": {
                  "type": "number"
                },
                "minItems": 4,
                "maxItems": 4,
                "options": {
                  "eox-drawtools": {
                     "allow-modify": true,
                     "multiple-features": false,
                     "show-editor": true,
                     "for": "eox-map#special"
                  }
                }
              }
          }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants