@kizmann/pico-js 0.3.36 → 0.3.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/library/map.js +5 -0
package/package.json
CHANGED
package/src/library/map.js
CHANGED
@@ -29,6 +29,7 @@ export default class Map
|
|
29
29
|
if ( ! global.google ) {
|
30
30
|
return console.error('Google Maps is not loaded.');
|
31
31
|
}
|
32
|
+
|
32
33
|
let center = Obj.only(options, ['lat', 'lng']);
|
33
34
|
|
34
35
|
if ( ! Obj.has(options, 'styles') ) {
|
@@ -50,6 +51,10 @@ export default class Map
|
|
50
51
|
|
51
52
|
static setMarkerStyle(key, style = {}, extra = {})
|
52
53
|
{
|
54
|
+
if ( ! global.google ) {
|
55
|
+
return console.error('Google Maps is not loaded.');
|
56
|
+
}
|
57
|
+
|
53
58
|
if ( ! Obj.has(style, 'default') ) {
|
54
59
|
return console.error('Marker style requires default property')
|
55
60
|
}
|