Showing 29 of 98 total issues
Function mapboxGlDirectiveLink
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlDirectiveLink (scope, element, attrs, controller) {
if (!mapboxgl) {
throw new Error('Mapbox GL doesn\`t included');
}
Function mapboxGlControlsDirectiveLink
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlControlsDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function mapboxGlLayersDirectiveLink
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlLayersDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function mapboxGlSourcesDirectiveLink
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlSourcesDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function updateLayerByObject
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
LayersManager.prototype.updateLayerByObject = function (layerObject) {
Utils.checkObjects([
{
name: 'Map',
object: this.mapInstance
Function mapboxGlCompareDirectiveLink
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlCompareDirectiveLink (scope, element, attrs) {
if (!mapboxgl) {
throw new Error('Mapbox GL does not included');
}
Function updateSourceByObject
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SourcesManager.prototype.updateSourceByObject = function (sourceObject) {
var self = this;
Utils.checkObjects([
{
Function mapboxGlDirectiveController
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlDirectiveController ($scope) {
var mapboxGlMap = $q.defer();
angular.extend(this, {
_mapboxGlMap: mapboxGlMap,
Function createPopupByObject
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopupsManager.prototype.createPopupByObject = function (object, feature) {
var self = this;
Utils.checkObjects([
{
Function enableLayerEvents
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function enableLayerEvents (map) {
map.on('click', function (event) {
event.originalEvent.preventDefault();
event.originalEvent.stopPropagation();
Function createLayerByObject
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
LayersManager.prototype.createLayerByObject = function (layerObject) {
Utils.checkObjects([
{
name: 'Map',
object: this.mapInstance
Function createSourceByObject
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SourcesManager.prototype.createSourceByObject = function (sourceObject) {
var self = this;
Utils.checkObjects([
{
Consider simplifying this complex logical expression. Open
Open
} else if (angular.isArray(center) && center.length === 2 && angular.isNumber(center[0]) && angular.isNumber(center[1]) && (center[0] > -180 || center[0] < 180) && (center[1] > -90 || center[1] < 90)) {
defer.resolve(center);
} else {
defer.resolve(false);
}
Function mapboxGlImageDirectiveLink
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlImageDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function mapboxGlVideoDirectiveLink
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlVideoDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function initAnimationSystem
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AnimationsManager.prototype.initAnimationSystem = function () {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for (var iterator = 0; iterator < vendors.length && !window.requestAnimationFrame; ++iterator) {
Function createMarkerByObject
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MarkersManager.prototype.createMarkerByObject = function (object) {
Utils.checkObjects([
{
name: 'Map',
object: this.mapInstance
Function mapboxGlMarkersDirectiveLink
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlMarkersDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function mapboxGlPopupDirectiveLink
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapboxGlPopupDirectiveLink (scope, element, attrs, controller) {
if (!controller) {
throw new Error('Invalid angular-mapboxgl-directive controller');
}
Function generatePopupMessage
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopupsManager.prototype.generatePopupMessage = function (object, feature) {
var popupMessage = angular.copy(object.message);
if (popupMessage instanceof HTMLElement) {
return popupMessage;