Skip to content

Commit

Permalink
Fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Mar 25, 2024
1 parent 04a4c97 commit 69c8962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/ts/components/ObservationsMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {fromLonLat} from "ol/proj";
import TileLayer from "ol/layer/Tile";
import {VectorTile as VectorTileLayer} from "ol/layer";
import OSM from "ol/source/OSM";
import Stamen from "ol/source/Stamen";
import StadiaMaps from 'ol/source/StadiaMaps.js';
import VectorTileSource from "ol/source/VectorTile";
import {ScaleSequential, scaleSequentialLog} from "d3-scale";
import {interpolateReds} from "d3-scale-chromatic";
Expand Down Expand Up @@ -38,7 +38,7 @@ interface ObservationMapData {
HexMinOccCount: Number;
HexMaxOccCount: Number;
availableBaseLayers: BaseLayerEntry[];
areasOverlayCollection: Collection<VectorLayer<VectorSource<Geometry>>>;
areasOverlayCollection: Collection<VectorLayer<VectorSource<Feature<Geometry>>>>;
popover: Popover | null;
}
Expand Down Expand Up @@ -137,7 +137,7 @@ export default defineComponent({
},
},
computed: {
selectedBaseLayer: function (): TileLayer<Stamen> | TileLayer<OSM> {
selectedBaseLayer: function (): TileLayer<StadiaMaps> | TileLayer<OSM> {
return this.selectedBaseLayerEntry.layer;
},
selectedBaseLayerEntry: function (): BaseLayerEntry {
Expand Down
4 changes: 2 additions & 2 deletions assets/ts/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import TileLayer from "ol/layer/Tile";
import Stamen from "ol/source/Stamen";
import StadiaMaps from 'ol/source/StadiaMaps.js';
import OSM from "ol/source/OSM";
import {XYZ} from "ol/source";
import {DateTime} from "luxon";
Expand Down Expand Up @@ -125,7 +125,7 @@ export interface PreparedHistogramDataEntry {

export interface BaseLayerEntry {
name: string;
layer: TileLayer<Stamen> | TileLayer<OSM> | TileLayer<XYZ>;
layer: TileLayer<StadiaMaps> | TileLayer<OSM> | TileLayer<XYZ>;
}

export interface DateRange {
Expand Down

0 comments on commit 69c8962

Please sign in to comment.