From 5b46e9a6c9bc515c4a42eb106d9eed3387ad484e Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Fri, 24 Jun 2016 09:49:15 +0200 Subject: [PATCH] fix editmap --- js/editModel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/editModel.js b/js/editModel.js index d68c74f..9f91540 100644 --- a/js/editModel.js +++ b/js/editModel.js @@ -60,8 +60,9 @@ function createModel(){ internal.aliases[nodeid].location = {} } pos = dialogEditNodeMapCurrent.getLatLng() - internal.aliases[nodeid].location.latitude = pos[0] - internal.aliases[nodeid].location.longitude = pos[1] + console.log(pos) + internal.aliases[nodeid].location.latitude = pos.lat + internal.aliases[nodeid].location.longitude = pos.lng internal.aliases[nodeid].hostname = dialogEditNodeContent.querySelector('input[name="hostname"]').value console.log("save",internal.aliases[nodeid],dialogEditNodeMapCurrent.getLatLng()) send('POST',internal.config.api+'/aliases/alias/'+nodeid,internal.aliases[nodeid]).then(function(){