isobit-ui 0.0.168 → 0.0.172
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/dist/index.js +21 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.172
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3738,24 +3738,26 @@ var script$2 = {
|
|
|
3738
3738
|
lat: c[1]
|
|
3739
3739
|
});
|
|
3740
3740
|
|
|
3741
|
-
if (layer != null) {
|
|
3742
|
-
var layer = map.getLayerById(layer);
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3741
|
+
if (f.layer != null) {
|
|
3742
|
+
var layer = map.getLayerById(f.layer);
|
|
3743
|
+
|
|
3744
|
+
if (!layer) {
|
|
3745
|
+
map.addLayer(new ol.layer.Vector({
|
|
3746
|
+
id: f.layer,
|
|
3747
|
+
source: new ol.source.Vector({
|
|
3748
|
+
features: new ol.Collection([feature])
|
|
3749
|
+
})
|
|
3750
|
+
}));
|
|
3751
|
+
} else layer.getSource().addFeatures(feature);
|
|
3749
3752
|
} else me.collection.push(feature);
|
|
3750
3753
|
|
|
3751
3754
|
if (cfg) {
|
|
3752
|
-
console.log('animate');
|
|
3753
3755
|
console.log(feature.getGeometry().getCoordinates());
|
|
3754
|
-
me.map.getView().animate({
|
|
3756
|
+
me.map.getView().animate(Object.assign({
|
|
3755
3757
|
center: feature.getGeometry().getCoordinates(),
|
|
3756
3758
|
zoom: 17,
|
|
3757
3759
|
duration: 500
|
|
3758
|
-
});
|
|
3760
|
+
}, cfg));
|
|
3759
3761
|
}
|
|
3760
3762
|
|
|
3761
3763
|
return feature;
|
|
@@ -4044,7 +4046,8 @@ var __vue_component__$2 = /*#__PURE__*/__vue_normalize____default['default']({
|
|
|
4044
4046
|
//
|
|
4045
4047
|
var script$1 = {
|
|
4046
4048
|
props: {
|
|
4047
|
-
icon: String
|
|
4049
|
+
icon: String,
|
|
4050
|
+
visible: null
|
|
4048
4051
|
},
|
|
4049
4052
|
computed: {
|
|
4050
4053
|
slotPassed: function slotPassed() {
|
|
@@ -4089,6 +4092,9 @@ var script$1 = {
|
|
|
4089
4092
|
methods: {
|
|
4090
4093
|
enter: function enter(e) {
|
|
4091
4094
|
if (e.x) this.$emit('click', e);
|
|
4095
|
+
},
|
|
4096
|
+
toggle: function toggle() {
|
|
4097
|
+
this.visible = !!!this.visible;
|
|
4092
4098
|
}
|
|
4093
4099
|
}
|
|
4094
4100
|
};
|
|
@@ -4108,8 +4114,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
4108
4114
|
directives: [{
|
|
4109
4115
|
name: "show",
|
|
4110
4116
|
rawName: "v-show",
|
|
4111
|
-
value: _vm.ready,
|
|
4112
|
-
expression: "ready"
|
|
4117
|
+
value: _vm.ready && _vm.visible,
|
|
4118
|
+
expression: "ready&&visible"
|
|
4113
4119
|
}],
|
|
4114
4120
|
staticClass: "ol-unselectable ol-control"
|
|
4115
4121
|
}, [_vm._t("default"), _vm._v(" "), !_vm.slotUsed ? _c('button', {
|