@versatiles/map-state
    Preparing search index...

    Function stateFromMapJSON

    • The map state of the content of a .mapjson file. One of a newer version (its version) throws a MapJSONVersionError, and one without elements an error. A file may contain anything, so only its valid parts are kept, as of an imported GeoJSON: e.g. an element that cannot be drawn is left out, and so is a style field with an invalid value.

      Parameters

      • json: unknown

      Returns MapState