Skip to content

Consider rebuild using renderer only #76

@aparlato

Description

@aparlato

The fill and lines tabs of this application translate the style spec into SVG. Because the style spec is consistently being updated, this means we always have significant tech debt here as well as properties that can't be visualized effectively in SVG.

The typography tab, by necessity, uses the renderer to show labels.

I think we should consider a rebuild of this app to function more simply to rely on the renderer for all visuals. In doing this, maintenance should be much easier and involve only updating the renderer version.

This means we need to be clever in rethinking how to build our visualizations, similar to how we replace ["zoom"] with ["get", "zoom"] in the typography tab so we can make custom geojsons to use as base data and show multiple zooms at once.

Known problems

This should be uncomplicated for the fill tab, however the line tab proves trickier as far as handling line width since this can be linear or step-wise and shift over varying zoom ranges.

To address this, we might consider:

  • separate visualization of the linear/step-wise expansion of line width to go alongside the actual choppy rendering (that always appears step-wise) or
  • using some kind of SVG mask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions