isobit-ui 0.0.166 → 0.0.170

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.166
2
+ * isobit-ui v0.0.170
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3737,7 +3737,20 @@ var script$2 = {
3737
3737
  lon: c[0],
3738
3738
  lat: c[1]
3739
3739
  });
3740
- me.collection.push(feature);
3740
+
3741
+ if (f.layer != null) {
3742
+ var layer = map.getLayerById(f.layer);
3743
+
3744
+ if (!layer) {
3745
+ console.log('agregar el feature en layer final');
3746
+ map.addLayer(new ol.layer.Vector({
3747
+ id: f.layer,
3748
+ source: new ol.source.Vector({
3749
+ features: new ol.Collection([feature])
3750
+ })
3751
+ }));
3752
+ } else layer.getSource().addFeatures(feature);
3753
+ } else me.collection.push(feature);
3741
3754
 
3742
3755
  if (cfg) {
3743
3756
  console.log('animate');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.166",
3
+ "version": "0.0.170",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",