georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

enable thematiclayer in the build / allow to classify styles by attribute ? #364

Open landryb opened 3 years ago

landryb commented 3 years ago

a bit like #361 - it seems the style editor of mapstore2 only allows classifications to be represented as a color ramp based on a numeric attribute, and if one wants to classify by an attribute, the classes have to be built manually with filters one by one.

looking at the doc/API, it seems the ThematicLayer plugin (cf https://mapstore.geo-solutions.it/mapstore/docs/api/plugins#plugins.ThematicLayer) would somehow achieve this - in our project, it's linked in js/plugins.js but not enabled by default.

@tdipisa is it the same as FloatingLegend in #361 and ThematicLayer is abandoned/feature is supposed to be in StyleEditor plugin but hidden ?

tdipisa commented 3 years ago

@landryb it is an old plugin we are still maintaining for some specific deployments. It will be entirely replaced by the StyleEditor in the near future. What you are looking for will be implemented as part of https://github.com/geosolutions-it/MapStore2/issues/6797

landryb commented 3 years ago

ok, thanks ! looked at the aforementioned issue and didnt really see what was about classifying based about unique values of an attribute (eg attribute foo has X unique values -> create X classes), but i trust you on this :)

landryb commented 2 years ago

Fwiw, revisiting this old issue, i've been able to test geosolutions-it/MapStore2#6797 (i think) but that only applies to numeric attributes and automatically creating classes with intervals based on those values.

That doesnt seem to allow automatically creating classes based on string attributes, eg what i'd call a classification.