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() {