dosamigos\google\maps\Map::getStaticMapUrl PHP Метод

getStaticMapUrl() публичный Метод

public getStaticMapUrl ( string $maptype = 'mobile', string $hl = 'es' ) : string
$maptype string
$hl string
Результат string
    public function getStaticMapUrl($maptype = 'mobile', $hl = 'es')
    {
        $params = ['maptype' => $maptype, 'zoom' => $this->zoom, 'key' => @Yii::$app->params['googleMapsApiKey'] ?: null, 'center' => $this->center, 'size' => $this->width . 'x' . $this->height, 'hl' => $hl, 'markers' => $this->getMarkersForUrl()];
        $params = http_build_query($params);
        return 'http://maps.google.com/staticmap?' . $params;
    }