Skip to content

Commit e04727b

Browse files
committed
Remove dispatch code
1 parent 6091dc5 commit e04727b

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

src/dispatch.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/model/layer.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { BaseLayerModel } from "./base-layer.js";
2727
import { BitmapLayer, BitmapLayerProps } from "@deck.gl/layers";
2828
import { TileLayer, TileLayerProps } from "@deck.gl/geo-layers";
2929
import { isDefined } from "../util.js";
30-
import { dispatch } from "../dispatch.js";
3130
import { Experimental } from "@anywidget/types";
3231
import { invoke } from "./invoke.js";
3332

@@ -206,7 +205,7 @@ export type TileLoadProps = {
206205
bbox: TileBoundingBox;
207206
url?: string | null;
208207
signal?: AbortSignal;
209-
userData?: Record<string, any>;
208+
userData?: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
210209
zoom?: number;
211210
};
212211

@@ -293,18 +292,11 @@ export class BitmapTileModel extends BaseLayerModel {
293292
const out = await invoke(this.model, "helloworld", {});
294293
console.log("returned from invoke");
295294
console.log(out);
295+
console.log(tile);
296296

297297
// const { data, getTileData, fetch } = this.props;
298298
// const { signal } = tile;
299299

300-
console.log(tile);
301-
console.log("making dispatch");
302-
console.log("this");
303-
console.log(this);
304-
const x = await dispatch(this.model, "getTileData");
305-
console.log("received dispatch");
306-
console.log(x);
307-
308300
// // tile.url =
309301
// // typeof data === "string" || Array.isArray(data)
310302
// // ? getURLFromTemplate(data, tile)

0 commit comments

Comments
 (0)