geoproject-app/public/site/plugins/map-editor/src/index.js
isUnknown dc84ff63a2
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s
feat: add map-editor plugin with interactive OSM map and markers
Implement Phase 1 of custom Kirby plugin for editing interactive maps:
- OpenStreetMap base layer with MapLibre GL JS
- Click to add markers, drag to reposition
- Marker list sidebar with selection and deletion
- Auto-save with debounce (YAML format)
- Add marker button creates marker at current map center
- Max 50 markers per map (configurable)
- Clean UI with marker counter

Blueprint updated to use new map-editor field type instead of placeholder.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-28 15:43:23 +01:00

7 lines
154 B
JavaScript

import MapEditor from "./components/field/MapEditor.vue";
window.panel.plugin("geoproject/map-editor", {
fields: {
"map-editor": MapEditor
}
});