We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c496d3 commit 5a1f44dCopy full SHA for 5a1f44d
src/GoogleMapField.php
@@ -133,13 +133,22 @@ public function setupChildren() {
133
'Bounds',
134
$this->recordFieldData('Bounds')
135
)->addExtraClass('googlemapfield-boundsfield no-change-track mb-2');
136
- $this->children = new FieldList(
+
137
+ $this->children = new FieldList(
138
$this->latField,
139
$this->lngField,
140
$this->zoomField,
141
$this->boundsField
142
);
143
144
+ if($this->options['show_search_box']) {
145
+ $this->children->push(
146
+ TextField::create('Search')
147
+ ->addExtraClass('googlemapfield-searchfield')
148
+ ->setAttribute('placeholder', 'Search for a location')
149
+ );
150
+ }
151
152
return $this->children;
153
}
154
0 commit comments