Skip to content

Documentation / @geoverse/core-ol / InfoWindowOptions

Interface: InfoWindowOptions

Defined in: packages/core-ol/src/map/infoWindow.ts:22

Extends

  • Options

Properties

autoPan?

ts
optional autoPan?: boolean | PanIntoViewOptions;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:59

Pan the map when calling setPosition, so that the overlay is entirely visible in the current viewport.

Inherited from

ts
OverlayOptions.autoPan

className?

ts
optional className?: string;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:64

CSS class name.

Inherited from

ts
OverlayOptions.className

content?

ts
optional content?: string | HTMLElement;

Defined in: packages/core-ol/src/map/infoWindow.ts:26

弹窗内容:HTML 字符串、元素 id 或 DOM 元素。


element?

ts
optional element?: HTMLElement;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:17

The overlay element.

Inherited from

ts
OverlayOptions.element

id?

ts
optional id?: string | number;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:13

Set the overlay id. The overlay id can be used with the module :ol/Map~Map#getOverlayById method.

Inherited from

ts
OverlayOptions.id

insertFirst?

ts
optional insertFirst?: boolean;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:54

Whether the overlay is inserted first in the overlay container, or appended. If the overlay is placed in the same container as that of the controls (see the stopEvent option) you will probably set insertFirst to true so the overlay is displayed below the controls.

Inherited from

ts
OverlayOptions.insertFirst

map?

ts
optional map?: Map;

Defined in: packages/core-ol/src/map/infoWindow.ts:28

创建后立即挂载到该地图


offset?

ts
optional offset?: number[];

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:25

Offsets in pixels used when positioning the overlay. The first element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down.

Inherited from

ts
OverlayOptions.offset

position?

ts
optional position?: Coordinate;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:30

The overlay position in map projection.

Inherited from

ts
OverlayOptions.position

positioning?

ts
optional positioning?: Positioning;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:38

Defines how the overlay is actually positioned with respect to its position property. Possible values are 'bottom-left', 'bottom-center', 'bottom-right', 'center-left', 'center-center', 'center-right', 'top-left', 'top-center', and 'top-right'.

Inherited from

ts
OverlayOptions.positioning

stopEvent?

ts
optional stopEvent?: boolean;

Defined in: node_modules/.pnpm/ol@10.9.0/node_modules/ol/Overlay.d.ts:46

Whether event propagation to the map viewport should be stopped. If true the overlay is placed in the same container as that of the controls (CSS class name ol-overlaycontainer-stopevent); if false it is placed in the container with CSS class name specified by the className property.

Inherited from

ts
OverlayOptions.stopEvent