geojs 1.10.4 → 1.10.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # GeoJS Change Log
2
2
 
3
+ ## Version 1.10.5
4
+
5
+ ### Bug Fixes
6
+
7
+ - Guard converting an empty polygon ([#1232](../../pull/1232))
8
+
9
+ ## Version 1.10.4
10
+
11
+ ### Bug Fixes
12
+
13
+ - Guard accessing a quad feature ([#1231](../../pull/1231))
14
+
3
15
  ## Version 1.10.3
4
16
 
5
17
  ### Performance improvements
package/geo.js CHANGED
@@ -209,7 +209,11 @@ var annotation = function annotation(type, args) {
209
209
  */
210
210
 
211
211
 
212
- this._exit = function () {};
212
+ this._exit = function () {
213
+ if (m_this.layer()) {
214
+ m_this.layer().geoOff(geo_event.mousemove, m_this._cursorHandleMousemove);
215
+ }
216
+ };
213
217
  /**
214
218
  * Get a unique annotation id.
215
219
  *
@@ -921,6 +925,10 @@ var annotation = function annotation(type, args) {
921
925
  this.coordinates = function (gcs) {
922
926
  var coord = m_this._coordinates() || [];
923
927
 
928
+ if (!coord.length && (!coord.outer || !coord.outer.length)) {
929
+ coord = [];
930
+ }
931
+
924
932
  if (m_this.layer()) {
925
933
  var map = m_this.layer().map();
926
934
  gcs = gcs === null ? map.gcs() : gcs === undefined ? map.ingcs() : gcs;
@@ -2892,7 +2900,7 @@ var polygonAnnotation = function polygonAnnotation(args) {
2892
2900
  return result;
2893
2901
  }
2894
2902
 
2895
- if (coord.length < 3) {
2903
+ if (coord.length < 3 || !coord.map) {
2896
2904
  return [];
2897
2905
  }
2898
2906
 
@@ -23323,6 +23331,16 @@ var object = function object() {
23323
23331
 
23324
23332
  return m_this;
23325
23333
  };
23334
+ /**
23335
+ * Report the current event handlers.
23336
+ *
23337
+ * @returns {object} An object with all of the event handlers.
23338
+ */
23339
+
23340
+
23341
+ this._eventHandlers = function () {
23342
+ return m_eventHandlers;
23343
+ };
23326
23344
  /**
23327
23345
  * Free all resources and destroy the object.
23328
23346
  */
@@ -27869,7 +27887,7 @@ module.exports = sceneObject;
27869
27887
  * @constant
27870
27888
  * @type {string}
27871
27889
  */
27872
- module.exports = "3e924c64da3ad1b47324b2d5106e85db1bf1d809";
27890
+ module.exports = "7f57d37e7c28f7be33fbb0081cbd16304d8dffd5";
27873
27891
 
27874
27892
  /***/ }),
27875
27893
 
@@ -41029,7 +41047,7 @@ module.exports = vectorFeature;
41029
41047
  * @constant
41030
41048
  * @type {string}
41031
41049
  */
41032
- module.exports = "1.10.4";
41050
+ module.exports = "1.10.5";
41033
41051
 
41034
41052
  /***/ }),
41035
41053
 
package/geo.lean.js CHANGED
@@ -209,7 +209,11 @@ var annotation = function annotation(type, args) {
209
209
  */
210
210
 
211
211
 
212
- this._exit = function () {};
212
+ this._exit = function () {
213
+ if (m_this.layer()) {
214
+ m_this.layer().geoOff(geo_event.mousemove, m_this._cursorHandleMousemove);
215
+ }
216
+ };
213
217
  /**
214
218
  * Get a unique annotation id.
215
219
  *
@@ -921,6 +925,10 @@ var annotation = function annotation(type, args) {
921
925
  this.coordinates = function (gcs) {
922
926
  var coord = m_this._coordinates() || [];
923
927
 
928
+ if (!coord.length && (!coord.outer || !coord.outer.length)) {
929
+ coord = [];
930
+ }
931
+
924
932
  if (m_this.layer()) {
925
933
  var map = m_this.layer().map();
926
934
  gcs = gcs === null ? map.gcs() : gcs === undefined ? map.ingcs() : gcs;
@@ -2892,7 +2900,7 @@ var polygonAnnotation = function polygonAnnotation(args) {
2892
2900
  return result;
2893
2901
  }
2894
2902
 
2895
- if (coord.length < 3) {
2903
+ if (coord.length < 3 || !coord.map) {
2896
2904
  return [];
2897
2905
  }
2898
2906
 
@@ -23323,6 +23331,16 @@ var object = function object() {
23323
23331
 
23324
23332
  return m_this;
23325
23333
  };
23334
+ /**
23335
+ * Report the current event handlers.
23336
+ *
23337
+ * @returns {object} An object with all of the event handlers.
23338
+ */
23339
+
23340
+
23341
+ this._eventHandlers = function () {
23342
+ return m_eventHandlers;
23343
+ };
23326
23344
  /**
23327
23345
  * Free all resources and destroy the object.
23328
23346
  */
@@ -27869,7 +27887,7 @@ module.exports = sceneObject;
27869
27887
  * @constant
27870
27888
  * @type {string}
27871
27889
  */
27872
- module.exports = "3e924c64da3ad1b47324b2d5106e85db1bf1d809";
27890
+ module.exports = "7f57d37e7c28f7be33fbb0081cbd16304d8dffd5";
27873
27891
 
27874
27892
  /***/ }),
27875
27893
 
@@ -41029,7 +41047,7 @@ module.exports = vectorFeature;
41029
41047
  * @constant
41030
41048
  * @type {string}
41031
41049
  */
41032
- module.exports = "1.10.4";
41050
+ module.exports = "1.10.5";
41033
41051
 
41034
41052
  /***/ }),
41035
41053