Fork me on GitHub
Show:

HTML5GeolocateService

Summary

Constructor

aeris.geolocate.HTML5GeolocateService

Syntax

aeris.geolocate.HTML5GeolocateService

(
  • opt_options
)

Summary

Parameters:

Methods

clearWatch

Syntax

clearWatch

()

Summary

createGeolocateError_

Syntax

createGeolocateError_

(
  • error
)
GeolocateServiceError private

Summary

Parameters:

  • error Object

    Error data from the Geolocation API.

createPosition_

Syntax

createPosition_

(
  • position
)
GeolocatePosition private

Summary

Parameters:

  • position Object

    Position data from the Geolocation API.

Returns:

createServiceUnavailableError_

Syntax

createServiceUnavailableError_

() GeolocateServiceError private

Summary

getCurrentPosition

Syntax

getCurrentPosition

()

Summary

isSupported

Syntax

isSupported

(
  • opt_navigator
)

Summary

Parameters:

  • opt_navigator Navigator=

    The navigator object for which to check geolocation support. Defaults to the global window.navigator object.

setNavigator

Syntax

setNavigator

(
  • navigator
)

Summary

Parameters:

  • navigator Navigator

    Set the navigator object to use for geolocation.

watchPosition

Syntax

watchPosition

()

Summary

Properties

navigator_

Syntax

navigator_

Navigator HTML5 Navigator object private

Summary

navigatorOptions_

Syntax

navigatorOptions_

Object

Summary

watchId_

Syntax

watchId_

Number

Summary

If the user's position is being watched, this is the ID of the returned by Navigator.geolocation.watchPosition.

Is required to clear the watch.