Skip to content

Commit

Permalink
修改wfs图层显示的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fanzia committed Oct 8, 2016
1 parent 5563108 commit cff8c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GeoBeans/Layer/FeatureLayer/WFSLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ GeoBeans.Layer.WFSLayer = GeoBeans.Class(GeoBeans.Layer.FeatureLayer, {
// },

load : function(){
if(this.features == null){
if(this.features != null && this.features.length == 0){
this.getFeatures();
}else{
GeoBeans.Layer.FeatureLayer.prototype.load.apply(this, arguments);
Expand All @@ -98,7 +98,7 @@ GeoBeans.Layer.WFSLayer = GeoBeans.Class(GeoBeans.Layer.FeatureLayer, {

// 先获取featuretype,然后获取fields,最后获取所有的元素,都改为异步调用
getFeatures : function(){
if(this.features != null){
if(this.features.length != 0 ){
this.load();
}

Expand Down

0 comments on commit cff8c7f

Please sign in to comment.