OSM OpenCPN MBTiles are not rendered in Freeboard-SK
The MBTiles listed at https://wiki.openstreetmap.org/wiki/MBTiles are showing up on OpenCPN, but not in Freeboard. Maybe due to different schema compared to signalk-world-coastline-map?
signalk-world-coastline-map is showing and has the following schema:
https://ftp.gwdg.de/pub/misc/openstreetmap/openseamap/charts/mbtiles/OSM-OpenCPN2-Adria.mbtiles is not showing and has a different schema:
5 Replies
So Freeboard-SK uses the
type
and format
attributes in the meta data at /signalk/v2/api/resources/chart/{chart-id}
to determine the type of chart source.
For a raster MBTiles chart source it should look something like this....
What does the meta data for the chart that doesn't work look like?It's
OK so it appears that Openlayers has issues with the response to tile requests.
Out of curiosity if you enter the path to a tile in the browser (e.g. /signalk/chart-tiles/OSM-OpenCPN2-Adria/5/2/8) is the tile image displayed?
/signalk/chart-tiles/OSM-OpenCPN2-Adria/11/12/40
yields "Not Found"
/signalk/chart-tiles/world-coastline/7/30/30
shows an imageSo the chart plugin is not returning an image for the request..... the
charts-plugin
uses the @mapbox/mbtiles
library to process MBTiles so it looks like the difference in schema may not be supported by the library.