isobit-ui 0.0.161 → 0.0.165
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 +28 -11
- 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.165
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -43,7 +43,6 @@ var __$_require_fs_images_triangle_down_svg____default = /*#__PURE__*/_interopDe
|
|
|
43
43
|
//
|
|
44
44
|
//
|
|
45
45
|
//
|
|
46
|
-
//
|
|
47
46
|
var script$h = {
|
|
48
47
|
props: {
|
|
49
48
|
value: {
|
|
@@ -389,7 +388,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
389
388
|
staticStyle: {
|
|
390
389
|
"padding": "5px"
|
|
391
390
|
}
|
|
392
|
-
}, [_vm._v("No existen resultados.")]) : _vm._e()])])
|
|
391
|
+
}, [_vm._v("No existen resultados.")]) : _vm._e()])])], 1);
|
|
393
392
|
};
|
|
394
393
|
|
|
395
394
|
var __vue_staticRenderFns__$h = [];
|
|
@@ -3637,6 +3636,22 @@ var __vue_component__$3 = /*#__PURE__*/__vue_normalize____default['default']({
|
|
|
3637
3636
|
staticRenderFns: __vue_staticRenderFns__$3
|
|
3638
3637
|
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
3639
3638
|
|
|
3639
|
+
function _typeof(obj) {
|
|
3640
|
+
"@babel/helpers - typeof";
|
|
3641
|
+
|
|
3642
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
3643
|
+
_typeof = function (obj) {
|
|
3644
|
+
return typeof obj;
|
|
3645
|
+
};
|
|
3646
|
+
} else {
|
|
3647
|
+
_typeof = function (obj) {
|
|
3648
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3649
|
+
};
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
return _typeof(obj);
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3640
3655
|
//
|
|
3641
3656
|
//
|
|
3642
3657
|
//
|
|
@@ -3671,24 +3686,25 @@ var script$2 = {
|
|
|
3671
3686
|
addFeature: function addFeature(f, cfg) {
|
|
3672
3687
|
f = f ? f : {};
|
|
3673
3688
|
var me = this,
|
|
3674
|
-
|
|
3689
|
+
point,
|
|
3675
3690
|
map = me.map;
|
|
3676
3691
|
|
|
3677
3692
|
if (f.lon && f.lat) {
|
|
3678
3693
|
var c = [f.lon, f.lat];
|
|
3679
|
-
|
|
3694
|
+
point = new ol.geom.Point(c[0] > -100 ? ol.proj.fromLonLat(c) : c);
|
|
3680
3695
|
} else {
|
|
3681
|
-
|
|
3682
|
-
p = new ol.geom.Point(map.getView().getCenter());
|
|
3696
|
+
point = new ol.geom.Point(map.getView().getCenter());
|
|
3683
3697
|
}
|
|
3684
3698
|
|
|
3685
|
-
c =
|
|
3699
|
+
c = point.flatCoordinates;
|
|
3686
3700
|
var c = c[0] < -10000 ? ol.proj.toLonLat(c) : c;
|
|
3687
3701
|
me.$emit('translateend', {
|
|
3688
3702
|
lon: c[0],
|
|
3689
3703
|
lat: c[1]
|
|
3690
3704
|
});
|
|
3691
|
-
|
|
3705
|
+
f.geometry = point;
|
|
3706
|
+
console.log(f);
|
|
3707
|
+
var feature = new ol.Feature(f);
|
|
3692
3708
|
feature.data = f;
|
|
3693
3709
|
|
|
3694
3710
|
if (f.draggable) {
|
|
@@ -3711,8 +3727,9 @@ var script$2 = {
|
|
|
3711
3727
|
me.map.addInteraction(translateIteraction);
|
|
3712
3728
|
}
|
|
3713
3729
|
|
|
3714
|
-
|
|
3715
|
-
|
|
3730
|
+
console.log('type=' + _typeof(f.style));
|
|
3731
|
+
if (!f.style || typeof f.style == 'string') feature.setStyle(me.styleMap[f.style ? f.style : 'default']);
|
|
3732
|
+
c = point.flatCoordinates;
|
|
3716
3733
|
c = c[0] < -10000 ? ol.proj.toLonLat(c) : c;
|
|
3717
3734
|
me.$emit('translateend', {
|
|
3718
3735
|
lon: c[0],
|