mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
c81132b5bf
commit
58a67b7e79
1 changed files with 3 additions and 6 deletions
|
@ -524,18 +524,15 @@ export class VectorLayer extends AbstractLayer {
|
|||
return;
|
||||
}
|
||||
|
||||
if (featureCollection !== featureCollectionOnMap) {
|
||||
mbGeoJSONSource.setData(featureCollection);
|
||||
}
|
||||
|
||||
const hasGeoJsonProperties = this._style.setFeatureState(featureCollection, mbMap, this.getId());
|
||||
|
||||
// "feature-state" data expressions are not supported with layout properties.
|
||||
// To work around this limitation,
|
||||
// scaled layout properties (like icon-size) must fall back to geojson property values :(
|
||||
if (hasGeoJsonProperties) {
|
||||
const hasGeoJsonProperties = this._style.setFeatureState(featureCollection, mbMap, this.getId());
|
||||
if (featureCollection !== featureCollectionOnMap || hasGeoJsonProperties) {
|
||||
mbGeoJSONSource.setData(featureCollection);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_setMbPointsProperties(mbMap) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue