react-native-mobilex 开发文档
    Preparing search index...

    Interface IVectorTileDatasource

    mvt 数据源

    interface IVectorTileDatasource {
        fieldInfos?: IFieldInfo[];
        geometryType: "point" | "line" | "fill";
        id: string;
        name: string;
        readOnly: boolean;
        sourceLayers?: IVectorTileSourceLayer[];
        tiles: string[];
        type: "vectorTile";
        view?: IVectorTileView;
    }

    Hierarchy (View Summary)

    Index

    Properties

    fieldInfos?: IFieldInfo[]

    矢量瓦片数据源的属性字段信息。

    geometryType: "point" | "line" | "fill"

    矢量瓦片数据源几何类型;文本几何不作为 MVT 数据源类型使用。

    id: string

    数据源id

    name: string

    数据源名称

    readOnly: boolean

    是否为只读数据源;默认值:true。

    sourceLayers?: IVectorTileSourceLayer[]

    本地 MVT 包已登记样式中去重后的矢量子图层引用。 geometryType 是样式引用提示,不代表数据层包含的全部几何类型。

    仅本地 MVT 包有值,读取失败或网络瓦片时为 undefined。

    tiles: string[]

    矢量瓦片数据地址数组。

    支持网络 MVT 瓦片地址、本地 mobilex://tiles/... MVT 资源地址, 或本地 GeoJSON 文件路径。本地 GeoJSON 会由原生侧通过 geojson-vt 动态切片为 MVT 服务。

    type: "vectorTile"

    数据源类型标识。

    本地 MVT 包已登记的初始视图及源 EPSG(center/zoom/epsg)。

    仅本地 MVT 包有值,读取失败或网络瓦片时为 undefined。