• JMap.Map.Basemap.getById

    Returs the basemap descriptor for the given id.

    Parameters

    • basemapId: string

      The basemap id, use JMap.Map.Basemap.getAllId() to get available basemap ids

    Returns JBasemap

    Throws

    Error if basemap not found for the given id

    Example

    // returns the "streets" basemap
    JMap.Map.Basemap.getById("streets")