chaichai
Version:
[](https://www.npmjs.com/package/chaichai) [](https://www.npmjs.com/package/chaichai) [ • 1.42 kB
TypeScript
import { vectorType, vectorTileType } from '../../interface-type';
export declare const defaultStyle: {
point: {
symbol: string;
radius: number;
fill_color: string;
fill_opacity: number;
stroke_color: string;
stroke_width: number;
classify: boolean;
clList: never[];
};
linestring: {
stroke_color: string;
stroke_width: number;
classify: boolean;
clList: never[];
};
polygon: {
fill_color: string;
fill_opacity: number;
stroke_color: string;
stroke_width: number;
classify: boolean;
clList: never[];
};
};
export declare const jetStreamVectorToMapboxStyle: (vector: vectorType) => {
source: {
id: string;
data: {
type: string;
data: object;
};
};
layers: any[];
};
export declare const vectorToMapboxStyle: (vector: vectorType) => {
source: {
id: string;
data: {
type: string;
data: object;
};
};
layers: any[];
};
export declare const vectorTileToMapboxStyle: (vectorTile: vectorTileType) => {
source: {
id: string;
data: {
type: string;
tiles: string[];
maxzoom: number;
};
};
layers: any[];
};