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

    Interface IGeometryEvent

    几何对象被选中时的信息

    interface IGeometryEvent {
        geometry?:
            | IGeoJSONPoint
            | IGeoJSONLine
            | IGeoJSONPolygon
            | IGeoJSONMultiPoint
            | IGeoJSONMultiLine
            | IGeoJSONMultiPolygon
            | IGeoJSONGeometryCollection;
        geometryId: number;
        layerId: string;
        properties?: Record<string, null | string | number | boolean>;
    }
    Index

    Properties

    命中要素的几何(GeoJSON,当前缩放级别的瓦片简化版)。

    仅 MVT 瓦片底图命中时填充,用于只读高亮显示,不保证与原始几何完全一致。

    geometryId: number

    几何对象的 geoId。

    命中 MVT 瓦片要素且瓦片未编码要素 id 时为 -1

    layerId: string

    被选中的对象所在图层的图层 id

    properties?: Record<string, null | string | number | boolean>

    命中要素的属性快照(字段名 -> 值)。

    仅 MVT 瓦片底图等没有 recordset 支撑的只读数据源填充; GeoJSON 等常规数据源恒为 undefined,属性仍通过 fieldInfos + getFieldValue 获取。