groundtruth/PoziMobile

View on GitHub
js/PoziMap.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function PoziMap has 112 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var PoziMap = function(config, layers) {
        var defaultZoomLevel = config.defaultZoomLevel;
        var geolocate = PoziGeolocate.doNew(layers.currentLocation);
        var that = this;

Severity: Major
Found in js/PoziMap.js - About 4 hrs to fix

    Function defaultClick has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                defaultClick: function(evt) {
                    // For panning to work on desktop and mobile, the touch navigation controller must be added last.
                    // With the touch navigation controller last, feature selection by touch won't get to the SelectFeature controller without help.
                    // This assumes all features have geometries with an x and y (like a point).
                    if (evt.type === 'touchend' ) { // It's a mobile touch, so manually try feature selection.
    Severity: Minor
    Found in js/PoziMap.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status