MapBox MB Tile vs Vector Tile

I'm a little confused about the Tiles in the MapBox. As I understand it, a tile is a small map of a map, as in a puzzle.

MBTiles are images, but they are connected to a database to read data that allows interaction. Therefore, if I move the mouse, I can show the details of the layers under the cursor.

Vector tiles store all the data in vectors, and they are simply used to quickly render the image. Interaction with such data is not possible.

I'm wrong?

Now I see that there is a TileMill tool for MBTiles and MapBox Studio Classic for vector tiles. I assume that they are intended for different purposes, the first for interactive maps, the latter for quick rendering. So ... why is TileMill no longer supported , in favor of MBStudio? Is it possible to make interactive maps using MBStudio?

thanks

+6
source share
2 answers

This is a great question!

mbtile is a type of file that can contain raster or vector fragments. Think of it as an Adobe Illustrator .ai file β€” it can contain vector or raster data. Raster tiles and vector tiles can be in mbtile format.

With TileMill, your vector data (shapefile, CSV, etc.) was combined with your CartoCSS style and passed to Mapnik to create a bunch of tile images. Then you can save your tiles and send them to the web map through the tile server. Using Mapbox Studio Classic, you convert your data into vector tiles and create a CartoCSS style to style the data, but image tiles are not created until the map is requested through a browser. In the end, the output on the map is the same - a grid of raster fragments.

The interactivity you created in TileMill with bitmap fragments happens through UTFGrid . This is an invisible raster layer that sits beneath the images and adds interactivity to specific places. Interactivity is not actually associated with any individual functions at all - it is in the same place as your functions. This is also possible in Mapbox Studio Classic, since the output on the map will also be a grid of raster fragments. You can learn more about how to do this in Mapbox Studio Classic in a quick-launch style .

So, to answer your question, the transition to Mapbox Studio Classic consisted of using vector plates. They are much smaller than raster images, and they can be styled on the fly, so, for example, you do not need to store two separate sets of images to accommodate retina screens. It also means that you can have multiple styles applied to the same vector data on the fly, which means you don’t need to restore a whole set of images for each style or every small change.

+16
source

If the Metadata table contains the format = pbf, then mbtiles are vector tiles, not raster tiles. mbtiles The SQLite database can be a container for vector tiles that have in the Tiles table and tile_data blob-field PBF-Protocol Buffers - protobuf ( https://github.com/google/protobuf - a neutral neutral platform of a neutral platform for serializing structured data) . Google development. Tools such as MapBox Studio build vector tiles from GIS data and databases.

0
source

All Articles