Skip to content

allow pmtiles styles to map aesthetics to data properties? #76

@cboettig

Description

@cboettig

the examples in PMTiles here show aesthetics like fill color as literal hex color values in the style, rather than being mapped to data columns:

paintRules(
  layer,
  fillColor = "#0033ff66",
  color = "#0033ffcc",

Some pmtiles rendering tools seem to support an additional syntax to map attributes to columns, e.g. https://maplibre.org/maplibre-style-spec/expressions/#get, as seen in this example https://maplibre.org/maplibre-gl-js/docs/examples/data-driven-lines/. Is it possible to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions