|
@@ -49,7 +49,7 @@ class MockFarmLayer {
|
|
|
const lby = {}
|
|
|
const jgjd = {
|
|
|
disease:'',
|
|
|
- grow:'花苞',
|
|
|
+ grow:'谢花',
|
|
|
img:'https://birdseye-img.sysuimars.com/birdseye-look-mini/img_crop/bch/ch/cropped_DJI_20240707184352_0041_V_9.jpg',
|
|
|
name:'井冈基地',
|
|
|
mapId:2,
|
|
@@ -118,9 +118,11 @@ class MockFarmLayer {
|
|
|
that.setProperties(feature,f)
|
|
|
let text = "";
|
|
|
let fontColor = "#ffffff"
|
|
|
- if(name==='井冈基地'){
|
|
|
- console.log('井冈基地',grow);
|
|
|
- }
|
|
|
+ // console.log('name',name);
|
|
|
+ // if(name==='HS.89215'){
|
|
|
+ // name = ''
|
|
|
+ // console.log('111111',grow);
|
|
|
+ // }
|
|
|
if (disease) {
|
|
|
text = disease;
|
|
|
styles.push(that.textBgStyle("#EFEEEE","#EFEEEE"));
|
|
@@ -157,6 +159,11 @@ class MockFarmLayer {
|
|
|
this.clusterSource.clear()
|
|
|
let features = []
|
|
|
for(let item of data){
|
|
|
+ // if(item.name==='HS.89215'){
|
|
|
+ // item.name = ''
|
|
|
+ // item.wkt = 'POINT(113.5081595 23.5320866)'
|
|
|
+ // console.log('GZ.88209',item);
|
|
|
+ // }
|
|
|
features.push(newPoint(item,"wkt","mock_farm_data"))
|
|
|
}
|
|
|
this.clusterSource.addFeatures(features)
|