Displays an overview map of Austria and a crosshair marker for the current center in the main map. You can click on the overview map to recenter the main map.

Hint: the default size of the overview map depends on the width of the viewport (appropriate for fullscreen maps). To limit the size add a max-width and max-height (max-width = 1.75*max-height) to the .bgis-overview-image css class.

Hierarchy

  • Control
    • Overview

Constructors

Properties

backgroundSVGRectElement: SVGRectElement
extent: Extent

APIProperty: extent Extent of overview - [minx, miny, maxx, maxy] or [left, bottom, right, top]

on: OverviewOnSignature<EventsKey>
overviewContainerElement: HTMLDivElement
preventDefault: boolean
svgElement: SVGElement
BACKGROUND_COLOR: string = '#e5ecf0'
SVG_CODE: string = ...
SVG_HEIGHT: number = 216
SVG_WIDTH: number = 380

Methods

  • Method: getLonLatFromOverviewPx Get map location from pixel location

    Parameters: oPx - Coordinate

    Returns: [x,y] Location in lon/lat translated from passed in pixel-location in overview map

    Parameters

    • oPx: Coordinate

    Returns number[]

  • Private

    Parameters

    • center: undefined | Coordinate

    Returns number[]

  • Private

    Parameters

    • left: number
    • right: number
    • width: number

    Returns number

  • Private

    Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • cssClass: string

    Returns SVGLineElement

Generated using TypeDoc