Class: SourceType

ol/source/type~SourceType


import SourceType from 'ol/source/type.js';

The source type for getSourceOptions.

new SourceType(name)

Creates a new SourceType.

Name Type Description
name string

The internal string identifier.

Members

GeoTIFF

GeoTiff

See:

GeoZarr

GeoZarr

See:

ImageStatic

Static Image (ImageStatic)

See:

PMTiles

PMTiles. Used before the tile type (raster or vector) has been determined, i.e. options.url applies to both raster and vector tiles.

See:

PMTilesRaster

PMTilesRaster

Deprecated
  • Use SourceType.PMTiles instead, `getSourceOptions` is called with it before the tile type is known. For backward compatibility, callbacks that leave the options unchanged for SourceType.PMTiles are still called with this type after the tile type has been determined. This fallback will be removed in 2.0.0.
    See:

    PMTilesVector

    PMTilesVector

    Deprecated
    • Use SourceType.PMTiles instead, `getSourceOptions` is called with it before the tile type is known. For backward compatibility, callbacks that leave the options unchanged for SourceType.PMTiles are still called with this type after the tile type has been determined. This fallback will be removed in 2.0.0.
      See:

      TileJSON

      TileJSON

      See:

      TileWMS

      WMS (TileWMS)

      See:

      WMTS

      WMTS

      See:

      XYZ

      XYZ

      See:

      Methods

      toString(){string}

      Converts to a string.

      Returns:
      The internal string identifier.