If you need the values in JavaScript, you could do something like this:
var continuousLocation = GeoLocation.observe("changed").map(JSON.stringify);
continuousLocation.onValueChanged(module, function(x) {
console.log("The value of continuousLocation is now: " + x);
});
Thank you for the prompt reply. Unfortunately the answer did not help. I would like to get the single values of latitude and longitude from the string continuousLocation so I can use them to set a Marker on a map:
The GeoLocation docs have a fairly straightforward solution for you:
Quoting:
In the above example we’re using the EventEmitter observe method to create an Observable from the “changed” event. We can also listen to changes by using the on method, as follows: