/*istanbul ignore next*/ angular.module('fasit') .directive('fbMapMultiple', ['mapService', 'logService', function ( mapService: fb.IMapService, logService: fb.ILogService ) { 'use strict'; /*istanbul ignore next*/ function link(scope: fb.IFbMapMultipleScope, element, attrs) { scope.$watch('landId.value', function () { scope.isSweden = mapService.isSweden(scope.landId); }); } /*istanbul ignore next*/ var compile = function (element: fb.IRootElementService, attrs: any) { if (!angular.isDefined(attrs.locations)) { var errorString = 'Missing required parameter for fbMapMultiple' errorString += '\nmodel: ' + attrs.locations; logService.log(errorString); return; } return link; }; return { restrict: 'E', translude: true, scope: { markercoords: '=', centercoords: '=', show: '=', landId: '=', height: '@', locations: '=', storlek: '=' }, compile: compile, templateUrl: 'app/Directives/fbMapMultiple/fbMapMultiple.html' }; }]);