isobit-ui 0.0.165 → 0.0.169
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 +15 -4
- 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.169
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3727,15 +3727,26 @@ var script$2 = {
|
|
|
3727
3727
|
me.map.addInteraction(translateIteraction);
|
|
3728
3728
|
}
|
|
3729
3729
|
|
|
3730
|
-
|
|
3731
|
-
|
|
3730
|
+
if (_typeof(f.style) == 'object') {
|
|
3731
|
+
feature.setStyle(f.style);
|
|
3732
|
+
} else feature.setStyle(me.styleMap[f.style ? f.style : 'default']);
|
|
3733
|
+
|
|
3732
3734
|
c = point.flatCoordinates;
|
|
3733
3735
|
c = c[0] < -10000 ? ol.proj.toLonLat(c) : c;
|
|
3734
3736
|
me.$emit('translateend', {
|
|
3735
3737
|
lon: c[0],
|
|
3736
3738
|
lat: c[1]
|
|
3737
3739
|
});
|
|
3738
|
-
|
|
3740
|
+
|
|
3741
|
+
if (f.layer != null) {
|
|
3742
|
+
var layer = map.getLayerById(f.layer);
|
|
3743
|
+
if (!layer) map.addLayer(new ol.layer.Vector({
|
|
3744
|
+
id: f.layer,
|
|
3745
|
+
source: new ol.source.Vector({
|
|
3746
|
+
features: new ol.Collection([feature])
|
|
3747
|
+
})
|
|
3748
|
+
}));else layer.getSource().addFeatures(feature);
|
|
3749
|
+
} else me.collection.push(feature);
|
|
3739
3750
|
|
|
3740
3751
|
if (cfg) {
|
|
3741
3752
|
console.log('animate');
|