hslayers / hslayers-ng

User interface and map building extensions for OpenLayers
https://ng.hslayers.org/
MIT License
36 stars 20 forks source link

Simplify sensors chart definition #4365

Closed FilipLeitner closed 11 months ago

FilipLeitner commented 11 months ago

Transform filter instead of layered encodings in 'multi' mode

  "transform": [
    {
      "filter": "datum.sensor_name === 'Teros 11/12 temperature 2_4151240' 
      || datum.sensor_name === 'Teros 11/12 temperature 1_4151240' 
      || datum.sensor_name === 'Teros 11/12 temperature 2_4152140'"
    }
  ],

NOTE: Might be limiting a bit as there are is no room for sensor specific changes but up until now all definitions are the same

FilipLeitner commented 11 months ago

Not possible as intended because of changes for legend layout changes introduced in https://github.com/hslayers/hslayers-ng/commit/ed387c0858cb5ce89a5eadc583e8620f3a2143e2