geoproject-app/public
isUnknown cc44a68e66
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s
fix: implement form-based coordinate sync for single mode map
Fixed marker display and centering in single mode (marker pages) by
changing from props-based to form-based coordinate synchronization.

Issues Fixed:
- Kirby blueprint query syntax {{ page.field }} passed literal strings
  instead of values to component props
- Invalid coordinates (NaN, NaN) caused map initialization errors
- Marker not displaying in marker page position tab
- Map not centering on marker location

Solution:
- Remove latitude/longitude props from marker.yml blueprint
- Read coordinates directly from Panel form fields via DOM
- Add event listeners to sync form changes with map
- Bidirectional sync: drag marker → updates form fields
- Robust coordinate validation (check for NaN, null, 0)

Changes:
- MapEditor.vue: Add form field reading and event listeners
- MapEditor.vue: Replace props-based coords with reactive refs
- MapEditor.vue: Update marker drag handler to modify form inputs
- marker.yml: Remove non-functional query string props
- routes.php: Use data() instead of body() for all routes

Single Mode Flow:
1. Component reads latitude/longitude from form inputs on mount
2. Creates marker and centers map on valid coordinates
3. Form changes → updates marker position
4. Marker drag → updates form fields (triggers save on user action)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-29 14:17:01 +01:00
..
assets fix color picker z-index (always above) 2026-01-09 17:03:11 +01:00
content refactor: rename carte template to map for consistency 2026-01-28 14:07:40 +01:00
kirby init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
media init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
site fix: implement form-based coordinate sync for single mode map 2026-01-29 14:17:01 +01:00
vendor feat: add custom CSS save system with dual-editor interface 2026-01-09 13:39:25 +01:00
.editorconfig init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
.gitignore untrack content 2026-01-09 16:22:56 +01:00
.htaccess init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
composer.json feat: add custom CSS save system with dual-editor interface 2026-01-09 13:39:25 +01:00
composer.lock feat: add custom CSS save system with dual-editor interface 2026-01-09 13:39:25 +01:00
index.php init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
README.md init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00

Kirby: the CMS that adapts to any project, loved by developers and editors alike. The Plainkit is a minimal Kirby setup with the basics you need to start a project from scratch. It is the ideal choice if you are already familiar with Kirby and want to start step-by-step.

You can learn more about Kirby at getkirby.com.

Try Kirby for free

You can try Kirby and the Plainkit on your local machine or on a test server as long as you need to make sure it is the right tool for your next project. … and when youre convinced, buy your license.

Get going

Read our guide on how to get started with Kirby.

You can download the latest version of the Plainkit. If you are familiar with Git, you can clone Kirby's Plainkit repository from Github.

git clone https://github.com/getkirby/plainkit.git

What's Kirby?

  • getkirby.com Get to know the CMS.
  • Try it Take a test ride with our online demo. Or download one of our kits to get started.
  • Documentation Read the official guide, reference and cookbook recipes.
  • Issues Report bugs and other problems.
  • Feedback You have an idea for Kirby? Share it.
  • Forum Whenever you get stuck, don't hesitate to reach out for questions and support.
  • Discord Hang out and meet the community.
  • Mastodon Spread the word.
  • Bluesky Spread the word.

© 2009 Bastian Allgeier getkirby.com · License agreement