I was able to follow the instructions here
https://opensphere.readthedocs.io/en/latest/cookbook/osm/index.html in an attempt to point OpenSphere to my tile server, however, the log file shows that things are not quite working yet. The tile server is using http and it would seem that OpenSphere wants to use https to request stuff. Is there a way to tell it to use http?
I have set this all up on Ubuntu 18.04.
For the OpenSphere settings.json file, my providers block looks like:
"providers": {
"basemap": {
"type": "basemap",
"defaults": {
"EPSG:4326": [],
"EPSG:3857": [ "osm" ]
},
"failSet": {
"EPSG:4326": [],
"EPSG:3857": []
},
"maps": {
"streetmap": {
//
// just the default stuff here
//
},
"worldimagery": {
//
// just the default stuff here
//
},
"osm": {
"title": "OpenStreetMap",
"type": "BaseMap",
"baseType": "XYZ",
"provider": "OSM",
"url": "http://192.168.254.132/hot/{z}/{x}/{y}.png",
"minZoom": 2,
"maxZoom": 19,
"projection": "EPSG:3857",
"tileSize": 256,
"description": "OpenStreetMap rendered tiles.",
"attributions": ["© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"]
}
}
and the log file contains:
[190423 11:45:27.72] [ 0.011s] [os.net.Request] GET .build/settings-debug.json
[190423 11:45:27.75] [ 0.032s] [os.net.Request] GET config/settings.json
[190423 11:45:27.76] [ 0.044s] [os.config.Settings] Storage write location is now: IndexedDb
[190423 11:45:27.76] [ 0.046s] [os.config.Settings] Settings finished loading
[190423 11:45:27.89] [ 0.175s] [os.metrics.Metrics] Metrics locally saved
[190423 11:45:27.89] [ 0.180s] [os.net.Request] GET ../opensphere/vendor/geomag/WMM.COF
[190423 11:45:27.91] [ 0.194s] [os.column.ColumnMappingManager] Loading column associations...
[190423 11:45:27.91] [ 0.195s] [os.column.ColumnMappingManager] Loaded 0 associations(s) from storage.
[190423 11:45:28.60] [ 0.886s] [os.plugin.PluginManager] Initializing plugins ...
[190423 11:45:28.63] [ 0.919s] [os.data.OSDataManager] The descriptor type "config" already exists!
[190423 11:45:28.64] [ 0.922s] [os.plugin.PluginManager] Finished loading plugins
[190423 11:45:28.64] [ 0.930s] [os.net.Request] GET http://192.168.254.132/hot/2/2/0.png
[190423 11:45:28.65] [ 0.941s] [os.net.Request] GET ../opensphere/onboarding/intro.json
[190423 11:45:28.69] [ 0.972s] [os.net.ExtDomainHandler] Http response at 400 or 500 level. Http Status code: 0
[190423 11:45:28.71] [ 0.992s] [os.net.SameDomainHandler] The requested resource was not found. Http Status code: 404
[190423 11:45:28.71] [ 0.993s] [os.net.Request] Error! See fine log for more details. http://192.168.254.132/hot/2/2/0.png
[190423 11:45:28.76] [ 1.047s] [os.net.Request] GET local://Ly9wbHVnaW4ucGxhY2Vz
[190423 11:45:28.77] [ 1.054s] [plugin.file.kml.KMLSource] Request complete for Saved Places (local://Ly9wbHVnaW4ucGxhY2Vz) in 00:00.007
[190423 11:45:28.78] [ 1.070s] [plugin.file.kml.KMLSource] Import complete for Saved Places (local://Ly9wbHVnaW4ucGxhY2Vz) in 00:00.017
[190423 11:45:29.24] [ 1.523s] [os.net.Request] GET http://localhost:8282/node_modules/cesium/Build/CesiumUnminified/Assets/approximateTerrainHeights.json
[190423 11:45:29.28] [ 1.567s] [os.net.Request] GET http://localhost:8282/node_modules/cesium/Build/CesiumUnminified/Assets/IAU2006_XYS/IAU2006_XYS_16.json
[190423 11:45:49.68] [ 21.969s] [os.net.Request] GET ../opensphere/onboarding/adddata.json
[190423 11:46:03.78] [ 36.071s] [os.command.CommandProcessor] executing "Add Map Layers "Street Map"" command
[190423 11:46:03.79] [ 36.073s] [os.net.Request] GET //services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/2/0/2
[190423 11:46:03.79] [ 36.076s] [os.command.CommandProcessor] Added "Add Map Layers "Street Map"" command to history.
[190423 11:46:23.26] [ 55.544s] [os.net.Request] GET http://192.168.254.132/hot/%7Bz%7D/%7Bx%7D/%7By%7D.png
[190423 11:46:23.27] [ 55.560s] [os.net.ExtDomainHandler] Http response at 400 or 500 level. Http Status code: 0
[190423 11:46:23.28] [ 55.565s] [os.net.SameDomainHandler] The requested resource was not found. Http Status code: 404
[190423 11:46:23.28] [ 55.565s] [os.net.Request] Error! See fine log for more details. http://192.168.254.132/hot/%7Bz%7D/%7Bx%7D/%7By%7D.png
[190423 11:46:23.29] [ 55.578s] [os.ui.file.method.UrlMethod] <strong>Unable to load URL "http://192.168.254.132/hot/{z}/{x}/{y}.png"!</strong><br>Please check that it was entered correctly.
[190423 11:46:28.12] [ 60.403s] [os.net.Request] GET http://192.168.254.132
[190423 11:46:28.13] [ 60.420s] [os.net.ExtDomainHandler] Http response at 400 or 500 level. Http Status code: 0
[190423 11:46:28.14] [ 60.424s] [os.net.SameDomainHandler] The requested resource was not found. Http Status code: 404
[190423 11:46:28.14] [ 60.425s] [os.net.Request] Error! See fine log for more details. http://192.168.254.132
[190423 11:46:28.15] [ 60.435s] [os.ui.file.method.UrlMethod] <strong>Unable to load URL "http://192.168.254.132"!</strong><br>Please check that it was entered correctly.
[190423 11:46:32.65] [ 64.940s] [os.ui.im.DuplicateImportProcess] Import cancelled by user.
[190423 11:46:40.43] [ 72.712s] [os.command.CommandProcessor] executing "Remove Map Layers "Street Map"" command
[190423 11:46:40.43] [ 72.716s] [os.command.CommandProcessor] Added "Remove Map Layers "Street Map"" command to history.
Where is the "fine log" located?
I did try joining the opensphere slack channel, but it looks like I may need an invite or something...
Any insights into what might be going on and how I can get OpenSphere to point to my internal tile server would be appreciated.