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