angular.module('n52.core.map')
        .controller('SwcSearchCtrl', ['$scope', 'mapService', 'nominatimService', 'leafletBoundsHelpers', 'settingsService',
            function ($scope, mapService, nominatimService, leafletBoundsHelpers, settingsService) {
                $scope.startSearch = function (term) {
                    if (angular.isDefined(term) && angular.isString(term)) {
                        nominatimService.query(term).then(function (data) {
                            angular.copy(leafletBoundsHelpers.createBoundsFromArray([
                                [parseFloat(data.boundingbox[0]), parseFloat(data.boundingbox[2])],
                                [parseFloat(data.boundingbox[1]), parseFloat(data.boundingbox[3])]]), mapService.map.bounds);
                            mapService.map.markers.searchResult = {
                                lat: parseFloat(data.lat),
                                lng: parseFloat(data.lon),
                                icon: settingsService.searchResultIconOptions ? settingsService.searchResultIconOptions : {}
                            };
                        });
                    }
                };
            }]);
@@ -24,24 +24,16 @@
 e.map')%0A
-        
 .control
@@ -141,28 +141,16 @@
 rvice',%0A
-            
 function
@@ -230,30 +230,16 @@
 vice) %7B%0A
-              
   $scope
@@ -271,32 +271,16 @@
 term) %7B%0A
-                
     if (
@@ -332,34 +332,16 @@
 erm)) %7B%0A
-                  
       no
@@ -365,16 +365,35 @@
 ery(term
+, mapService.map.id
 ).then(f
@@ -409,36 +409,16 @@
 data) %7B%0A
-                    
         
@@ -475,38 +475,16 @@
 Array(%5B%0A
-                      
         
@@ -553,38 +553,16 @@
 x%5B2%5D)%5D,%0A
-                      
         
@@ -657,34 +657,16 @@
 ounds);%0A
-                  
         
@@ -707,36 +707,16 @@
 ult = %7B%0A
-                    
         
@@ -746,36 +746,16 @@
 a.lat),%0A
-                    
         
@@ -785,36 +785,16 @@
 a.lon),%0A
-                    
         
@@ -904,110 +904,41 @@
     
-                  %7D;%0A                        %7D);%0A                    %7D%0A                %7D;%0A          
+%7D;%0A        %7D);%0A      %7D%0A    %7D;%0A
   %7D%5D);
+%0A

fix map search ctrl, as it did not work with the ui-leaflet version