Appearance
Documentation / @geoverse/editor-ol / OlEditorAdapterOptions
Interface: OlEditorAdapterOptions
Defined in: editor-ol/src/adapter.ts:83
Properties
crs?
ts
optional crs?: string;Defined in: editor-ol/src/adapter.ts:85
工作 CRS,默认取地图视图投影。几何按此 CRS 原样进出(dataProjection==featureProjection)。
onSelect?
ts
optional onSelect?: (id, additive) => void;Defined in: editor-ol/src/adapter.ts:89
select 模式下单击要素的回调(example 据此调用 session.select + adapter.setSelection)。
Parameters
id
string | null
additive
boolean
Returns
void
snap?
ts
optional snap?: boolean;Defined in: editor-ol/src/adapter.ts:91
拖拽/绘制时吸附到编辑要素的顶点与边(ol/interaction/Snap),默认开启。
snapGuide?
ts
optional snapGuide?: boolean;Defined in: editor-ol/src/adapter.ts:95
绘制时显示对齐辅助线(水平/垂直/延长/正交 + 交点吸附),默认关闭。
snapTolerance?
ts
optional snapTolerance?: number;Defined in: editor-ol/src/adapter.ts:93
吸附像素容差,默认 10。
zIndex?
ts
optional zIndex?: number;Defined in: editor-ol/src/adapter.ts:87
自定义编辑图层 z-index。
