Hello, when I add a new geopoint I get following error, but the point is created:
error - Cannot read property ‘objectId’ of undefined
Used source below:
var point = {
latitude : c[‘latitude’],
longitude : c[‘longitude’],
categories: [“Default”],
metadata: {“name”:c[‘metadata’][‘name’],“ort”:c[‘metadata’][‘ort’]}
};
Backendless.Geo.addPoint ( point )
.then( function( savedGeoPoint ) {
console.log( "geo point saved " + savedGeoPoint.geopoint.objectId );
})
.catch( function( error ) {
console.log( "error - " + error.message );
});
since I need to update a list in the then methode it is not that usefull.