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

    Function stateToMapJSON

    • The map state as the content of a .mapjson file, with the URL of its schema and its version first. Only its valid parts, as stateFromMapJSON reads them, so reading the file gives the map that was written: e.g. colors in lower case, coordinates with COORDINATE_DIGITS decimal places, and no settings with their default value.

      Parameters

      Returns MapJSON