Skip to content

Web MapSDK#909

Merged
komplexon3 merged 30 commits intomainfrom
feature/web-map-sdk
Feb 5, 2026
Merged

Web MapSDK#909
komplexon3 merged 30 commits intomainfrom
feature/web-map-sdk

Conversation

@komplexon3
Copy link
Copy Markdown
Contributor

@komplexon3 komplexon3 commented Jan 20, 2026

Initial version of the "Web MapSDK".

I added the patch from the exploration-repository and added checks to pick the correct shader version.
@matzf I marked bits that need to be looked at with TO_CHECK.

Note that the referenced djinni version is a feature branch. PR: UbiqueInnovation/djinni#28

@komplexon3 komplexon3 requested a review from matzf January 20, 2026 08:28
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0cf9eb64e0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@komplexon3
Copy link
Copy Markdown
Contributor Author

I forgot to make one change: I had to rename a parameter in the logger because it was a keyword in JS. I still have to make the corresponding change for iOS and Android

@komplexon3 komplexon3 changed the title code dump from exploration repository Web MapSDK Jan 22, 2026
Copy link
Copy Markdown
Contributor

@maerki maerki left a comment

Choose a reason for hiding this comment

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

Also:

  • Merge Djinni
  • Remove Demos


if (textureHolder != nullptr) {
texturePointer = textureHolder->attachToGraphics();
// WEB_EXTRAS: generate mipmaps -- this is useful for sprites as icons can be
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Kommentar kann man entfernen

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ifdef EMSCRIPTEN

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nochmals besprochen; da das nur für die icons verwendet wird ist die mipmap ungefährlich. Wir lassen es jetzt doch mal drin und sehen ob das die performance auf android spürbar beeinflusst.

@komplexon3
Copy link
Copy Markdown
Contributor Author

line aliasing in a separate PR

@komplexon3
Copy link
Copy Markdown
Contributor Author

add build to ci

matzf added 4 commits February 2, 2026 09:22
- rename GlobalLoader to WebLoader, implement loader interface directly
  in WebLoader
- support request cancellation in WebLoader
- cleanup ImageValTextureHolder
ImageValTextureHolder is implemented in C++ and needs +c djinni bindings
so it can be passed through JS code.
@matzf
Copy link
Copy Markdown
Contributor

matzf commented Feb 2, 2026

Note: line anti-aliasing moved to #915.

matzf added 4 commits February 4, 2026 13:45
Exclude tessellation from build for web. Some functions used in the
impelementation (glPatchParameteri) are not available in emscripten GL.
We could work around this to make it compile anyway, but as tessellation
is not supported in WebGL anyway there is no point.
Pull in latest changes from playground repo.
@matzf matzf force-pushed the feature/web-map-sdk branch from 4bd3293 to ee6a9a8 Compare February 4, 2026 12:45
matzf added 4 commits February 4, 2026 14:01
Only include what is necessary.
Was implicitly enabled previously by setting the texture parameters on the
non-stretch variant. This could have led to inconsistent results, so
explicitly enable it here also. This also makes it clearer that it
would need to be _disabled_ if we don't want this here.
This ensures rebuild when globbed list changes; performance penality
appears negligible and its a lot more convenient.
@matzf matzf force-pushed the feature/web-map-sdk branch from 8a98fc2 to 51baf4d Compare February 4, 2026 14:41
@matzf matzf force-pushed the feature/web-map-sdk branch from 5ad798c to 7f67dfc Compare February 4, 2026 15:45
@matzf matzf force-pushed the feature/web-map-sdk branch from fe326c2 to 05fdb9c Compare February 4, 2026 20:48
// Bind the texture to this unit.
glBindTexture(GL_TEXTURE_2D, (unsigned int)texturePointer);

// Enable mipmap min filtering
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Web-only?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nein, auch Android bzw. Java. Wir haben das nochmals mit @maurhofer-ubique besprochen; das wird nur für die icons gebraucht, drum sollte das ungefährlich sein. Den genauen performance impact auf Android werden wir dann mal anschauen.

@komplexon3 komplexon3 merged commit 4f837e0 into main Feb 5, 2026
7 checks passed
@komplexon3 komplexon3 deleted the feature/web-map-sdk branch February 5, 2026 08:25
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.

3 participants