js/layers/currentLocation.js
Function setLocation
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
currentLocationLayer.setLocation = function(pointInWebMercator, accuracy) {
var alreadyHadFeatures = this.features.length > 0;
this.destroyFeatures();