Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@TimUx
Copy link
Owner

@TimUx TimUx commented Nov 6, 2025

Summary

  • split the alarm detail column and map column evenly when the map is visible
  • embed the Einsatzkarte with an OpenStreetMap iframe instead of the Leaflet CDN loader
  • update dashboard scripting to configure the embed, manage placeholders, and report map loading issues

Testing

  • not run (not requested)

https://chatgpt.com/codex/tasks/task_e_690c37002cec8320a21fb1a97752b196

@TimUx TimUx merged commit b451807 into main Nov 6, 2025
@TimUx TimUx deleted the codex/always-display-map-box-in-dashboard branch November 6, 2025 15:27
Copy link

@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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

setTimeout(() => {
map.invalidateSize();
}, 150);
showMapContent(embedUrl, location);

Choose a reason for hiding this comment

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

P1 Badge Avoid reloading map iframe on every poll

The new updateMap implementation always calls showMapContent and reassigns mapElement.src on every invocation. Because poll() runs every 15 s regardless of whether the coordinates change, an active alarm now forces the <iframe> to reload repeatedly, flashing the placeholder and re-fetching tiles each cycle. The previous Leaflet implementation simply updated the marker and map center without rebuilding the view. Consider caching the last embed URL or coordinates and skipping the reload when the location is unchanged to avoid noticeable flicker and unnecessary network traffic.

Useful? React with 👍 / 👎.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants