Encore\Admin\Form\Field\Map::__construct PHP Method

__construct() public method

public __construct ( $column, $arguments )
    public function __construct($column, $arguments)
    {
        $this->column['lat'] = $column;
        $this->column['lng'] = $arguments[0];
        array_shift($arguments);
        $this->label = $this->formatLabel($arguments);
        $this->id = $this->formatId($this->column);
        /*
         * Google map is blocked in mainland China
         * people in China can use Tencent map instead(;
         */
        if (config('app.locale') == 'zh_CN') {
            $this->useTencentMap();
        } else {
            $this->useGoogleMap();
        }
    }