Skip to content

⚒️🎨 Migrate to MapLibre#5962

Merged
AndyScherzinger merged 15 commits intomasterfrom
feat/noid/migrateToMapLibre
Mar 18, 2026
Merged

⚒️🎨 Migrate to MapLibre#5962
AndyScherzinger merged 15 commits intomasterfrom
feat/noid/migrateToMapLibre

Conversation

@AndyScherzinger
Copy link
Copy Markdown
Member

@AndyScherzinger AndyScherzinger commented Mar 12, 2026

  • replace OSMdroid with MapLibre and re-implement/preserve the features (current location, zoom, etc)
  • ensure geoActivity result is preserved upon device rotation or any other non-location-changing action
  • migrate from raster to vector tiles with nice color schemes for dark/light. You can use maputnik to load the json themes for display and editing
  • Implement attribution / info

🖼️ Screenshots

🏚️ Before 🏡 After
old_light new_light2
old_dark new_dark2

🚧 TODO

  • review & merge

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@AndyScherzinger AndyScherzinger requested a review from mahibi March 12, 2026 20:34
@AndyScherzinger AndyScherzinger added the 2. developing Work in progress label Mar 12, 2026
@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch from eef1c13 to cd08216 Compare March 14, 2026 13:43
@AndyScherzinger AndyScherzinger added this to the 23.1.0 milestone Mar 14, 2026
@AndyScherzinger AndyScherzinger changed the title feat: Migrate to MapLibre ⚒️🎨 Migrate to MapLibre Mar 14, 2026
@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch 5 times, most recently from e13e9f9 to c13c1da Compare March 15, 2026 10:22
@AndyScherzinger AndyScherzinger marked this pull request as ready for review March 15, 2026 10:55
@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch from f890949 to 395700d Compare March 15, 2026 11:07
@AndyScherzinger AndyScherzinger added 3. to review Waiting for reviews design Related to the design and removed 2. developing Work in progress labels Mar 15, 2026
@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch from 4e5bb53 to 7e7b57c Compare March 15, 2026 16:55
Copy link
Copy Markdown
Contributor

@sowjanyakch sowjanyakch left a comment

Choose a reason for hiding this comment

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

  1. Search for a location e.g., "paris" and then press enter. Rotate the device to landscape, location is retained. Rotate the device back to portrait and then share location, UI is unresponsive.

  2. Search for a location and then press enter. The map points to the selected location but under Share this location button at the bottom, location details are not updated (in your screenshot, I see the location details).

64357

@AndyScherzinger
Copy link
Copy Markdown
Member Author

AndyScherzinger commented Mar 16, 2026

@sowjanyakch your screenshot points to a code base before all of my changes, because

  • tiles are rastered nit vector
  • shows a scalebar, yet hidden in my update + I show an info button

So you are lacking most of the commits and hence fixes and improvements beyond the pure lib migration.

I just rebased due to latest changes on main branch, so you might want to do a fresh checkout. In short, if the map doesn't look like the screenshots on the after-column color- and sharpness-wise. Than it is not the latest code of this branch and PR.

@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch from 7e7b57c to a3e90b9 Compare March 16, 2026 22:02
AI-assistant: Claude Code v2.1.74 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Claude Code v2.1.74 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
…y shorten code

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
(position change is smaller than COORDINATE_EPSILON translating to 0,11m)

AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AI-assistant: Copilot 1.0.5 (Claude Sonnet 4.6)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger force-pushed the feat/noid/migrateToMapLibre branch from ae45f60 to e844f5b Compare March 18, 2026 06:17
@github-actions
Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings9898
Errors00

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1010
Dodgy code5454
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total8181

@github-actions
Copy link
Copy Markdown
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5962.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@mahibi
Copy link
Copy Markdown
Collaborator

mahibi commented Mar 18, 2026

Search for a location and then press enter. The map points to the selected location but under Share this location button at the bottom, location details are not updated (in your screenshot, I see the location details).

i could bet the map was moved after coming back from the geocoding screen? As soon as the map is moved the location details are gone until the new place is actually shared. This is done to not stress the server with too many geocoding queries as we are using it for free..

@AndyScherzinger
Copy link
Copy Markdown
Member Author

This is done to not stress the server with too many geocoding queries as we are using it for free..

Yes, this. Technically we are only allowed 1 request per second overall (as in all clients together!)

@AndyScherzinger AndyScherzinger merged commit 0e489ef into master Mar 18, 2026
17 of 18 checks passed
@AndyScherzinger AndyScherzinger deleted the feat/noid/migrateToMapLibre branch March 18, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews design Related to the design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants