Releases: OpenWebconcept/plugin-openkaarten-frontend-plugin
Releases · OpenWebconcept/plugin-openkaarten-frontend-plugin
Release list
v0.4.2
v0.4.1
What's Changed
- feat: add ToggleControl to set filters open or closed by default by @YvetteNikolov in #104
- refactor: drive primary color from single CSS variable source of truth by @YvetteNikolov in #105
Full Changelog: 0.4.0...0.4.1
v0.4.0
[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/streetmapblocks on one page (multiple: true). Each instance renders its own map, datalayer selection, filters, search field and tooltips independently. window.openkaarten.mapsregistry containing every map on the page, plus an optionalmaptarget argument onwindow.openkaarten.addMarker()andwindow.openkaarten.clearLayer()to address a specific map. Backwards compatible:window.openkaarten.mapkeeps 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
ariareferences, 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.
v0.3.4
What's Changed
- No height tooltipcard header when no icon shown
v0.3.3
What's Changed
Added
- New shared TooltipContent.vue component that handles layout rendering (title/meta/text/image/button) in one place for both the list view and the map tooltips
(src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/TooltipContent.vue).
*' Support for multiple images per item in BaseListCard (iterates over all image layouts in tooltipArray instead of a single image prop).
Changed
- Refactored BaseListCard.vue: now accepts a tooltipArray + datasetTitle instead of separate title / address / description / image props, and delegates rendering to
TooltipContent. - Updated BaseTooltipCard.vue, ListView.vue and TheMap.vue to work with the new data/component structure.
- Updated make-tooltip-card.js for the new prop shape.
- Polished list card styling: responsive breakpoint moved from 768px to 991px, image container is now a flex column with gap to support multiple images, width/height replaced with
logical properties (inline-size/block-size), and CSS selectors consistently ordered.
v0.3.2
What's Changed
- Feature/AS-22436 only show icon on tooltip if set.
v0.3.1
What's Changed
Version bumps
- 0.2.2 → 0.2.3 → 0.2.4 → 0.2.5 → 0.2.6 → 0.3.0 → 0.3.1 (current)
- New constant OPENKAARTEN_FRONTEND_URL added in openkaarten-frontend-plugin.php:48
New features
JavaScript API for external integration (large new section in README.md)
- Global window.openkaarten API with map, addMarker(options), clearLayer(layerName?)
- Custom openkaarten:map-ready event
- Per-map API, later simplified to a single map instance
- New utility map-window-api.js (+116 lines)
Map and UI redesign
- Completely new styling (style.scss +104 lines) with new colors and hover states
- BaseFilters.vue rewritten: filters auto-open with 1 datalayer, "delete all filters" link added, confirm button removed
- BaseListCard.vue, BaseTooltipCard.vue, ListView.vue, App.vue updated
- New component: BaseIcon.vue
- Tooltip now switches when selecting overlapping polygons
Improved map behavior
- Map now initializes even without datasets (AS-21249)
- Default settings pulled from the backend plugin
- Better zoom/bounds calculation based on added markers (AS-22299) — new calculate-bounds.js
- disableClusteringAtZoom set to 15
- Fallback marker icon (make-marker-icon.js significantly reworked)
- Icons are now cached, fetched via fetch-and-process-svg.js
- Highlight layer for selected polygons (AS-20035)
- Custom colors extended to polygons (AS-20050)
- Separate polygon selection (selected-polygon.js, selected-marker.js)
Icons
- Full opengemeenten-iconenset added (Fill + Line + Regular variants) — hundreds of SVG files
- Fixes for iconBaseUrl and CORS on SVGs
Tooling & dependencies
- fs and path removed from node packages (security)
- Dependencies cleaned up, loaded via Packagist
- NPM commands for i18n management added
- POT/PO/MO files updated, --no-purge added to make-json
- Removed error message when MO file is missing (includes/class-i18n.php)
- README expanded with API documentation and reformatted
Bugfixes
- Early output that was breaking the website
- Double map initialization
- Contact requests no longer routed through info@acato.nl
- Various post-merge build fixes
Extend custom color to polygons
Merge pull request #68 from OpenWebconcept/feature/AS-20050 AS-20050 Extend custom color to polygons.
0.2.2
Set 'disableClusteringAtZoom' option to 15
What's Changed
- 'disableClusteringAtZoom' option to 15 by @merelacato in #67
Full Changelog: 0.2.1...0.2.2