Skip to content

Usage with 'rasterize-vector-tiles' #192

Answered by msbarry
JaffaKetchup asked this question in Q&A
Discussion options

You must be logged in to vote

A full-fledged rasterizing solution like https://github.com/maptiler/tileserver-gl will take the vector tiles and apply a configurable style to them to describe how each feature should be rendered (color, width, etc). It looks like rasterize-vector-tiles is a very simple approach that doesn't use an external style, and instead requires the vector tile features to have a color embedded on them (in the attribute you pass in as colorprop). So your 2 options for that tool would be:

  • customize planetiler code to add a color attribute to each feature
  • or customize rasterize-vector-tile to infer a color for each feature (ie. based on the layer name)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JaffaKetchup
Comment options

Answer selected by JaffaKetchup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants