getFeatureInfos and highlight

39 праглядаў
Перайсці да першага непрачытанага паведамлення

gaetan....@gmail.com

не прачытана,
14 сне 2021 г., 09:43:2014.12.21
да mapstore-developers
Hi,

I develop a UI to select one or many features and allow to highlight the selected feature(s) as already seen in the mapInfos panel (toggle highlight).

I can call WFS getFeature request and display features on map with an additionnal layer. But results are not exactly as mapInfos GFI request due to BBOX param use instead of getFeature CQL filter param.

So, i understood that GFInfos feature in MapStore2 create a bbox to cross click map and layers (not a CQL to cross POINT geom with layers).

in my case, i get features with getFeatures MS2 Action like :

  return Rx.Observable.defer(() => getFeatureInfo(url, request, tocLayer, {}))
But in the native getFeatureInfo action, how works the hghlight behaviors ?
How can i use it with a given feature without additional layer ?

Thanks.
Gaëtan B

gaetan....@gmail.com

не прачытана,
14 сне 2021 г., 11:00:4014.12.21
да mapstore-developers
In addition,

To insert getFeatureInfos features inside additionnal layer, OpenLayers native read / write methods to manipuilate features doesn't work well.

After insert geometry_name and id as root feature level, MS show my features from GFI to additionnal layer.

Image1.png

Адказаць усім
Адказаць аўтару
Наперад
0 новых паведамленняў