-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I have on my SK v2.12.0 the freeboard-sk v2.12.2 and @signalk/charts-plugin v3.0.0
when use the charts plugin with one subdir everything is fine and works as expected.
Now I added a 2nd path and no chart is shown anymore but they are available via the API.
{
"Vanuatu_TCL2402_ArcGIS_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_ArcGIS_Z13-16,18",
"name": "Vanuatu - ArcGIS, TCL2402, Z13-16&18",
"description": "Vanuatu - ArcGIS, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_ArcGIS_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"Vanuatu_TCL2402_BingSat_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_BingSat_Z13-16,18",
"name": "Vanuatu - BingSat, TCL2402, Z13-16&18",
"description": "Vanuatu - BingSat, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_BingSat_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"Vanuatu_TCL2402_Navionics_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_Navionics_Z13-16,18",
"name": "Vanuatu - Navionics, TCL2402, Z13-16&18",
"description": "Vanuatu - Navionics, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "png",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_Navionics_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"NewCaledonia.Z12 15 18.ArcGIS": {
"identifier": "NewCaledonia.Z12 15 18.ArcGIS",
"name": "NewCaledonia, ArcGIS, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCaledonia.Z12 15 18.ArcGIS/{z}/{x}/{y}",
"chartLayers": []
},
"NewCaledonia_Z12 15 18 BingSat": {
"identifier": "NewCaledonia_Z12 15 18 BingSat",
"name": "New Caledonia, BingSat, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCaledonia_Z12 15 18 BingSat/{z}/{x}/{y}",
"chartLayers": []
},
"NewCaledonia_Z12 15 18 GoogleSat": {
"identifier": "NewCaledonia_Z12 15 18 GoogleSat",
"name": "New Caledonia, GoogleSat, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCaledonia_Z12 15 18 GoogleSat/{z}/{x}/{y}",
"chartLayers": []
},
"NewCaledonia_Z12 15 18 Navionics": {
"identifier": "NewCaledonia_Z12 15 18 Navionics",
"name": "New Caledonia, Navionics, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "png",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCaledonia_Z12 15 18 Navionics/{z}/{x}/{y}",
"chartLayers": []
}
}
One thing I noticed is that in the newcaledonia folder the file names are inside a '' but linux ignores that ans says it is the same file.
to exclude this I renamed all the files in that dir:
Than I clicked on the plugin again "submit" to re-read the dir. The API now shows:
{
"Vanuatu_TCL2402_ArcGIS_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_ArcGIS_Z13-16,18",
"name": "Vanuatu - ArcGIS, TCL2402, Z13-16&18",
"description": "Vanuatu - ArcGIS, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_ArcGIS_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"Vanuatu_TCL2402_BingSat_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_BingSat_Z13-16,18",
"name": "Vanuatu - BingSat, TCL2402, Z13-16&18",
"description": "Vanuatu - BingSat, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_BingSat_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"Vanuatu_TCL2402_Navionics_Z13-16,18": {
"identifier": "Vanuatu_TCL2402_Navionics_Z13-16,18",
"name": "Vanuatu - Navionics, TCL2402, Z13-16&18",
"description": "Vanuatu - Navionics, TCL2402, Z13-16&18",
"bounds": [
166.46484375,
-20.30341752,
170.33203125,
-12.98314772
],
"minzoom": 12,
"maxzoom": 17,
"format": "png",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/Vanuatu_TCL2402_Navionics_Z13-16,18/{z}/{x}/{y}",
"chartLayers": []
},
"NewCal_ArcGis": {
"identifier": "NewCal_ArcGis",
"name": "NewCaledonia, ArcGIS, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCal_ArcGis/{z}/{x}/{y}",
"chartLayers": []
},
"NewCal_Bing": {
"identifier": "NewCal_Bing",
"name": "New Caledonia, BingSat, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCal_Bing/{z}/{x}/{y}",
"chartLayers": []
},
"NewCal_Navionics": {
"identifier": "NewCal_Navionics",
"name": "New Caledonia, Navionics, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "png",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCal_Navionics/{z}/{x}/{y}",
"chartLayers": []
},
"NewCal_google": {
"identifier": "NewCal_google",
"name": "New Caledonia, GoogleSat, Z12 15 18",
"description": "Created by SAS.Planet",
"bounds": [
158.02734375,
-23.07973176,
172.265625,
-17.81145609
],
"minzoom": 11,
"maxzoom": 17,
"format": "jpg",
"type": "tilelayer",
"scale": 250000,
"tilemapUrl": "/signalk/v1/api/resources/charts/NewCal_google/{z}/{x}/{y}",
"chartLayers": []
}
}
But Freeboard-SK is still not showing the charts, even pushing the "Reload Charts" button when selecting a chart.
Only a "SK Server Reload" brought all the charts.



