Appearance
Documentation / @geoverse/core-libre / MarkerOptions
Interface: MarkerOptions
Defined in: packages/core-libre/src/features/marker.ts:5
Properties
cancelBubble?
ts
optional cancelBubble?: boolean;Defined in: packages/core-libre/src/features/marker.ts:19
阻止事件冒泡到下层要素
color?
ts
optional color?: string;Defined in: packages/core-libre/src/features/marker.ts:15
圆点颜色(无图标时),默认 #3388ff
icon?
ts
optional icon?: string;Defined in: packages/core-libre/src/features/marker.ts:9
图标地址;不传则渲染为圆点
position?
ts
optional position?: Position;Defined in: packages/core-libre/src/features/marker.ts:7
位置(WGS-84 经纬度 [lng, lat])
scale?
ts
optional scale?: number;Defined in: packages/core-libre/src/features/marker.ts:11
图标缩放,默认 1
size?
ts
optional size?: number;Defined in: packages/core-libre/src/features/marker.ts:13
圆点半径(无图标时),默认 6
title?
ts
optional title?: string;Defined in: packages/core-libre/src/features/marker.ts:17
文本标注(需底图 style 提供 glyphs 字体才渲染)
