Skip to content

draft: style rendering #1754

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

CommanderStorm
Copy link
Collaborator

@CommanderStorm CommanderStorm commented Mar 16, 2025

depends on #1711

This PR is a quite naive draft at how we could integrate maplibre_native.
It assumes that styling is done and mergable => builds on top of that base.
It also assumess that the challenge in this PR will be getting the build system to cooperate => includes a quite simple approach to just build up and tear down a renderer for each request.

Fixes #1685

TODOs (upstream):

  • fix the git submodule issue (click to expand)

    image

  • fix the git-clone issue on rebuilds (click to expand)

    image

TODOs (here):

  • integrate with docker (=> make sure that all the things are installed)
  • integrate with CI (=> make sure that all the things are installed)
  • add a new testcase that does not have rendering feature-flagged, but should still build and test
  • integrate with our testsuite (once it can be build)

There are a few things, where I think pushing to future PRs is a better call, after the intital challenges of the build system.

  • Is maplibre_native threadsafe? => how should said renderer be pooled
  • How many renderers should there be? How should it scale to more load
  • Which type of renderers should there be (static, tiles, interactive)

This PR adds style serving to the features we support.
Resolves maplibre#1607

I am not quite certain if `sources` is something that works for styles.. The key to the dict not playing any role is somewhat counterintuitive.
fix clippy issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant