Continue from this link, for my situation, the only way to generate .tif to .mbtiles is
gdal_translate
in QGIS.
This is the .json after using gdal_translate
Setting: GDAL > Raster conversion > translate(convert format)
{
"tiles": [
"http://localhost:8009/data/openmaptiles/{z}/{x}/{y}.png"
],
"name": "something8",
"format": "png",
"basename": "something8.mbtiles",
"id": "something8",
"type": "overlay",
"description": "something8",
"version": "1.1",
"bounds": [
101.03159452420243,
3.9388754188813304,
101.04662092965613,
3.9534099669676817
],
"minzoom": 21,
"maxzoom": 21,
"center": [
101.03910772692927,
3.9461426929245063,
21
],
"tilejson": "2.0.0"
}
And this is the what I need:
{
"tiles": [
"http://localhost:8009/data/openmaptiles/{z}/{x}/{y}.png"
],
"name": "something",
"format": "png",
"basename": "something.mbtiles",
"id": "something",
"type": "overlay",
"description": "something",
"version": "1.1",
"minzoom": 8,
"maxzoom": 25,
"bounds": [
101.02890014648438,
3.936870437606864,
101.05138778686523,
3.9575921925703916
],
"center": [
101.0401439666748,
3.9472313150886276,
16
],
"tilejson": "2.0.0"
}
As you can see the above .json minzoom
and maxzoom
is fixed at 21, and the below are 8-25. How to set the zoom level from 14-20?
Any idea?