Skip to content

WIP: Add contour line endpoint for terrain#1458

Draft
acalcutt wants to merge 171 commits into
maptiler:masterfrom
WifiDB:terrain-elevation-contour
Draft

WIP: Add contour line endpoint for terrain#1458
acalcutt wants to merge 171 commits into
maptiler:masterfrom
WifiDB:terrain-elevation-contour

Conversation

@acalcutt

@acalcutt acalcutt commented Feb 5, 2025

Copy link
Copy Markdown
Collaborator

Adds a maplibre-contour based endpoint, that dynamically creates contour lines that could would with either maplibre-gl-js or native

@@ -0,0 +1,65 @@
class MaplibreContourControl {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused class MaplibreContourControl.
Comment thread src/contour.js Fixed
@acalcutt acalcutt changed the title WIP: Add contour line endpoit for terrain WIP: Add contour line endpoint for terrain Feb 5, 2025
},
"contour": {
"type": "vector",
"tiles": [ baseUrl + "/data/{{id}}/contour/{z}/{x}/{y}" ],

@acalcutt acalcutt Feb 5, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I would like to do is make a json endpoint for the contour lines, so this does not need baseurl

I tried to use {{public_url}} here also, but "tiles" doesn't like the relative link it seemed.

@utagawal

Copy link
Copy Markdown

Will you make this part of the next release ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants