Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I make the tile extent smaller? #1213

joelhaasnoot started this conversation in General
Discussion options

I'm looking at seeing if I can use the MVT standard on smaller, embedded platforms (think ESP32). The size of the vector tiles are optimized for desktop though at 4096x4096 pixels which is a bit large given memory constraints on small devices. This doesn't seem to be a forced standard but is a defacto standard. I tried digging through the code but couldn't find how to make this smaller - can anyone point me where to dig further?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Vector tiles have a resolution of 4096 by 4096 pixels, that is correct, however they don't work list raster images. You can think more of them like an SVG or PDF. If a vector tile contains only 1 line for example, it will be 1000 times smaller than a tile that contains 1000 lines.

So to make MVTs smaller, put fewer features in them...

You must be logged in to vote
1 reply
Comment options

How do you suggest I put fewer features in them? I can definitely skip layers and decide not to draw some smaller roads at certain zoom levels. But as I understand it, even if there is just one road/line in a 4096x4096 tile, the client has to figure out which part of the 4096x4096 tile is being shown on the screen, I have to parse the complete protobuf object, keep it around, do filtering to figure out which part to show on the screen, etc. That all gets much much easier if I have less data to deal with.

Comment options

Currently the resolution is hard coded at 4096x4096. I've had requests to increase the resolution at certain zoom levels too, for example to allow the max zoom in a tileset have more details when you over zoom in on it. It would definitely be good to make this configurable but will take a bit of refactoring...

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /