I'm currently running that company's docker container in order to serve the tiles, and a few things are happening that are causing my current openmap configuration some heartache:
a) The "hillshades" tiles are transmitted with "Content-encoding: gzip" and filename has a ".png" suffix. These aren't rendering; when I go look in the cache directory, the .png files are actually gzipped. For example:
chunky@mills:/tmp/mapcache/Hillshades$ file ./2/2/2.png
./2/2/2.png: gzip compressed data, from Unix
chunky@mills:/tmp/mapcache/Hillshades$ gzip -cd ./2/2/2.png | file -
/dev/stdin: PNG image data, 256 x 256, 8-bit colormap, non-interlaced
The initialisation code in my class that extends MapTileFactory is:
Properties tileProps = new Properties();
tileProps.put("rootDir", "http://myserver/data/hillshades/{z}/{x}/{y}.png");
tileProps.put("cacheSize", 12000);
File cacheDir = new File("mapCache/Hillshades/");
tileProps.put("localCacheRootDir", cacheDir.getAbsolutePath());
ServerMapTileFactory serverMapTileFactory = new ServerMapTileFactory();
serverMapTileFactory.setProperties(tileProps);
this.tileFactory = serverMapTileFactory;
b) I'm currently using the raster variant of the OSM tile URLs, but upstream they're really PBF vector files, and the preferred clientside web renderer appears to actually be using a WebGL vector render. Is there a right combination of pieces to get openmap to render the vector variant, pulling the data from the server?
Looking at the options their container offers, I see this set of options in the "GL Style" vector metadata [called "style.json"], that look to be what's actually needed to grab the data:
sources url: http://myserver/data/v3.json
sprite: http://myserver/styles/dark-matter/sprite
glyphs: http://myserver/fonts/{fontstack}/{range}.pbf
... but obviously it's style.json, so it also contains all the actual style data. Even better than my previous question would just be a way to point openmap to this GLStyle json file and have it magically do everything therein
Cheers
Gary