-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
No default theme for leafletLayer #153
Comments
Should we throw an error if no It could be more explicit if we had positional arguments. In the future, the Proposal welcome. |
Just opened a PR where it just sets the theme to "light" by default. I think it is a little nicer than throwing an error (and maybe how this worked before? I was using an older version of this package and encountered this problem when I upgraded) |
Thanks for the PR. I recall the issue here now, which is that if we pass this:
If I'm visualizing my own tileset, as of right now on main this sets labelRules to So we probably need some breaking change in the API to encapsulate these use cases:
|
Fair enough! will close my PR for now |
What if we created a 2nd entry point called like Also, would a Typedoc page like this: https://protomaps.github.io/PMTiles/typedoc/ be helpful? |
The
theme
option for theleafletLayer
function is marked as optional, however when I omit nothing gets shown on the map.I.e.
I am keen to try to submit a PR to fix this one.
The text was updated successfully, but these errors were encountered: