GeoLeaf Core API - v3.19.0
    Preparing search index...

    Function geometryKindToGeoJSONTypes

    • The GeoJSON geometry types a declared kind names, in either vocabulary.

      A GeoJSON name is kept verbatim; a lowercase kind expands to its family; anything else answers an EMPTY set. Empty is the honest answer for a token nobody defined — a guess would render a layer as something it never said it was, and no caller could tell.

      Parameters

      • kind: unknown

        One declared value, or a list of them. Any other type answers empty.

      Returns Set<string>

      The GeoJSON type names, possibly empty. Never null.

      geometryKindToGeoJSONTypes("polyline");  // Set { "LineString", "MultiLineString" }
      geometryKindToGeoJSONTypes("Point"); // Set { "Point" }
      geometryKindToGeoJSONTypes("hexagon"); // Set {}