From b266987be50269719a9a35b6445c46f43ee2639f Mon Sep 17 00:00:00 2001 From: Antony Date: Tue, 5 Apr 2022 14:04:26 -0300 Subject: [PATCH] add `renderLocationPicker` --- CoordinatesPicker.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CoordinatesPicker.php b/CoordinatesPicker.php index e20796a..277f2ad 100644 --- a/CoordinatesPicker.php +++ b/CoordinatesPicker.php @@ -122,14 +122,18 @@ public function run() $widgetOptions = $this->options; unset($widgetOptions['id']); + + $this->renderLocationPicker($widgetId, $widgetOptions); + } + + protected function renderLocationPicker($widgetId, $widgetOptions) { echo LocationPickerWidget::widget([ 'id' => $widgetId, - 'key' => $this->key , + 'key' => $this->key, 'options' => $widgetOptions, 'clientOptions' => $this->clientOptions, 'clientEvents' => $this->clientEvents, ]); - } private function _setClientLocation() {