Skip to content
Snippets Groups Projects
Commit 767a5e72 authored by Olabarrieta Palacios, Ignacio's avatar Olabarrieta Palacios, Ignacio
Browse files

a

parent d2986807
No related branches found
No related tags found
No related merge requests found
...@@ -617,9 +617,10 @@ export class BikeAnalysisAMSComponent implements OnInit { ...@@ -617,9 +617,10 @@ export class BikeAnalysisAMSComponent implements OnInit {
console.log(fg.toGeoJSON()); console.log(fg.toGeoJSON());
let geojson = fg.toGeoJSON(); let geojson = fg.toGeoJSON();
let dt = new Date(); let dt = new Date();
let name = "test_IOP_"+dt.getTime(); let city = 'amsterdam';
let name = "bike_analysis_"+dt.getTime();
console.log("upload_geojson::: name="+name); console.log("upload_geojson::: name="+name);
this.putGeoJSONService.putGeoJSON(geojson,name).subscribe( this.putGeoJSONService.putGeoJSON(geojson,name,city).subscribe(
res => {alert('geojson '+name+' added to storage.'); console.log("putGeoJSONService: SUCESS::: res="+JSON.stringify(res))}, res => {alert('geojson '+name+' added to storage.'); console.log("putGeoJSONService: SUCESS::: res="+JSON.stringify(res))},
err => {alert('ERROR!!!\ngeojson '+name+' NOT added to storage.');console.log("putGeoJSONService: ERROR::: err="+JSON.stringify(err));} err => {alert('ERROR!!!\ngeojson '+name+' NOT added to storage.');console.log("putGeoJSONService: ERROR::: err="+JSON.stringify(err));}
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment