camptocamp / GeoMapFish

6 stars 1 forks source link

FullTextSearch After a query, the layer containing the object is not activated #56

Open cimbach opened 2 years ago

cimbach commented 2 years ago

Searching a specific object with the fulltext search box recenters the map on the object, but the corresponding layer is not activated. Thus we don't see the object on the map and can not get its metadata.

Test cases: 1) https://mapnv.ch 2) Clear all layers 3) Search for 'manor' in the fulltext search box 4) Select 'Point d'intéret Manor 1' from the results 5) The map is recentered on the correct location but the layer group "Plan de Ville / Points d'intérets" is not activated, no icon is displayed on the map

1) https://map.geo.bs.ch 2) Clear all layers 3) Search for 'peter kindergarten' in the fulltext search box 4) Select 'Peter, Kindergarten, Petergasse 17, Basel' from the results 5) The map is recentered on the correct location but the layer group "Buildings / School locations (Basel)" is not activated, no icon is displayed on the map

maltaesousa commented 2 years ago

This looks like a configuration problem:

In mapnv, the action is:

 { action: "add_layer", data: "div_point_interet" }

but there's no div_point_interet in the themes JSON

In bs, the action is:

{ action: "add_layer", data: "Schulstandorte (Gemeinde Basel)" }

And the layer is present in themes JSON but it has parenthesis in its name, it it supported?

Here's an example that works:

  1. https://sitn.ne.ch
  2. Clear all layers
  3. search 2248181
  4. Select the only result
  5. The map is centered and layer added to the map
cimbach commented 2 years ago

Thanks a lot for the hints! Let's try now to figure out how to set up all this on my GMF2.5.

remyguillaume commented 1 year ago

@cimbach Could you solve your problem with the hints of Stéphane ? May I close this ticket, or do you think somethings is still missing ?

cimbach commented 1 year ago

No, I did not manage to make it work.

Did you try to to correct the behaviour of map.geo.bs.ch/, according to my test case above?