julien-nc / gpxpod

Nextcloud app to view gpx track files
GNU Affero General Public License v3.0
36 stars 3 forks source link

New interface (Beta) is empty since 5.0.8 #22

Closed Synochy closed 1 year ago

Synochy commented 1 year ago

Hello,

Since the 5.0.8 update, the new interface is empty : no files / no map image

julien-nc commented 1 year ago

Thanks for the bug report. I need more information to figure out the reason it does not work on your side:

Synochy commented 1 year ago

I am using using firefox 111.0.1. I tried also on google chrome (without any addon) but I have a the same result

I am on php 8.2 and NC 26 the only error I have brower consol log is this one but I don't think it is related image

I don't have any error in Nextcloud log. I also tried to uninstall and install gpxpod.

julien-nc commented 1 year ago
julien-nc commented 1 year ago

Can you try setting a valid MapTiler API key? You can do it with occ: For your user:

occ user:setting USER_ID gpxpod maptiler_api_key API_KEY

Or for all users (this can also be done in the admin additional settings):

occ config:app:set gpxpod maptiler_api_key --value="API_KEY"
Synochy commented 1 year ago

I created an account on MapTiler to get an API key. I use : occ config:app:set gpxpod maptiler_api_key --value="API_KEY"

And it solves the problem. If I understand well, from now on we will need an account on MapTiler account to have the app works ?

julien-nc commented 1 year ago

Thanks for the feedback.

If I understand well, from now on we will need an account on MapTiler account to have the app works ?

Not really. The raster tile servers ("OpenStreetMap raster", "ESRI" and "Watercolor") still work without MapTiler API key as they are not related.

"OpenStreetMap raster" is now the default for new users (using GpxPod for the first time).

It's weird that I can't reproduce the issue. If I load the page while having no API key or an invalid one or the default one, and the selected tile server is "Streets", everything still loads and I'm able to change the tile server afterwards. I'll dig deeper.

Anyway, what can be done to make this safer is to remove the vector tile servers from the list if no API key is set. I'll keep you updated.