Skip to content

v0.4.0

Choose a tag to compare

@merelacato merelacato released this 06 Jul 09:07
· 5 commits to main since this release
75c0f0c

[0.4.0] - 2026-06-22

Large change: the Streetmap block can now be used multiple times on a single page.

Added

  • Support for multiple owc-openkaarten/streetmap blocks on one page (multiple: true). Each instance renders its own map, datalayer selection, filters, search field and tooltips independently.
  • window.openkaarten.maps registry containing every map on the page, plus an optional map target argument on window.openkaarten.addMarker() and window.openkaarten.clearLayer() to address a specific map. Backwards compatible: window.openkaarten.map keeps pointing at the most recently registered map.
  • Filterable proxy timeout openkaarten_frontend_plugin_proxy_timeout (default 15s) for external dataset requests.

Changed

  • Proxy datasets endpoint now resolves same-origin requests internally via rest_do_request() instead of an HTTP loopback. This prevents PHP worker deadlocks and timeouts (cURL error 28) when several maps load on one page.
  • All previously global DOM ids and queries are now scoped per map instance (map container, search input, filter aria references, filter checkbox ids, marker highlighting and tooltip focus), so multiple maps no longer interfere with each other.
  • Editor: the "Selected datalayers" preview is rendered per block instead of through a shared DOM id, so selecting datalayers in a second block now updates that block.
  • Polygon selection/highlight state is scoped per map instance.