isobit-ui 0.0.169 → 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.
- package/dist/index.js +11 -7
- 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.170
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3740,12 +3740,16 @@ var script$2 = {
|
|
|
3740
3740
|
|
|
3741
3741
|
if (f.layer != null) {
|
|
3742
3742
|
var layer = map.getLayerById(f.layer);
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
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);
|
|
3749
3753
|
} else me.collection.push(feature);
|
|
3750
3754
|
|
|
3751
3755
|
if (cfg) {
|