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

LinkGeneratorButton

Extends:

Control → LinkGeneratorButton

Shows a window which contains a link to the current location of the map. Optionally a marker can be positioned on the map by the user and a text for this marker can be added.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

resetMarker_: {"position": *, "text": *, "popVis": *}

Private Members
private

$linkDisplay_: jQuery

private
private
private
private
private
private

drawPoint_: Draw

private
private
private

Method Summary

Public Methods
public
public
public

drawMarkerPoint(): Promise<Feature>

Let the user draw a point for the marker.

public
public
public
public
public

setActive(active: boolean)

public

setMap(map: G4UMap)

public
public

updateMarker(point: *)

public

Public Constructors

public constructor(options: LinkGeneratorButtonOptions) source

Params:

NameTypeAttributeDescription
options LinkGeneratorButtonOptions

Public Members

public resetMarker_: {"position": *, "text": *, "popVis": *} source

Private Members

private $linkDisplay_: jQuery source

private $markerCheckbox_: jQuery source

private $markerDescriptionTextArea_: jQuery source

private $markerDescription_: jQuery source

private active_: boolean source

private baseURL_: string source

private drawPoint_: Draw source

private marker_: Marker source

private shield_: Shield source

private style_: StyleLike source

Public Methods

public createHTML() source

public disableMap() source

public drawMarkerPoint(): Promise<Feature> source

Let the user draw a point for the marker.

Return:

Promise<Feature>

public enableMap() source

public getActive(): boolean source

Return:

boolean

public hideMarker() source

public placeMarker() source

public setActive(active: boolean) source

Params:

NameTypeAttributeDescription
active boolean

public setMap(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap
  • nullable: true

public updateDescription() source

public updateMarker(point: *) source

Params:

NameTypeAttributeDescription
point *

public updateURL() source