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

    Function hasDrawableBasemapShape

    • Whether a basemap definition carries something to draw: a url, a non-empty tiles list, a style, type: "maplibre", or one of the types configured by their own block — image, hillshade, wmts, wms. The block itself is not inspected here: its absence is the type's own reader's to report.

      Parameters

      • definition: unknown

        A basemap entry, as the profile or a caller wrote it.

      Returns boolean

      true when the registry can draw it.