Function guessStyle

  • Generates a style specification based on the provided TileJSON specification and optional parameters.

    Parameters

    • tileJSON: TileJSONSpecification

      The TileJSON specification to generate the style from.

    • Optionaloptions: GuessStyleOptions

      Optional parameters to customize the style generation.

      Options for guessing the style of a map.

      • OptionalbaseUrl?: string

        Base URL to resolve URLs for tile sources, glyphs, and sprites.

      • Optionalglyphs?: string

        URL template for glyphs.

      • Optionalsprite?: SpriteSpecification

        URL template for sprites. See also SpriteSpecification.

    Returns StyleSpecification

    The generated style specification.

    If the provided TileJSON specification is invalid.