Closed veitbjarsch closed 4 months ago
My guess would be your mbtiles file is missing format in the metadata table. I am pretty sure if format is not specified it defaults to pbf vector tiles. You can check this with a sqlite editor, like
# sqlite3 jaxa_color.mbtiles
sqlite> select * from metadata where name='format';
format|png
I assume the last line returns nothing in your case, in which case you can add it in with something like
INSERT INTO metadata (name,value) VALUES('format','png');
(where 'png' is should be your real image type)
As far as i can see from he documentation there is no way to change the format of a data file other than editing the file. You could likely still make a style and specify the data as a raster and it would probably work, despite showing wrong under data. but to fix it I think you need to do the sqlite commands I mentioned.
@acalcutt thanks for the help. This was indeed the problem.
I've set up a tile server and created a mbtiles file which contains raster tiles. But when I reference the file inside the data prop, it states that the containing files are vector-file.
I could not find any documentation how to manually address this issue. So it might be a bug or do I missing something?
config.json