UNPKG

qwc2

Version:
22 lines (21 loc) 688 B
/** * Copyright 2025 Sourcepole AG * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import CoordinateSystem from '@giro3d/giro3d/core/geographic/coordinate-system/CoordinateSystem'; import ColorLayer from '@giro3d/giro3d/core/layer/ColorLayer'; import GeoTIFFSource from "@giro3d/giro3d/sources/GeoTIFFSource.js"; export default { create3d: function create3d(options, projection) { return new ColorLayer({ name: options.name, source: new GeoTIFFSource({ url: options.url, crs: CoordinateSystem.fromSrid(projection) }) }); } };