|
@@ -62,7 +62,7 @@ class SamplePointLayer {
|
|
// this.yellowBlockLayer.addFeature(point1);
|
|
// this.yellowBlockLayer.addFeature(point1);
|
|
// this.yellowBlockLayer.addFeature(point2);
|
|
// this.yellowBlockLayer.addFeature(point2);
|
|
|
|
|
|
- this.addMapSingerClick(map);
|
|
|
|
|
|
+ this.addMapSingerClick(map.map);
|
|
}
|
|
}
|
|
getIconStyle(feature){
|
|
getIconStyle(feature){
|
|
let style = new Style({
|
|
let style = new Style({
|
|
@@ -107,7 +107,7 @@ class SamplePointLayer {
|
|
that.clusterSource.setSource(source)
|
|
that.clusterSource.setSource(source)
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
that.mapRef.fit(this.treeClusterLayer.source.getExtent(), {padding:[100,100,100,100]})
|
|
that.mapRef.fit(this.treeClusterLayer.source.getExtent(), {padding:[100,100,100,100]})
|
|
- })
|
|
|
|
|
|
+ },100)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|