WebGL Geolocation

A simple and clean tool for using Web Geolocation API.

by ArtemVetik

Price History +

This tool is a wrapper of the Web Geolocation API. This tool is also available for download using package manager: com.agava.webgeolocation.



How to use

Add namespace using Agava.WebGeolocation

Use the methods of the static class WebGeolocation

  • GetCurrentPosition(onSuccessCallback, onErrorCallback, options) - get the current position of the device
  • WatchPosition(onSuccessCallback, onErrorCallback, options) - register a handler function that will be called automatically each time the position of the device changes
  • ClearWatch(watchId) - unregister location/error monitoring handlers previously installed using WatchPosition

You can use Samples folder as a guide.