ec-doris / kohesio-frontend

Web interface for Kohesio project
https://kohesio.ec.europa.eu
8 stars 0 forks source link

in map API return also upper regions #778

Closed D063520 closed 1 year ago

D063520 commented 1 year ago

this is needed to display the bread crump

DiaZork commented 1 year ago

This is done in the API it's a field called upperRegions which is a list of the upper regions

example for map region example for map coords

D063520 commented 1 year ago

@raphdom can you check if you have all you need?

raphdom commented 1 year ago

Hello @D063520 and @DiaZork. It is possible to add the label of the region itself and the label of the upper regions? using the language parameter btw...

Example: https://kohesio.development.ec.europa.eu/api/facet/eu/search/project/map?granularityRegion=https://linkedopendata.eu/entity/Q3526&language=en

DiaZork commented 1 year ago

Yes i'll do that

DiaZork commented 1 year ago

I've pushed the change on dev, it will be up soon

raphdom commented 1 year ago

thank you

raphdom commented 1 year ago

this is good now @DiaZork but I have an error here: https://kohesio.development.ec.europa.eu/api/facet/eu/search/project/map?language=en Can you check, please?

DiaZork commented 1 year ago

It's fixed

raphdom commented 1 year ago

Now we can navigate in the homepage with the url change for each map region, I put like a breadcrumb on the url just to help users to easily identify, but the most important is the QID in the end @roberto-musmeci and @madewild can you test please?

roberto-musmeci commented 1 year ago

links seem to work well thanks @raphdom. However, the project near me functionality does not work anymore.

D063520 commented 1 year ago

this is nice! also for sharing a particular view .....

madewild commented 1 year ago

Very nice indeed! @roberto-musmeci for the PNM it seems unrelated so I opened a separate issue https://github.com/ec-doris/kohesio-backend/issues/207

raphdom commented 1 year ago

now, is even better, you have the coordinate on the url:

https://kohesio.development.ec.europa.eu/en/?mapRegion=Portugal,Centro-region,Coimbra-Region,Q2556199&coords=-8.3211792431454,40.1552222#my-region

and some documentation about how to embed the map:

https://github.com/ec-doris/kohesio-frontend/blob/dev/docs/embbeded-map.md

D063520 commented 1 year ago

wanted to propose that, but then I thought I might be too picky! Even better feature! ; )

roberto-musmeci commented 1 year ago

Hi guys. Can we close it ? :)