Added
- 🔒 Read-only mode support - Implement
CanBeReadOnlyon Pinpoint form component (#18 by
@gpibarra)- New
readOnly()method to make the map
display-only (no drag, no click, no search) - New
readOnlyOn()method to restrict editing on
specific operations (e.g.,readOnlyOn('view')) - Supports closures for conditional read-only:
readOnly(fn () => !auth()->user()->can('edit')) - Works with both Google Maps and Leaflet providers
- Map remains pannable and zoomable for viewing
- Radius circle is displayed but not editable when
read-only - Search box, "Use My Location" button, and helper
text are hidden when read-only
- New
Improved
- 🎨 Theme-compatible CSS - Replaced all hardcoded
CSS colors with Filament CSS variables (#20 by
@RibesAlexandre)- Search input, dropdown, button, and map border now
usevar(--gray-*)andvar(--primary-*)instead of
hardcoded hex values - Plugin automatically adapts to custom Filament
themes and color palettes (e.g., Slate, Zinc, custom
primary colors) - Radius circle color now follows the configured
primary theme color - Replaced non-compiling Tailwind utility classes
with theme-aware CSS classes - Removed all
!importantoverrides from dark mode
styles
- Search input, dropdown, button, and map border now