]> git.uio.no Git - u/erikhf/frm.git/blobdiff - src/components/sidebar/sidebar.ts
fix in adding and editing markers
[u/erikhf/frm.git] / src / components / sidebar / sidebar.ts
index c9329f4bcb0eb60b43a4dae400ef79b991701346..497329e941b46c248bccfbe5b3abca178f8287f3 100644 (file)
@@ -209,7 +209,7 @@ export class Sidebar {
                     headers: headers
                 })
                 .map(res => res.json())
-                .subscribe(res => console.log(res));
+                .subscribe(res => this.emitNewUpdatedObject(res));
         }
     }
 
@@ -238,6 +238,7 @@ export class Sidebar {
 
         this.form.controls.lat.updateValue(data.location.lat);
         this.form.controls.lng.updateValue(data.location.lng);
+        this.form.controls.featureType.updateValue("POINT");
         this.form.controls.parent.updateValue(data.parent);
 
     }