Elementor\Widget_Google_Maps::_register_controls PHP Method

_register_controls() protected method

protected _register_controls ( )
    protected function _register_controls()
    {
        $this->start_controls_section('section_map', ['label' => __('Map', 'elementor')]);
        $default_address = __('London Eye, London, United Kingdom', 'elementor');
        $this->add_control('address', ['label' => __('Address', 'elementor'), 'type' => Controls_Manager::TEXT, 'placeholder' => $default_address, 'default' => $default_address, 'label_block' => true]);
        $this->add_control('zoom', ['label' => __('Zoom Level', 'elementor'), 'type' => Controls_Manager::SLIDER, 'default' => ['size' => 10], 'range' => ['px' => ['min' => 1, 'max' => 20]]]);
        $this->add_control('height', ['label' => __('Height', 'elementor'), 'type' => Controls_Manager::SLIDER, 'default' => ['size' => 300], 'range' => ['px' => ['min' => 40, 'max' => 1440]], 'selectors' => ['{{WRAPPER}} iframe' => 'height: {{SIZE}}{{UNIT}};']]);
        $this->add_control('prevent_scroll', ['label' => __('Prevent Scroll', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'yes', 'options' => ['' => __('No', 'elementor'), 'yes' => __('Yes', 'elementor')], 'selectors' => ['{{WRAPPER}} iframe' => 'pointer-events: none;']]);
        $this->add_control('view', ['label' => __('View', 'elementor'), 'type' => Controls_Manager::HIDDEN, 'default' => 'traditional']);
        $this->end_controls_section();
    }