Files
Hristo Deshev 77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00
..
2015-03-03 10:34:40 +02:00
2014-05-14 12:55:59 +03:00

Initializing location:

var LocationManager = require("location").LocationManager;

console.log('is location enabled: ' + LocationManager.isLocationEnabled());

this.locationManager = new LocationManager();

console.dump(this.locationManager.getLastKnownLocation());

this.locationManager.startLocationMonitoring(function(location) {
    console.dump(location);
}, function(error) {
    console.error(error);
});

Stopping location:

this.locationManager.stopLocationMonitoring();