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

GeolocationButton

Expression Extends:

class GeolocationButton extends mixin(Control, [ActivatableMixin, ListenerOrganizerMixin])

This class provides a button to center the view on your current geoposition.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

layer_: *

Private Members
private
private
private
private
private

Method Summary

Public Methods
public

Show/Hide the geolocation on the map as point with a circle in the size of the accuracy around

public

changeHandler_(options: *)

public

setMap(map: G4UMap)

Public Constructors

public constructor(options: GeoLocationButtonOptions) source

Params:

NameTypeAttributeDescription
options GeoLocationButtonOptions
  • optional
  • default: {}

Public Members

public followLocation_: * source

public geolocation_: * source

public layer_: * source

Private Members

private animated_: boolean source

private buttonMessageDisplay_: MessageDisplay source

private classNamePushed_: string source

private maxZoom_: number source

private style_: StyleLike source

Public Methods

public activeChangeHandler_() source

Show/Hide the geolocation on the map as point with a circle in the size of the accuracy around

public changeHandler_(options: *) source

Params:

NameTypeAttributeDescription
options *

public setMap(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap