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

    Interface ILayerText

    文本图层

    interface ILayerText {
        editable: boolean;
        id: string;
        maxVisibleScale: number;
        metadata?: unknown;
        minVisibleScale: number;
        name: string;
        selectable: boolean;
        selectionStyle: { textColor: string } | { haloColor: string };
        sourceId: string;
        textScaledBaseZoom?: number;
        type: "text";
        visible: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    editable: boolean

    是否可编辑 所有图层中只能同时有一个可编辑的图层

    id: string

    图层id

    maxVisibleScale: number

    最大可见比例尺

    metadata?: unknown

    自定义数据

    minVisibleScale: number

    最小可见比例尺

    name: string

    图层名

    selectable: boolean

    是否可选

    selectionStyle: { textColor: string } | { haloColor: string }

    选择集风格

    Type declaration

    • { textColor: string }
      • textColor: string

        文本颜色

    • { haloColor: string }
      • haloColor: string

        轮廓颜色

    sourceId: string

    数据源id

    textScaledBaseZoom?: number

    文字大小(像素)随地图缩放的基础zoom,undefined表示不随地图缩放

    type: "text"

    图层类型

    visible: boolean

    是否可见