-
Notifications
You must be signed in to change notification settings - Fork 10
Add File watcher support #34
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
base: master
Are you sure you want to change the base?
Changes from 17 commits
d5919ba
b34da10
dfe4cd4
dd3123b
5b4f651
a0b4909
a037b1c
e4aaa11
ae72a4a
46e834e
ba0c4bf
55f4775
1491e4e
5163475
67ae54e
4a8e515
0d82e9a
d222c1b
62bef44
9233bb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ## Change Log | ||
|
|
||
| ### 3.1.0 | ||
|
|
||
| - **Added**: Detection, processing and serving of mapbox style json files. Files served from `/chart-styles` | ||
|
|
||
| - **Added**: Ability to provide a Mapbox access token in the plugin configuration. | ||
|
|
||
| - **Added**: Watch chart folders for changes and refresh chart providers (#28) | ||
|
|
||
| - **Updated**: Move the serving of map tiles out from under `resources/charts` to `/chart-tiles` to better aligns with v2 multiple-provider support. | ||
|
|
||
| - **Updated**: Updated package dependencies (#35) | ||
|
|
||
| --- | ||
|
|
||
| ### 3.0.0 | ||
|
|
||
| - **Added**: Signal K v2 Resources API support. | ||
| - **Updated**: Ported to Typescript. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,14 @@ | |
|
|
||
| Signal K Node server plugin to provide chart metadata, such as name, description and location of the actual chart tile data. | ||
|
|
||
| Supports both v1 and v2 Signal K resources api paths. | ||
| Chart metadata is derived from the following supported chart files: | ||
| - Mapbox Tiles _(.mbtiles)_ | ||
|
||
| - Mapbox Styles _(.json)_ | ||
| - TMS _(tilemapresource.xml and tiles)_ | ||
|
|
||
| Additionally chart metadata can be defined for other chart sources and types _(e.g. WMS, WMTS, S-57 tiles and tilejson)_. | ||
|
|
||
| Chart metadata made available to both v1 and v2 Signal K resources api paths. | ||
|
|
||
| | Server Version | API | Path | | ||
| |--- |--- |--- | | ||
|
|
@@ -32,7 +39,10 @@ _Note: v2 resource paths will only be made available on Signal K server >= v2._ | |
|
|
||
| <img src="https://user-images.githubusercontent.com/1435910/45048136-c65d2e80-b083-11e8-99db-01e8cece9f89.png" alt="Online chart providers configuration" width="450"/> | ||
|
|
||
| 6. (Optional): Add Mapbox access token. | ||
| When provided, the access token will added to the url of Mapbox Styles _e.g. `?access_token=xyz123`_ | ||
|
|
||
|  | ||
|
|
||
|
|
||
| _WMS example:_ | ||
|
|
@@ -46,8 +56,10 @@ _WMS example:_ | |
| - [Tuktuk Chart Plotter](https://www.npmjs.com/package/tuktuk-chart-plotter) | ||
|
|
||
| ### Supported chart formats | ||
| pk.eyJ1IjoiYWRhbTIyMjIiLCJhIjoiY2l5dGJhaW96MDAwcDJ3bzM0MXk2aTB0bSJ9.kgHNRDiGEmq12toljp2-kA | ||
|
|
||
| - [MBTiles](https://github.com/mapbox/mbtiles-spec) file | ||
| - [Mapbox Style](https://docs.mapbox.com/help/glossary/style/) JSON file _e.g. `bright-v9.json`_ | ||
| - Directory with cached [TMS](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification) tiles and `tilemapresource.xml` | ||
| - Directory with XYZ tiles and `metadata.json` | ||
| - Online [TMS](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification) | ||
|
|
@@ -61,9 +73,46 @@ Publicly available MBTiles charts can be found from: | |
|
|
||
| Plugin adds support for `/resources/charts` endpoints described in [Signal K specification](http://signalk.org/specification/1.0.0/doc/otherBranches.html#resourcescharts): | ||
|
|
||
| - `GET /signalk/v1/api/resources/charts/` returns metadata for all available charts | ||
| - `GET /signalk/v1/api/resources/charts/${identifier}/` returns metadata for selected chart | ||
| - `GET /signalk/v1/api/resources/charts/${identifier}/${z}/${x}/${y}` returns a single tile for selected offline chart. As charts-plugin isn't proxy, online charts is not available via this request. You should look the metadata to find proper request. | ||
| - Return metadata for all available charts | ||
|
|
||
| ```bash | ||
| # v1 API | ||
| GET /signalk/v1/api/resources/charts/` | ||
|
|
||
| # v2 API | ||
| GET /signalk/v2/api/resources/charts/` | ||
| ``` | ||
|
|
||
| - Return metadata for selected chart | ||
|
|
||
| ```bash | ||
| # v1 API | ||
| GET /signalk/v1/api/resources/charts/${identifier}` | ||
|
|
||
| # v2 API | ||
| GET /signalk/v2/api/resources/charts/${identifier}` | ||
| ``` | ||
|
|
||
| #### Chart Tiles | ||
| Chart tiles are retrieved using the url defined in the chart metadata. | ||
|
|
||
| For chart files placed in the path(s) defined in the plugin configuration, the url will be: | ||
|
|
||
| ```bash | ||
| /chart-tiles/${identifier}/${z}/${x}/${y} | ||
panaaj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| #### Mapbox Styles | ||
|
|
||
| For Mapbox Styles JSON files the url returned in the metadata will be: | ||
|
|
||
| ```bash | ||
| /chart-styles/${mapboxstyle.json} | ||
|
|
||
| # when access token is defined | ||
| /chart-styles/${mapboxstyle.json}?access_token=${token} | ||
panaaj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
|
|
||
| License | ||
| ------- | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.