js/PoziMap.js
Function PoziMap
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PoziMap = function(config, layers) {
var defaultZoomLevel = config.defaultZoomLevel;
var geolocate = PoziGeolocate.doNew(layers.currentLocation);
var that = this;
Function defaultClick
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.