diff --git a/app/scripts/directives/nodeForm.js b/app/scripts/directives/nodeForm.js index dd5c1d9..f161e02 100644 --- a/app/scripts/directives/nodeForm.js +++ b/app/scripts/directives/nodeForm.js @@ -18,7 +18,7 @@ angular.module('ffffng') var monitoringConfirmed = $scope.node.monitoringConfirmed; $scope.config = config; - angular.extend($scope, { + $scope.map = { center: { lat: config.coordsSelector.lat, lng: config.coordsSelector.lng, @@ -41,10 +41,10 @@ angular.module('ffffng') } } } - }); + }; if (config.otherCommunityInfo.showBorderForDebugging) { - $scope.paths = { + $scope.map.paths = { border: { color: '#ff0000', weight: 3, @@ -67,7 +67,7 @@ angular.module('ffffng') }; var updateNodePosition = function (lat, lng) { - $scope.markers.node = { + $scope.map.markers.node = { lat: lat, lng: lng, focus: true, @@ -104,7 +104,7 @@ angular.module('ffffng') } $scope.updateMap = function (optCoords) { - var coords = optCoords || $scope.coords; + var coords = optCoords || $scope.node.coords; withValidCoords(coords, function (lat, lng) { updateNodePosition(lat, lng); }); @@ -112,7 +112,7 @@ angular.module('ffffng') $scope.resetCoords = function () { $scope.node.coords = ''; - $scope.markers = {}; + $scope.map.markers = {}; }; $scope.constraints = Constraints.node; diff --git a/app/styles/views/directives/_nodeForm.scss b/app/styles/views/directives/_nodeForm.scss index f657d2a..5fd2357 100644 --- a/app/styles/views/directives/_nodeForm.scss +++ b/app/styles/views/directives/_nodeForm.scss @@ -122,6 +122,10 @@ f-node-form { padding-bottom: 66%; margin-top: 5px; margin-bottom: 20px; + + .leaflet-control-layers.leaflet-control { + display: none; + } } .buttons { diff --git a/app/views/directives/nodeForm.html b/app/views/directives/nodeForm.html index dd7720e..1d612e3 100644 --- a/app/views/directives/nodeForm.html +++ b/app/views/directives/nodeForm.html @@ -42,14 +42,28 @@ an die Stelle, wo Dein Knoten erscheinen soll. Durch erneutes Klicken kannst Du die Position jederzeit anpassen.

- + Bitte gib die Koordinaten wie folgt an, Beispiel: {{config.coordsSelector.lat}} {{config.coordsSelector.lng}}
- +