Skip to content
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

WIP: Add contour line endpoint for terrain #1458

Draft
wants to merge 166 commits into
base: master
Choose a base branch
from

Conversation

acalcutt
Copy link
Collaborator

@acalcutt acalcutt commented Feb 5, 2025

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.
$zxy.z,
$zxy.x,
$zxy.y,
abortController,

Check warning

Code scanning / CodeQL

Superfluous trailing arguments Warning

Superfluous argument passed to
function getPMtilesTile
.
@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}" ],
Copy link
Collaborator Author

@acalcutt acalcutt Feb 5, 2025

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.

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.

2 participants