@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
package/src/map/src/map/map.js
CHANGED
@@ -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, {
|