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

Map Field: Failed to get the type for *.location. Setting to "never". #14

Open
olivermack opened this issue Feb 3, 2024 · 1 comment

Comments

@olivermack
Copy link

olivermack commented Feb 3, 2024

Cheers,

just fiddling around with this lib and stumbled upon an issue when having a Map type field. Guess it is just missing an appropriate translation.

https://docs.directus.io/app/data-model/fields/selection.html#map

Here's a snippet (obfuscated) from my schema dump:

  - collection: [SNIP]
    field: location
    type: geometry.Point
    meta:
      collection: [SNIP]
      conditions: null
      display: null
      display_options: null
      field: location
      group: null
      hidden: false
      interface: map
      note: null
      options:
        defaultView:
          bearing: 0
          center:
            lat: [SNIP]
            lng: [SNIP]
          pitch: 0
          zoom: -0.3706434003783814
        geometryType: Point
      readonly: false
      required: false
      sort: 10
      special: null
      translations: null
      validation: null
      validation_message: null
      width: full
    schema:
      name: location
      table: [SNIP]
      data_type: POINT
      default_value: null
      max_length: null
      numeric_precision: null
      numeric_scale: null
      is_nullable: true
      is_unique: false
      is_primary_key: false
      is_generated: false
      generation_expression: null
      has_auto_increment: false
      foreign_key_table: null
      foreign_key_column: null

Thanks for the extension btw!

@ChappIO
Copy link
Owner

ChappIO commented Feb 7, 2024

Thanks for letting me know. I will take a look this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants