Home Reference Source
import {Marker} from 'guide4you/src/urlapi/Marker.js'
public class | source

Marker

Represents a single location with text on the map which can be setted via the url api.

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

feature_: Feature

private
private
private
private

vectorLayer_: VectorLayer

Method Summary

Public Methods
public
public
public

returns {ol.Coordinate|undefined}

public

Return description text of the marker.

public

setActive(active: boolean)

public

setMap(map: G4UMap)

public
public

setPosition(coords: ol.Coordinate)

public

setText(text: string)

Set description text of the marker.

Public Constructors

public constructor(options: MarkerOptions) source

Params:

NameTypeAttributeDescription
options MarkerOptions

Private Members

private active_: boolean source

private feature_: Feature source

private map_: G4UMap source

private popupVisible_: boolean source

private style_: StyleLike source

private vectorLayer_: VectorLayer source

Public Methods

public getActive(): boolean source

Return:

boolean

public getPopupVisible(): boolean source

Return:

boolean

public getPosition(): * source

returns {ol.Coordinate|undefined}

Return:

*

public getText(): string source

Return description text of the marker.

Return:

string

public setActive(active: boolean) source

Params:

NameTypeAttributeDescription
active boolean

public setMap(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap
  • nullable: true

public setPopupVisible(visible: boolean) source

Params:

NameTypeAttributeDescription
visible boolean

public setPosition(coords: ol.Coordinate) source

Params:

NameTypeAttributeDescription
coords ol.Coordinate

public setText(text: string) source

Set description text of the marker.

Params:

NameTypeAttributeDescription
text string