-
-
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
High resolution tiles? #156
Comments
The tile resolution should match your devicePixelRatio and be the ideal resolution automatically, so there isn't a way to set it: https://github.com/protomaps/protomaps-leaflet/blob/main/src/frontends/leaflet.ts#L107 |
Thanks, I see that now. I was using it in a headless environment, and was able to apply it by setting the deviceScaleFactor. It would be great if this could be made into an optional parameter (defaulting to |
In the case you described shouldn't setting |
I suppose my concern is introducing side effects in my application by changing |
I agree, do you want to try a PR where |
Sure, I'd be happy to. However, I see Should the parameter be named |
this.devicePixelRatio || window.devicePixelRatio is the most straightforward...
It seems fine to me if the main use case is for headless "devices", right? |
Is there a setting or option for increasing the map resolution (e.g., retina tiles)?
I know tileSize can be used to increase the map resolution with Leaflet, but I don't see this as an option to
protomapsL.leafletLayer
. Is there a way to do this?The text was updated successfully, but these errors were encountered: