Class: OverviewMap

webgis4u/ol/control/OverviewMap~OverviewMap(options)

Control offering navigation via an overview map

Constructor

new OverviewMap(options)

Creates a new abstract layer related control
Parameters:
Name Type Description
options LayerRelatedControlOptions The options
Source:

Members

centerMap

Center the original map according to the click on the overview map
Source:

controlTarget :HTMLElement|string|undefined

The target that was passed to the control
Type:
  • HTMLElement | string | undefined
Source:

overviewMap :ol.Map|null

The map that shows the overview. If non is present, the value is `null`.
Type:
  • ol.Map | null
Source:

Methods

createOverviewMap(options) → {ol.Map}

Creates the overview map from the given options
Parameters:
Name Type Description
options CreateOverviewMapOptions The options
Source:
Returns:
The overview map
Type
ol.Map

disposeOverviewMap()

Disposes the overview map
Source:

getOverviewMap() → {ol.Map|null}

Source:
Returns:
`null` if no map is present. Otherwise the map will be returned
Type
ol.Map | null

renderCrossHair()

Renders the cross hair at the center from the current map
Source:

setMap()

Source: