How to render .mbtiles vector file with MVT? #2270
Unanswered
smarttigerfly
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to render map tile by controling its style, so I choose to render
.mbtiles
vecotr file withMVTFeatureSorce
class, but, the I cannot make it.Firstly, I download a
OSM
data file,taiwan-latest.osm.pbf
.Then, I convert it to
taiwan.mbtiles
file, usingtilemaker
with the default.json
and.lua
file,config-openmaptiles.json
,process-openmaptiles.lua
.Then, I render the
.mbtiles
inosgearth
application with.css
and.js
file.The
.css
file is:The
.js
file is:The
main.cpp
is:The result is:
I don't how to edit the
.css
file to control the render style.And then, I want to render the
.mbtiles
file according to thefeature_mapnikvectortiles.earth
file in theosgearth-2.10\tests
directory.In the
feature_mapnikvectortiles.earth
file:So, I download the
osmium
andtippecanoe
, to convert the.pbf
file to.mbtiles
file.The
.css
file is:The
.js
file is:And the result is:
But if I run it to render
honolulu.mbtiles
file, the result is:And, the
.css
file is:the
.js
file is:Beta Was this translation helpful? Give feedback.
All reactions