# Class: MousePositionControl
# Table of contents
# Constructors
# Methods
# Constructors
# constructor
+ new MousePositionControl(options?
: MousePositionControlOption): MousePositionControl
# Parameters
Name | Type | Default value |
---|---|---|
options | MousePositionControlOption | {} |
Returns: MousePositionControl
# Methods
# defaultLabelFormat
▸ defaultLabelFormat(lng
: number, lat
: number, x
: number, y
: number): string
# Parameters
Name | Type |
---|---|
lng | number |
lat | number |
x | number |
y | number |
Returns: string
# getDefaultPosition
▸ getDefaultPosition(): string
Returns: string
# insertControl
▸ insertControl(): void
Returns: void
# onAdd
▸ onAdd(map
: Map): HTMLElement
# Parameters
Name | Type |
---|---|
map | Map |
Returns: HTMLElement
# onMouseMove
▸ onMouseMove(evt?
: any): void
# Parameters
Name | Type |
---|---|
evt? | any |
Returns: void
# onRemove
▸ onRemove(): void
Returns: void