onEachFeatureFlashForGeoJson(feature, layerObject) { let that = this; var elements = ""; let i = 0; let properties = feature.properties; for (var item in properties) { let name = item; let value = properties[name]; if (window.hideFields.indexOf(name) < 0 && value != null) { i++; if (i > 20) { break; } elements = elements + name + ":" + value + "<br>" } } if (elements != "") { layerObject.bindPopup(elements); } else { console.log("没有属性信息!") } layerObject.on({ mouseover: this.highlightFeature, mouseout: this.resetHighlight, click: this.zoomToFeature }); },