File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import type { DeckProps } from "@deck.gl/core " ;
1+ import type { MapboxOverlayProps } from "@deck.gl/mapbox " ;
22import { MapboxOverlay } from "@deck.gl/mapbox" ;
33import { COGLayer } from "@developmentseed/deck.gl-geotiff" ;
44import "maplibre-gl/dist/maplibre-gl.css" ;
@@ -7,7 +7,7 @@ import { useRef, useState } from "react";
77import type { MapRef } from "react-map-gl/maplibre" ;
88import { 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 ;
Original file line number Diff line number Diff line change 1- import type { DeckProps } from "@deck.gl/core " ;
1+ import type { MapboxOverlayProps } from "@deck.gl/mapbox " ;
22import { MapboxOverlay } from "@deck.gl/mapbox" ;
33import { COGLayer } from "@developmentseed/deck.gl-geotiff" ;
44import "maplibre-gl/dist/maplibre-gl.css" ;
@@ -11,7 +11,7 @@ import { Map as MaplibreMap, useControl } from "react-map-gl/maplibre";
1111import { InfoPanel } from "./components/InfoPanel" ;
1212import { 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 ;
Original file line number Diff line number Diff line change 1- import type { DeckProps } from "@deck.gl/core " ;
1+ import type { MapboxOverlayProps } from "@deck.gl/mapbox " ;
22import { MapboxOverlay } from "@deck.gl/mapbox" ;
33import { COGLayer , MosaicLayer } from "@developmentseed/deck.gl-geotiff" ;
44import type {
@@ -27,7 +27,7 @@ import { epsgResolver } from "./proj";
2727/** Bounding box query passed to Microsoft Planetary Computer STAC API */
2828const 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 ;
You can’t perform that action at this time.
0 commit comments