isobit-ui 0.0.156 → 0.0.157

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 +12 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.156
2
+ * isobit-ui v0.0.157
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3872,7 +3872,7 @@ var script$2 = {
3872
3872
  });
3873
3873
  }
3874
3874
 
3875
- map.getView().getZoom();
3875
+ var currZoom = map.getView().getZoom();
3876
3876
  map.on('moveend', function (evt) {
3877
3877
  if (_this.movingCompleted) {
3878
3878
  _this.movingCompleted(m);
@@ -3880,12 +3880,16 @@ var script$2 = {
3880
3880
  _this.movingCompleted = null;
3881
3881
  } //console.log(evt);
3882
3882
 
3883
- /*var newZoom = map.getView().getZoom();
3884
- if (currZoom != newZoom) {
3885
- m.$emit("zoom",newZoom);
3886
- currZoom = newZoom;
3887
- }
3888
- console.log('vue.map-moveend '+map.getView().getCenter());
3883
+
3884
+ var newZoom = map.getView().getZoom();
3885
+
3886
+ if (currZoom != newZoom) {
3887
+ m.$emit("zoom", newZoom);
3888
+ currZoom = newZoom; //se debe avisar a cada overlay del cambio de posicion
3889
+
3890
+ console.log(m.$children);
3891
+ }
3892
+ /*console.log('vue.map-moveend '+map.getView().getCenter());
3889
3893
  if (!m.moved) {
3890
3894
  var center = map.getView().getCenter();
3891
3895
  history.replaceState({id: 'homepage'}, '', document.location.pathname + '?' + _.param('location', center[0] + '/' + center[1] + '/' + map.getView().getZoom()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.156",
3
+ "version": "0.0.157",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",