Skip to content

Commit a1720ae

Browse files
committed
Use apiKey value
1 parent 533cb70 commit a1720ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

View/Helper/GoogleMapV3Helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ class GoogleMapV3Helper extends AppHelper {
110110
/**
111111
* Default settings
112112
*
113-
* Set the key via Configure Google.key in your private (not commited) config file.
113+
* Set the key via Configure Google.apiKey in your private (not commited) config file.
114114
*
115115
* @var array
116116
*/
117117
protected $_defaultOptions = [
118-
'key' => '', // API Key, required since 2018
118+
'apiKey' => '', // API Key, required since 2018
119119
'zoom' => null, // global, both map and staticMap
120120
'lat' => null, // global, both map and staticMap
121121
'lng' => null, // global, both map and staticMap
@@ -221,8 +221,8 @@ public function __construct($View = null, $config = []) {
221221
$google = (array)Configure::read('Google');
222222
$defaults = $this->_defaultOptions;
223223

224-
if (!empty($google['key'])) {
225-
$defaults['key'] = $google['key'];
224+
if (!empty($google['apiKey'])) {
225+
$defaults['key'] = $google['apiKey'];
226226
}
227227

228228
if (!empty($google['api'])) {

0 commit comments

Comments
 (0)