Copprhead - I'm trying to understand the resour...
I'm trying to understand the resources/charts api, so that I can integrate charts from there in my TrackViewer app. First, I wanted to understand how Freeboard is using it. Unfortunately my Freeboard does not show me the charts I have configured in the charts plugin. But calling the signalk/v1/api/resources/charts endpoint lists me those charts. In Freeboard I only see the OpenSeaMap and OpenStreetMap charts.
3 Replies
have you checked Charts under the layers button on the left
also https://github.com/SignalK/vesselpositions/blob/main/src/components/AppPanel.js uses charts api
GitHub
vesselpositions/src/components/AppPanel.js at main · SignalK/vesse...
Embedded webapp to show vessels'. positions on a map - SignalK/vesselpositions
yes, that's the only place I know to look for charts and I see Sea Map (Open Sea Map) and World Map (Open Street Map) and both are enabled and work.
But in the charts plugin I have two custom mbtiles charts and the world-coastline chart and those are listed by the endpoint.
I want to make sure the charts provider is working properly before I try to use it in my app.
None the less I have just tried to change the map URLs in my app to the URLs given by the endpoint but it doesn't work. The browser cannot connect to my signalk server to load the tiles (status failed net::ERR_ADDRESS_UNREACHABLE). I can call the endpoint url just fine. Is that some CORS ** maybe?
SK server is running on my RPi, dev environment is on my macbook.
I have allowed CORS origins: *
oh, just tried in Safari and it's working. I wonder what problem Chrome has with it...
really interesting. Freeboard also shows all the charts in Safari, but not in Chrome.
Ok, prototype is working. Now some polishing.
The new version is ready!