@polygonjs/plugin-mapbox
Version:
Mapbox plugin for the 3D engine https://polygonjs.com
37 lines (36 loc) • 1.56 kB
TypeScript
/**
* Imports a mapbox tile.
*
* @remarks
* Note that this node requires a mapbox account.
*/
import { TypedCopNode } from '@polygonjs/polygonjs/dist/src/engine/nodes/cop/_Base';
export declare enum TileType {
ELEVATION = "elevation",
SATELLITE = "satellite"
}
export declare enum TileRes {
LOW = 256,
HIGH = 512
}
import { NodeParamsConfig } from '@polygonjs/polygonjs/dist/src/engine/nodes/utils/params/ParamsConfig';
declare class MapboxTileCopParamsConfig extends NodeParamsConfig {
/** @param Longitude and latitude for the tile */
lngLat: import("@polygonjs/polygonjs/dist/src/engine/nodes/utils/params/ParamsConfig").ParamTemplate<import("@polygonjs/polygonjs/dist/src/engine/poly/ParamType").ParamType.VECTOR2>;
/** @param zoom value */
zoom: import("@polygonjs/polygonjs/dist/src/engine/nodes/utils/params/ParamsConfig").ParamTemplate<import("@polygonjs/polygonjs/dist/src/engine/poly/ParamType").ParamType.INTEGER>;
/** @param type of tile (elevation or satellite) */
type: import("@polygonjs/polygonjs/dist/src/engine/nodes/utils/params/ParamsConfig").ParamTemplate<import("@polygonjs/polygonjs/dist/src/engine/poly/ParamType").ParamType.INTEGER>;
}
export declare class MapboxTileCopNode extends TypedCopNode<MapboxTileCopParamsConfig> {
paramsConfig: MapboxTileCopParamsConfig;
_paramHires: boolean;
static type(): string;
private _texture;
initializeNode(): void;
cook(): Promise<void>;
private _cookForElevation;
private _cookForSatellite;
private _url;
}
export {};