ui.util.getCurrentPosition

Gets the user's current geographic position from the browser's geolocation service.

UsageReturns
ui.util.getCurrentPosition(success, error)
ArgumentTypeDetails
successFunctionA callback function that takes a ee.Geometry.Point object as its input parameter.
errorFunction, optionalAn optional callback function that takes an error message as its input parameter.