type MVTileProps = {
tiles: {
cache: LRUCache<number, LiveElement[]>,
loaded: Map<number, number>,
flipY: boolean,
styles: MVTStyleContextProps,
forceUpdate: () => void,
},
key: number,
hide?: boolean,
tesselate?: number,
worker: {
loadMVT:
(
x: number,
y: number,
zoom: number,
url: string,
styles: MVTStyleSheet,
flipY: boolean,
tesselate?: number,
) => Promise<{ point?: AggregateItem, line?: AggregateItem, ring?: AggregateItem, face?: AggregateItem }>,
},
} & {
children?:
| LiveElement<ArrowFunction>[]
| ReactElementInterop
| DeferredCall<any>,
}
packages / map / src / mvtiles.ts