Skip to content

Commit

Permalink
Fix emtpy basemap types
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMuehlhauserNRCan committed Jan 20, 2025
1 parent ed56cd7 commit f0e018a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geoview-core/src/geo/utils/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Style, Stroke, Fill, Circle } from 'ol/style';
import { Color } from 'ol/color';
import { getArea as getAreaOL, getLength as getLengthOL } from 'ol/sphere';
import { Extent } from 'ol/extent';
import XYZ from 'ol/source/XYZ';
import { XYZ, OSM, VectorTile } from 'ol/source';
import TileLayer from 'ol/layer/Tile';
import { LineString, Polygon } from 'ol/geom';
import { Coordinate } from 'ol/coordinate';
Expand Down Expand Up @@ -204,7 +204,7 @@ export function getDefaultDrawingStyle(strokeColor?: Color | string, strokeWidth
*
* @returns {TileLayer<XYZ>} return the created basemap
*/
export function createEmptyBasemap(): TileLayer<XYZ> {
export function createEmptyBasemap(): TileLayer<XYZ | OSM | VectorTile> {
// create empty tilelayer to use as initial basemap while we load basemap
const emptyBasemap: TypeBasemapLayer = {
basemapId: 'empty',
Expand Down

0 comments on commit f0e018a

Please sign in to comment.