-
Notifications
You must be signed in to change notification settings - Fork 647
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
Fix broken light (invalid use of heavy dependencies) #1449
Conversation
- move elevation calculation to serve_rendered and stub in serve_light due to use of canvas and sharp - elevation api is not available for light
Do you know if the is a isLight flag in the template? it might be goot to not show the elevation display on the terrain page.. |
I am fine with moving this to serve_rendered.js for now. though I have been thinking about ways to shorten that file since it is quite large (like separating it out into other files a bit) maybe we could make a terrain.js file and for now have it access through rendering so we don't need a new dummy file.. idk. this could be a first step though to at least get light working. |
Yes, in general it not the best solution, but may be I had chosen this before, too, just to not have multiple locations with different code. And in fact because we use images here, it is a kind of rendering, too. I tested light and normal again, looks fine now and finaly: I removed the control in light mode, too :) |
Done. I added a note to the docs, too. |
Yes, now the links are handled in dedicated flags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and in looks good to me
serve_rendered
and stub inserve_light
due to use ofcanvas
andsharp
Possible fix for #1448