public function enableGoogleMap($options = [])
    {
        $widget = GoogleMap::getInstance();

        $widget->options = $options;
        $this->setWidget($widget);

        PageHead::getInstance()
            ->addJsUrl('https://maps.googleapis.com/maps/api/js?key=' . Settings::get('google_api_key'));

        return $this;
    }
public function enableGoogleMap($options = [])
    {
        $widget = GoogleMap::getInstance();

        $widget->options = $options;
        $this->setWidget($widget);

        PageHead::getInstance()
            ->addJsUrl('https://maps.googleapis.com/maps/api/js?key=' . Settings::get('google_api_key'));

        return $this;
    }
public function enableGoogleMap ( $ options = [ ] ) { $ widget = GoogleMap :: getInstance ( ) ; $ widget -> options = $ options ; $ this -> setWidget ( $ widget ) ; PageHead :: getInstance ( ) -> addJsUrl ( 'https://maps.googleapis.com/maps/api/js?key=' . Settings :: get ( 'google_api_key' ) ) ; return $ this ; }
Enables google map place picker

@param array $options

@return $this
Enables google map place picker