Skip to content

Commit

Permalink
bugfix:修改严格模式下的ColorRangeMap、BarChartLayer、ClusterLayer、SymbolChartLa…
Browse files Browse the repository at this point in the history
…yer等。
  • Loading branch information
fanzia committed Jan 16, 2017
1 parent a710626 commit 76f266a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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类。
2017.01.16 bug 修改严格模式下的WFS类。
2017.01.16 bug 修改严格模式下的ColorRangeMap、BarChartLayer、ClusterLayer、SymbolChartLayer等。
2 changes: 1 addition & 1 deletion src/GeoBeans/BaseTypes/ColorRangeMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/GeoBeans/Layer/FeatureLayer/BarChartLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@ 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;
}
}
// 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();
Expand Down
2 changes: 1 addition & 1 deletion src/GeoBeans/Layer/FeatureLayer/ClusterLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/GeoBeans/Layer/FeatureLayer/SymbolChartLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 76f266a

Please sign in to comment.