@kizmann/nano-ui 0.7.13 → 0.7.16

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.7.13",
3
+ "version": "0.7.16",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -246,7 +246,7 @@ export default {
246
246
  let events = {};
247
247
 
248
248
  Obj.each(setup['events'], (value, key) => {
249
- events[this.toEventKey(key)] = value;
249
+ events[this.toEventKey(key)] = this.solveContext(value);
250
250
  });
251
251
 
252
252
  let props = {};
@@ -1,4 +1,4 @@
1
- import { Arr, Map } from "@kizmann/pico-js";
1
+ import { Arr, Map, Any } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -44,6 +44,20 @@ export default {
44
44
  return { init: false, callbacks: [], tempMap: null };
45
45
  },
46
46
 
47
+ watch: {
48
+
49
+ lat()
50
+ {
51
+ Any.delay(() => this.tempMap.focusMarkers(), 100);
52
+ },
53
+
54
+ lng()
55
+ {
56
+ Any.delay(() => this.tempMap.focusMarkers(), 100);
57
+ }
58
+
59
+ },
60
+
47
61
  mounted()
48
62
  {
49
63
  this.tempMap = new Map(this.$el, {