GeoJSONLayerOptions

GeoJSONLayer 构造函数的可选参数。

interface GeoJSONLayerOptions {
    dataSource?: object;
    level?: number;
    markerStyle?: MarkerOptions | ((properties: object) => MarkerOptions);
    maxZoom?: number;
    minZoom?: number;
    polygonStyle?: PolygonOptions | ((properties: object) => PolygonOptions);
    polylineStyle?: PolylineOptions | ((properties: object) => PolylineOptions);
    reference?: string;
    visible?: boolean;
}

属性

GeoJSON 结构数据

显示层级,负数越大层级越高,默认值:-99

点类型数据样式,详见 MarkerOptions

最大显示层级,默认值:21

最小显示层级,默认值:3

面类型数据样式,详见 PolygonOptions

线类型数据样式,详见 PolylineOptions

来源数据坐标系,可选 'BD09LL''BD09MC''EPSG3857''GCJ02''WGS84'默认值:'BD09LL'

图层是否显示,默认值:true