camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Title of query results on group or more than one OGC layer on one GMF layer #2604

Closed rbovard closed 6 years ago

rbovard commented 7 years ago

Project:

Permalink directly where we can reproduce the issue

Steps to reproduce the issue:

Result:

Expected result:

fredj commented 7 years ago

But the results are really coming from the "Plan cadastral" layer (the background layer)

fredj commented 7 years ago

ok, I see now that in the desktop interface the background layer is also queryable

rbovard commented 7 years ago

Nope... As you can see in desktop.

And for the mobile:

<gml:featureMember>
  <ms:mo_par_prive>
...

<gml:featureMember>
  <ms:mo_baths>
...

Where mo_par_prive is "Parcelles" and mo_baths is "Bâtiments

fredj commented 7 years ago

@rbovard the "Plan cadastral" background layer is not available anymore on https://map-demo.nyon.ch/v2/mobile/

rbovard commented 7 years ago

@fredj Yes, it's due to https://github.com/camptocamp/c2cgeoportal/issues/2934

I'm waiting on next release...

ybolognini commented 7 years ago

@rbovard Did you update c2cgeoportal? Is this fixed?

rbovard commented 7 years ago

Not yet, I'm coming back from holidays today.

I'll keep you posted since it's tested - as all my opened issues like usual - but not before next week.

sbrunner commented 7 years ago

What's the status of this issue?

rbovard commented 7 years ago

@fredj I just tested in 2.1.8 and it's not working. Could you please re open this issue?

FYI the original permalink is still valid to reproduce it.

ybolognini commented 7 years ago

@rbovard Query features have been refactored for the 2.2. Do you plan to switch to 2.2, now that it is released?

ger-benjamin commented 6 years ago

I've investigated this issue. It looks like it's a problem from Openlayers. Currently we cannot know which layer is linked with which returned layers (this information is in the sever's response but not added in the feature by Openlayers.) We will investigate what we can do inside Openlayers then we come back on this issue.

fredj commented 6 years ago

We have a WFS query on a source which returns multiple features. What is displayed as the title in the result window is the name of the query source (in this case "Plan cadastral").

fredj commented 6 years ago

OpenLayers doesn't return the type of the feature (GML parser). It was the case with OpenLayers 2

fredj commented 6 years ago

Can be tested with: https://geomapfish-demo.camptocamp.net/2.2/theme/Demo?lang=en&baselayer_ref=OSM%20map&tree_group_opacity_Group=0.65&tree_enable_osm_scale=true&tree_group_layers_Layers=cinema%2Cpost_office%2Centertainment%2Csustenance%2Chospitals&tree_group_layers_Group=osm&tree_group_layers_OSM%20functions=osm_scale&tree_group_layers_External&tree_enable_osm_open&tree_enable_ch.swisstopo.geologie-geotechnik-gk500-gesteinsklassierung&tree_enable_OSM%2520map&tree_enable_osm_time_r_dp_2&tree_group_layers_Filters&map_x=616289&map_y=176702&map_zoom=4&tree_groups=Group

This group has one children osm and three childLayers: hotel, bank and place_of_worship. Only one datasource is create for osm.

rbovard commented 6 years ago

@fredj Are you planning to report this issue to OpenLayers?

fredj commented 6 years ago

The problem is in ngeo; we're working on it

ger-benjamin commented 6 years ago

Closed with #3025

rbovard commented 6 years ago

Thanks now the title is correct but not translated... Same steps as in first message with this permalink.

@fredj Should I open a new issue?