@kizmann/pico-js 0.3.36 → 0.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -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
  }