Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change structure of pmtilesRules, allow icon sheet, require returned promise. #1015

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

prushforth
Copy link
Member

@prushforth prushforth commented Nov 14, 2024

Closes #1011

Add await on loading the pmtilesRules.js stylesheet module
that gets loaded via sheet.load(), after which all the style rules are
set and returned.  This allows style label rules to use IconSymbolizers,
however it requires a slightly awkward structure to be imposed on
a pmtiles stylesheet module.  See pmtilesRules.js, and corresponding
test stylesheet modules for more info.

Add a script to package.json to run the test web server to debug test
HTML pages as required, removing the need to drop into a console

Update pmtiles test that was not testing rendering, only a blank map
canvas. May/may not pass on linux dep on fonts and whatnot.
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.

pmtilesRules fails with missing protomapsL global variable
1 participant