kopia lustrzana https://github.com/FacilMap/facilmap
Remove angular array parameter notation, as we have gulp-ng-annotate now
rodzic
638125c267
commit
eb189dd0e0
|
@ -9,7 +9,7 @@
|
||||||
};
|
};
|
||||||
} ]);
|
} ]);
|
||||||
|
|
||||||
fp.app.factory("fpMap", [ "fpUtils", "fpSocket", "fpMapMessages", "fpDialogs", "fpMapMarkers", "fpMapPopups", "$templateCache", "$compile", "fpMapLines", "fpMapTypes", "fpMapViews", "$rootScope", "fpMapPad", "fpMapToolbox", "$timeout", "fpMapLegend", "fpMapSearch", function(fpUtils, fpSocket, fpMapMessages, fpDialogs, fpMapMarkers, fpMapPopups, $templateCache, $compile, fpMapLines, fpMapTypes, fpMapViews, $rootScope, fpMapPad, fpMapToolbox, $timeout, fpMapLegend, fpMapSearch) {
|
fp.app.factory("fpMap", function(fpUtils, fpSocket, fpMapMessages, fpDialogs, fpMapMarkers, fpMapPopups, $templateCache, $compile, fpMapLines, fpMapTypes, fpMapViews, $rootScope, fpMapPad, fpMapToolbox, $timeout, fpMapLegend, fpMapSearch) {
|
||||||
var maps = { };
|
var maps = { };
|
||||||
|
|
||||||
var ret = { };
|
var ret = { };
|
||||||
|
@ -443,6 +443,6 @@
|
||||||
map.socket.updateBbox(bbox);
|
map.socket.updateBbox(bbox);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular, FacilMap, OpenLayers);
|
})(FacilPad, jQuery, angular, FacilMap, OpenLayers);
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.factory("fpMapPopups", [ "$compile", "$parse", "$templateCache", "fpUi", "$timeout", function($compile, $parse, $templateCache, fpUi, $timeout) {
|
fp.app.factory("fpMapPopups", function($compile, $parse, $templateCache, fpUi, $timeout) {
|
||||||
return function(map) {
|
return function(map) {
|
||||||
var openPopups = [ ];
|
var openPopups = [ ];
|
||||||
|
|
||||||
|
@ -77,6 +77,6 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.factory("fpMapSearch", [ "$rootScope", "$templateCache", "$compile", "fpUtils", function($rootScope, $templateCache, $compile, fpUtils) {
|
fp.app.factory("fpMapSearch", function($rootScope, $templateCache, $compile, fpUtils) {
|
||||||
var namefinder = new FacilMap.NameFinder.Nominatim();
|
var namefinder = new FacilMap.NameFinder.Nominatim();
|
||||||
|
|
||||||
return function(map) {
|
return function(map) {
|
||||||
|
@ -30,6 +30,6 @@
|
||||||
$compile(el)(scope);
|
$compile(el)(scope);
|
||||||
scope.$evalAsync(); // $compile only replaces variables on next digest
|
scope.$evalAsync(); // $compile only replaces variables on next digest
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fp.app.factory("fpMapToolbox", [ "$compile", "$templateCache", "fpTable", function($compile, $templateCache, fpTable) {
|
fp.app.factory("fpMapToolbox", function($compile, $templateCache, fpTable) {
|
||||||
return function(map) {
|
return function(map) {
|
||||||
var scope = map.socket.$new();
|
var scope = map.socket.$new();
|
||||||
|
|
||||||
|
@ -47,6 +47,6 @@
|
||||||
$compile($($templateCache.get("map-toolbox.html")).appendTo(map.map.div))(scope);
|
$compile($($templateCache.get("map-toolbox.html")).appendTo(map.map.div))(scope);
|
||||||
scope.$evalAsync(); // $compile only replaces variables on next digest
|
scope.$evalAsync(); // $compile only replaces variables on next digest
|
||||||
}
|
}
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.factory("fpMapTypes", [ "fpDialogs", "fpUtils", function(fpDialogs, fpUtils) {
|
fp.app.factory("fpMapTypes", function(fpDialogs, fpUtils) {
|
||||||
return function(map) {
|
return function(map) {
|
||||||
var ret = {
|
var ret = {
|
||||||
editTypes : function() {
|
editTypes : function() {
|
||||||
|
@ -101,6 +101,6 @@
|
||||||
};
|
};
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.factory("fpMapViews", [ "fpDialogs", function(fpDialogs) {
|
fp.app.factory("fpMapViews", function(fpDialogs) {
|
||||||
return function(map) {
|
return function(map) {
|
||||||
var ret = {
|
var ret = {
|
||||||
saveView : function() {
|
saveView : function() {
|
||||||
|
@ -56,6 +56,6 @@
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -1,7 +1,7 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
// From http://stackoverflow.com/a/11277751/242365
|
// From http://stackoverflow.com/a/11277751/242365
|
||||||
fp.app.factory("fpSocket", [ "$rootScope", "fpUtils", function($rootScope, fpUtils) {
|
fp.app.factory("fpSocket", function($rootScope, fpUtils) {
|
||||||
return function(padId) {
|
return function(padId) {
|
||||||
var scope = $rootScope.$new();
|
var scope = $rootScope.$new();
|
||||||
|
|
||||||
|
@ -146,6 +146,6 @@
|
||||||
|
|
||||||
return scope;
|
return scope;
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -11,7 +11,7 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
fp.app.factory("fpTable", [ "fpSocket", "fpDialogs", "$rootScope", "fpTypeFields", function(fpSocket, fpDialogs, $rootScope, fpTypeFields) {
|
fp.app.factory("fpTable", function(fpSocket, fpDialogs, $rootScope, fpTypeFields) {
|
||||||
function _getField(type, fieldName) {
|
function _getField(type, fieldName) {
|
||||||
for(var i=0; i<type.fields.length; i++) {
|
for(var i=0; i<type.fields.length; i++) {
|
||||||
if(type.fields[i].name == fieldName)
|
if(type.fields[i].name == fieldName)
|
||||||
|
@ -56,6 +56,6 @@
|
||||||
fpDialogs.open("table.html", socket, "Table", null, true);
|
fpDialogs.open("table.html", socket, "Table", null, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
})(FacilPad, jQuery, angular);
|
})(FacilPad, jQuery, angular);
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.directive("fpSpinner", [ "$parse", function($parse) {
|
fp.app.directive("fpSpinner", function($parse) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
@ -17,9 +17,9 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
fp.app.directive("fpColourPicker", [ "fpUtils", "$templateCache", "$rootScope", "$compile", function(fpUtils, $templateCache, $rootScope, $compile) {
|
fp.app.directive("fpColourPicker", function(fpUtils, $templateCache, $rootScope, $compile) {
|
||||||
var colourPicker = $($templateCache.get("colour-picker.html")).appendTo("body").hide();
|
var colourPicker = $($templateCache.get("colour-picker.html")).appendTo("body").hide();
|
||||||
var scope = $rootScope.$new();
|
var scope = $rootScope.$new();
|
||||||
scope.colours = [ "ffffff", "ffccc9", "ffce93", "fffc9e", "ffffc7", "9aff99", "96fffb", "cdffff", "cbcefb", "cfcfcf", "fd6864",
|
scope.colours = [ "ffffff", "ffccc9", "ffce93", "fffc9e", "ffffc7", "9aff99", "96fffb", "cdffff", "cbcefb", "cfcfcf", "fd6864",
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
fp.app.directive("fpTitle", function() {
|
fp.app.directive("fpTitle", function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(function(fp, $, ng, undefined) {
|
(function(fp, $, ng, undefined) {
|
||||||
|
|
||||||
fp.app.factory("fpUtils", [ "$parse", function($parse) {
|
fp.app.factory("fpUtils", function($parse) {
|
||||||
|
|
||||||
var fpUtils = { };
|
var fpUtils = { };
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
return fpUtils;
|
return fpUtils;
|
||||||
} ]);
|
});
|
||||||
|
|
||||||
fp.app.filter('fpObjectFilter', function($filter){
|
fp.app.filter('fpObjectFilter', function($filter){
|
||||||
return function(input, query) {
|
return function(input, query) {
|
||||||
|
|
Ładowanie…
Reference in New Issue