MVTLayerOptions

MVT矢量瓦片图层配置项

interface MVTLayerOptions {
    encrypt?: boolean;
    gridModel?: number;
    idProperty?: string;
    layers?: MVTLayerConfig[];
    maxZoom?: number;
    minZoom?: number;
    noCollision?: boolean;
    onclick?: (e: { value: object[] }) => void;
    ondblclick?: (e: { value: object[] }) => void;
    onmousemove?: (e: { value: object[] }) => void;
    onmouseout?: (e: { value: object[] }) => void;
    spanLevel?: number;
    style?: MVTLayerStyle;
    tileUrlTemplate?: string;
    transform?: { source?: string; target?: string };
    useThumb?: boolean;
}

属性

是否加密

网格模型,默认为百度Web墨卡托

要素标识属性名

图层配置列表

最大缩放级别,默认23

最小缩放级别,默认3

是否关闭碰撞检测,默认true

点击回调

双击回调

鼠标移入回调

鼠标移出回调

跨级别

图层样式

瓦片URL模板,支持[z]、[x]、[y]占位符

坐标转换配置

是否使用缩略图填充,默认true