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

a

parent aac2ed52
Branches
Tags
No related merge requests found
...@@ -390,7 +390,7 @@ export class NoiseCompComponent implements OnInit { ...@@ -390,7 +390,7 @@ export class NoiseCompComponent implements OnInit {
printPnts(){ printPnts(){
let sel = document.getElementById('comps_combo') as HTMLSelectElement; let sel = document.getElementById('comps_combo') as HTMLSelectElement;
this.gidx = sel.selectedIndex; this.gidx = sel.selectedIndex;
console.log('printPnts::: gidx='+this.gidx); console.log('printPnts::: gidx='+this.gidx+" name="+sel.value);
if ( this.gidx !== -1 ){ if ( this.gidx !== -1 ){
let ps = this.pnts[this.gidx]; let ps = this.pnts[this.gidx];
let vl = this.vals63[this.gidx]; let vl = this.vals63[this.gidx];
...@@ -576,7 +576,8 @@ export class NoiseCompComponent implements OnInit { ...@@ -576,7 +576,8 @@ export class NoiseCompComponent 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 = "noise_computation_"+dt.getTime(); let sel = document.getElementById('comps_combo') as HTMLSelectElement;
let name = "noise_computation_"+sel.value+"_"+dt.getTime();
console.log("upload_geojson::: name="+name); console.log("upload_geojson::: name="+name);
this.putGeoJSONService.putGeoJSON(geojson,name,this.city).subscribe( this.putGeoJSONService.putGeoJSON(geojson,name,this.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))},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment