static/js/dncp/util/mapData/params.js
File params.js
has 387 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* 地图参数
* key为地图类型: {
* getGeoJson: 地图数据加载
* }
Function getPath
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getPath: function (leftTop, scale) {
// scale.x: width = 10.51 : 64
var pList = [
[
[0,3.5],[7,11.2],[15,11.9],[30,7],[42,0.7],[52,0.7],
Function decode
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decode(json) {
if (!json.UTF8Encoding) {
return json;
}
var features = json.features;