Skip to content

Commit 9d1a8ff

Browse files
authored
fix: Use MapboxOverlayProps instead of DeckProps in example to fix type check (#400)
1 parent d982bb1 commit 9d1a8ff

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/cog-basic/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DeckProps } from "@deck.gl/core";
1+
import type { MapboxOverlayProps } from "@deck.gl/mapbox";
22
import { MapboxOverlay } from "@deck.gl/mapbox";
33
import { COGLayer } from "@developmentseed/deck.gl-geotiff";
44
import "maplibre-gl/dist/maplibre-gl.css";
@@ -7,7 +7,7 @@ import { useRef, useState } from "react";
77
import type { MapRef } from "react-map-gl/maplibre";
88
import { Map as MaplibreMap, useControl } from "react-map-gl/maplibre";
99

10-
function DeckGLOverlay(props: DeckProps) {
10+
function DeckGLOverlay(props: MapboxOverlayProps) {
1111
const overlay = useControl<MapboxOverlay>(() => new MapboxOverlay(props));
1212
overlay.setProps(props);
1313
return null;

examples/land-cover/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DeckProps } from "@deck.gl/core";
1+
import type { MapboxOverlayProps } from "@deck.gl/mapbox";
22
import { MapboxOverlay } from "@deck.gl/mapbox";
33
import { COGLayer } from "@developmentseed/deck.gl-geotiff";
44
import "maplibre-gl/dist/maplibre-gl.css";
@@ -11,7 +11,7 @@ import { Map as MaplibreMap, useControl } from "react-map-gl/maplibre";
1111
import { InfoPanel } from "./components/InfoPanel";
1212
import { UIOverlay } from "./components/UIOverlay";
1313

14-
function DeckGLOverlay(props: DeckProps) {
14+
function DeckGLOverlay(props: MapboxOverlayProps) {
1515
const overlay = useControl<MapboxOverlay>(() => new MapboxOverlay(props));
1616
overlay.setProps(props);
1717
return null;

examples/naip-mosaic/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DeckProps } from "@deck.gl/core";
1+
import type { MapboxOverlayProps } from "@deck.gl/mapbox";
22
import { MapboxOverlay } from "@deck.gl/mapbox";
33
import { COGLayer, MosaicLayer } from "@developmentseed/deck.gl-geotiff";
44
import type {
@@ -27,7 +27,7 @@ import { epsgResolver } from "./proj";
2727
/** Bounding box query passed to Microsoft Planetary Computer STAC API */
2828
const STAC_BBOX = [-106.6059, 38.7455, -104.5917, 40.4223];
2929

30-
function DeckGLOverlay(props: DeckProps) {
30+
function DeckGLOverlay(props: MapboxOverlayProps) {
3131
const overlay = useControl<MapboxOverlay>(() => new MapboxOverlay(props));
3232
overlay.setProps(props);
3333
return null;

0 commit comments

Comments
 (0)