-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using NOAA Quilted .mbtiles? #33
Comments
The charts list is auto-populated by simply scanning the mapcache dir for sub-dirs. Hence it finds the mbtiles dirs but doesnt understand them. So yes it will need some adjustment |
Thanks for speedy answer! |
Not sure - I havent tried using them. If you have js skills then google for openlayers3 and mbtiles - ol3 is the underlying map layer lib. The code here will need adjustment to read the mbtiles data: Lines 230 to 270 in 6217ff5
|
To a client application (a browser app like Freeboard) mbtiles charts are normal tiled charts: theSK Node server already takes care of digging out the chart metadata from the mbtiles file and serves the individual map tiles. The response to
So you should be to change Freeboard code so that if server response already includes the necessary information no need to do the secondary http request, just construct the OpenLayers layer. Btw have you tried tuktuk-chart-plotter, installable from SK Node Server's app store? It supports mbtiles out of the box (to be precise, the server's mbtiles code is mostly copypaste from tuk-tuk's internal server). |
Thanks for the quick responses. I installed tuktuk from the appstore but ran into a permissions issue (signalk-server-node is running as 'pi' - not root). So I sshd to the machine and ran (as root) 'npm install tuktuk-chart-plotter'. Seems like success on install but configuration and start/stop is going to take me a bit. I do like the look of freeboard and so will investigate the js changes that need to be made, although Im no js guru |
This is a sidetrack, but there should be no need for installing things as root. I assume you did at least part of your original installation as root and the trouble stems from that. The easiest way to restart the SK server is to reboot the machine. Tuktuk needs no further configuration. |
#51 adds support for mbtiles served from |
Hi,
I noted in another issue that we need to edit lib/addlayers in order to use other map formats. Does that extend to the .mbtiles that are now being quilted and distributed by NOAA? I see that these automatically appear in the Charts List, but I am not able to see anything when clicking Show/Hide buttons.
The text was updated successfully, but these errors were encountered: