Skip to content

[DO NOT MERGE] User renderer for everything - #77

Draft
aparlato wants to merge 11 commits into
mainfrom
rethink-7-22-26
Draft

[DO NOT MERGE] User renderer for everything#77
aparlato wants to merge 11 commits into
mainfrom
rethink-7-22-26

Conversation

@aparlato

Copy link
Copy Markdown
Contributor

This PR completely rewrites the repo to use the renderer for everything rather than try to convert to SVG.

This should significantly reduce future bugs and maintenance needs. A tradeoff is that it's a bit slower to load (needs to render a map with each layer and convert to png, but we do keep these so they only have to be loaded once per style/property combo).

@ebrelsford @kelsey-taylor @almccon would you all take a look and let me know what you think of this direction?

Changes to debate

Data conditions

Instead of our previous naive handling of conditionals by attempting to show all outputs from a case or match expression, this has converted to setting data with any properties and values found in the style. Users can update the data to what they want to see.

This makes it harder to compare, but functionally far more solid. My inclination is to continue with this approach and discuss ways we can accommodate it to our comparison needs since the previous approach both breaks our ability to use the renderer exclusively and does not cleanly fit all cases, sometimes causing bugs.

Fills and lines

Previously we showed line color and opacity in the fills page as well as the fills. This is technically inaccurate so I divided the pages more cleanly by type.

If this is necessary, it's an easy fix, but we should reconsider our page naming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant