@@ -77,6 +77,13 @@ with optional reverse geocoding of address components.
77
77
78
78
![ Geocomplete Field] ( images/form-geocode.png )
79
79
80
+ ### Infolist Field
81
+
82
+ The ** MapEntry** Infolist field displays a (read only) map showing a single pin. This is currently WIP, features
83
+ and functionality (like KML layers, GeoJSON drawings, etc) to be added soon.
84
+
85
+ ![ Infolist Field] ( images/infolist.png )
86
+
80
87
### Map Widget
81
88
82
89
The ** MapWidget** displays a filterable set of locations from a model, with
@@ -651,6 +658,28 @@ provide your own closure for handling reverse geocode data, as described in the
651
658
The Geocomplete field also offers many of the same features as Filament's TextInput,
652
659
like prefixes, suffixes, placeholders, etc.
653
660
661
+ ### Infolist Field
662
+
663
+ The Infolist field displays a read-only map with a single field showing the field's location.
664
+
665
+ ``` php
666
+ use Cheesegrits\FilamentGoogleMaps\Infolists\MapEntry;
667
+
668
+ //
669
+
670
+ public function infolist(Infolist $infolist): Infolist
671
+ {
672
+ return $infolist->schema([
673
+ TextEntry::make('street'),
674
+ TextEntry::make('city'),
675
+ TextEntry::make('state'),
676
+ TextEntry::make('zip'),
677
+ MapEntry::make('location')
678
+ ->columnSpan(2),
679
+ ]);
680
+ }
681
+ ```
682
+
654
683
### Form WidgetMap Field
655
684
656
685
If you need to display multiple markers in a map on a form, you can use the WidgetMap field. This is a cut down version
0 commit comments