diff --git a/ChangeLog b/ChangeLog index 3e2f4b6..cd8d9df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -105,4 +105,5 @@ version 1.0.111 2017.01.16 bug 删除RippleLayer原有版本,修改严格模式下的RippleLayer图层。 2017.01.16 bug 修改严格模式下的Select函数。 2017.01.16 bug 修改严格模式下的Draw类。 -2017.01.16 bug 修改严格模式下的WFS类。 \ No newline at end of file +2017.01.16 bug 修改严格模式下的WFS类。 +2017.01.16 bug 修改严格模式下的ColorRangeMap、BarChartLayer、ClusterLayer、SymbolChartLayer等。 \ No newline at end of file diff --git a/src/GeoBeans/BaseTypes/ColorRangeMap.js b/src/GeoBeans/BaseTypes/ColorRangeMap.js index 8f6ac1f..cb4d018 100644 --- a/src/GeoBeans/BaseTypes/ColorRangeMap.js +++ b/src/GeoBeans/BaseTypes/ColorRangeMap.js @@ -42,7 +42,7 @@ GeoBeans.ColorRangeMap = GeoBeans.Class({ var v = this.getColorValue(this.beginColorHSV.v,this.endColorHSV.v,value); var rgb = this.hsv_2_rgb(h,s,v); - color = new GeoBeans.Color(); + var color = new GeoBeans.Color(); color.set(parseInt(rgb.r),parseInt(rgb.g),parseInt(rgb.b),1); return color; diff --git a/src/GeoBeans/Layer/FeatureLayer/BarChartLayer.js b/src/GeoBeans/Layer/FeatureLayer/BarChartLayer.js index 6770b55..4b19f80 100644 --- a/src/GeoBeans/Layer/FeatureLayer/BarChartLayer.js +++ b/src/GeoBeans/Layer/FeatureLayer/BarChartLayer.js @@ -170,8 +170,8 @@ GeoBeans.Layer.BarChartLayer.prototype.drawBarFeatures = function(features){ var minMax = {}; var source = this.getSource(); for(var i = 0; i < fields.length;++i){ - field = fields[i]; - minMax_f = source.getMinMaxValue(field); + var field = fields[i]; + var minMax_f = source.getMinMaxValue(field); if(isValid(minMax_f)){ minMax.max = minMax.max > minMax_f.max ? minMax.max : minMax_f.max; minMax.min = minMax.min < minMax_f.min ? minMax.min : minMax_f.min; @@ -179,7 +179,7 @@ GeoBeans.Layer.BarChartLayer.prototype.drawBarFeatures = function(features){ } // console.log(minMax); - var field = null,value = null,feature = null,geometry = null,chartValue = null; + var field = null,value = null,feature = null,geometry = null,chartValue = null,center = null; var mapContainer = this.map.getContainer(); diff --git a/src/GeoBeans/Layer/FeatureLayer/ClusterLayer.js b/src/GeoBeans/Layer/FeatureLayer/ClusterLayer.js index e12bbf4..eb22f10 100644 --- a/src/GeoBeans/Layer/FeatureLayer/ClusterLayer.js +++ b/src/GeoBeans/Layer/FeatureLayer/ClusterLayer.js @@ -140,7 +140,7 @@ GeoBeans.Layer.ClusterLayer.prototype.createSymbolizer = function(){ GeoBeans.Layer.ClusterLayer.prototype.getIconLoaded = function(){ var flag = true; for(var i = 0; i < this.symbolizers.length;++i){ - symbolizer = this.symbolizers[i]; + var symbolizer = this.symbolizers[i]; if(symbolizer.icon==null){ symbolizer.icon = new Image(); symbolizer.icon.crossOrigin="anonymous"; diff --git a/src/GeoBeans/Layer/FeatureLayer/SymbolChartLayer.js b/src/GeoBeans/Layer/FeatureLayer/SymbolChartLayer.js index 502c8f9..bc5322e 100644 --- a/src/GeoBeans/Layer/FeatureLayer/SymbolChartLayer.js +++ b/src/GeoBeans/Layer/FeatureLayer/SymbolChartLayer.js @@ -339,7 +339,7 @@ GeoBeans.Layer.SymbolChartLayer.prototype.drawLayerByValue = function(features){ this.renderer.save(); this.renderer.setSymbolizer(symbolizer); - var feature = null, geometry = null, center = null,circle = null,radius; + var feature = null, geometry = null, center = null,circle = null,radius,value,radius_m; for(var i = 0; i < features.length;++i){ feature = features[i];