-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature request: define the contour source in a style file #81
Comments
Perhaps the definition of the contour source could include the name of the DEM source. For example:
|
Yes, you can just use:
I think that config looks great, but it will be a complete rewrite using maplibre's It will likely require changes on maplibre side as well since that API is not very well documented and may require changes to maplibre to expose utilities like getting dem tiles from other sources. Overall it should improve things quite a bit though because it will let us run the contour-generation code in maplibre's workers and remove a lot of the code in this plugin for worker coordination, etc. |
Please enable defining the contour source in a style file rather than the need to code it in JavaScript.
For example, use this definition in a style file
As the equivalent of this definition in JavaScript:
Also, is it also possible to define equivalents to
DemSource()
andsharedDemProtocolUrl
that are used inindex.html
?==== Note ====
The current alternative is to inline the results of
demSource.contourProtocolUrl
. For the above example, that would be:This issue is based on this Slack Message
The text was updated successfully, but these errors were encountered: