- Vector tiles are designed for use in web maps, mobile apps, and desktop GIS software.
- WherobotsDB makes it easy and affordable to generate vector tiles at a planetary scale.
- By rendering vector tiles directly, the interactive map experience is more responsive and scalable for large datasets than rendering feature formats (e.g., GeoJSON) directly and allows developers to customize the display, which is otherwise impossible with raster tiles.
wherobots_open_data section of the Wherobots Cloud Spatial Catalog.
Start a WBC Notebook
Follow these instructions to open a notebook in Wherobots Cloud. Once a notebook is started you can open the tile_generation_example notebook located innotebooks_examples/python or notebooks_examples/scala in Jupyter lab, or create a new notebook tab in Jupyter lab
and select the desired kernel (Python or Scala) to follow this tutorial.
Start a SedonaContext
As always, begin by starting a Sedona context- Python
- Scala
Load Feature Data
Create a Spatial DataFrame with a geometry column and a layer column. The geometry column contains the features to render in the map. The layer column is a string that describes the grouping the feature should be in. Records within the same layer can be styled together, independently of other layers. In this case example features that represent buildings are in the buildings layer and those representing roads are in the roads layer. The first cell that follows gives some variable to control where we generate tiles. The default is a small town in Washington: Issaquah.- Python
- Scala
wherobots_open_data).
- Python
- Scala
- Python
- Scala
- Python
- Scala
Create Tiles as a PMTiles Archive
Once we have the Spatial DataFrame ready for tile generation, we can use thevtiles.generate_pmtiles method to create a PMTiles archive. PMTiles is a performant, simple, and optimized format for storing vector tiles.
Wherobots will automatically handle the details for you. However, if you need more control, a GenerationConfig object can optionally be provided as an argument to control which tiles are created and their contents. A PMTilesConfig object can optionally be provided to control the header information of the PMTiles Archive.
- Python
- Scala
Visualizing Vector Tiles with leafmap
We’ve made it easy to use leafmap to visualize the vector tiles we just generated. Leafmap is a popular geospatial visualization tool for Jupyter notebooks.Visualization is only available in Python.
- Python
If you are not using the Wherobots provided bucket to store tiles, ensure CORS is enabled on the bucket. Learn
how to configure this in the
CORS documentation.

Quick Generation of Tiles
Sometimes you want to quickly visualize a massive dataset. To achieve this goal, WherobotsDB provides a function for quickly generating, saving, and displaying tiles. This feature can be used as follows:- Python
- Scala

