UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

31 lines (29 loc) 745 B
/* * Copyright (c) 2015-2018, IGN France. * Copyright (c) 2018-2026, Giro3D team. * SPDX-License-Identifier: MIT */ import CoordinateSystem from '../core/geographic/CoordinateSystem'; import Extent from '../core/geographic/Extent'; import ImageSource from './ImageSource'; /** * An image source that produces nothing. Mainly for debugging/testing purposes. */ class NullSource extends ImageSource { isNullSource = true; type = 'NullSource'; constructor(options = {}) { super(); this._extent = options?.extent ?? new Extent(CoordinateSystem.epsg3857, 0, 10, 0, 10); } getCrs() { return this._extent.crs; } getImages() { return []; } getExtent() { return this._extent; } } export default NullSource;