VJMAP logoVJMAP
CAD · WebGIS
中

Interface: ContextMenuOptions

Updated 2026-09-14~ 2 min read
.md

default.ContextMenuOptions

上下文菜单选项.

Table of contents

Properties

Properties

event

• event: Event

事件对象.


innerHeight

• Optional innerHeight: number

菜单外面容器的内部宽,用于菜单超时范围时自动调位置,默认是window大小高 可通过 map.getContainer().getBoundingClientRect().height来设置


innerWidth

• Optional innerWidth: number

菜单外面容器的内部宽,用于菜单超时范围时自动调位置,默认是window大小宽 可通过 map.getContainer().getBoundingClientRect().width来设置


items

• items: ContextMenuSubItemOptions[]

子项


theme

• Optional theme: string

菜单主题色.(dark和light,默认dark)


width

• Optional width: string

菜单宽度(包括子菜单),像素,默认150px.

vjmap / Exports / default / ContextMenuSubItemOptions

Was this page helpful?