geojs 1.10.3 → 1.10.6
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 +12 -0
- package/geo.js +35 -8
- package/geo.lean.js +35 -8
- package/geo.lean.min.js +2 -2
- package/geo.min.js +2 -2
- package/package.json +1 -1
- package/src/annotation/annotation.js +6 -0
- package/src/annotation/polygonAnnotation.js +1 -1
- package/src/canvas/tileLayer.js +3 -1
- package/src/object.js +9 -0
- package/src/webgl/pixelmapFeature.js +3 -1
- package/src/webgl/quadFeature.js +1 -1
- package/src/webgl/tileLayer.js +3 -1
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
|
|
|
@@ -8555,7 +8563,10 @@ var canvas_tileLayer = function canvas_tileLayer() {
|
|
|
8555
8563
|
|
|
8556
8564
|
this._update = function (request) {
|
|
8557
8565
|
s_update.call(m_this, request);
|
|
8558
|
-
|
|
8566
|
+
|
|
8567
|
+
if (m_quadFeature && m_quadFeature.nearestPixel) {
|
|
8568
|
+
m_quadFeature.nearestPixel(m_this.nearestPixel());
|
|
8569
|
+
}
|
|
8559
8570
|
|
|
8560
8571
|
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
|
|
8561
8572
|
|
|
@@ -23320,6 +23331,16 @@ var object = function object() {
|
|
|
23320
23331
|
|
|
23321
23332
|
return m_this;
|
|
23322
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
|
+
};
|
|
23323
23344
|
/**
|
|
23324
23345
|
* Free all resources and destroy the object.
|
|
23325
23346
|
*/
|
|
@@ -27866,7 +27887,7 @@ module.exports = sceneObject;
|
|
|
27866
27887
|
* @constant
|
|
27867
27888
|
* @type {string}
|
|
27868
27889
|
*/
|
|
27869
|
-
module.exports = "
|
|
27890
|
+
module.exports = "52900ff9b31db04903654e968c3bf6e7bcc3bffb";
|
|
27870
27891
|
|
|
27871
27892
|
/***/ }),
|
|
27872
27893
|
|
|
@@ -41026,7 +41047,7 @@ module.exports = vectorFeature;
|
|
|
41026
41047
|
* @constant
|
|
41027
41048
|
* @type {string}
|
|
41028
41049
|
*/
|
|
41029
|
-
module.exports = "1.10.
|
|
41050
|
+
module.exports = "1.10.6";
|
|
41030
41051
|
|
|
41031
41052
|
/***/ }),
|
|
41032
41053
|
|
|
@@ -44076,7 +44097,10 @@ var webgl_pixelmapFeature = function webgl_pixelmapFeature(arg) {
|
|
|
44076
44097
|
|
|
44077
44098
|
if (arg.quadFeature) {
|
|
44078
44099
|
m_quadFeature = arg.quadFeature;
|
|
44079
|
-
|
|
44100
|
+
|
|
44101
|
+
if (m_quadFeature.nearestPixel) {
|
|
44102
|
+
m_quadFeature.nearestPixel(true);
|
|
44103
|
+
}
|
|
44080
44104
|
}
|
|
44081
44105
|
|
|
44082
44106
|
this._init(arg);
|
|
@@ -45694,7 +45718,7 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
|
|
|
45694
45718
|
}
|
|
45695
45719
|
|
|
45696
45720
|
m_quads.imgQuads.forEach(function (quad) {
|
|
45697
|
-
if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel) {
|
|
45721
|
+
if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel && quad.texture.textureHandle()) {
|
|
45698
45722
|
/* This could just be
|
|
45699
45723
|
* quad.texture.setNearestPixel(nearestPixel);
|
|
45700
45724
|
* but that needlessly redecodes the image. Instead, just change the
|
|
@@ -46106,7 +46130,10 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
46106
46130
|
|
|
46107
46131
|
this._update = function (request) {
|
|
46108
46132
|
s_update.call(m_this, request);
|
|
46109
|
-
|
|
46133
|
+
|
|
46134
|
+
if (m_quadFeature && m_quadFeature.nearestPixel) {
|
|
46135
|
+
m_quadFeature.nearestPixel(m_this.nearestPixel());
|
|
46136
|
+
}
|
|
46110
46137
|
|
|
46111
46138
|
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
|
|
46112
46139
|
|
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
|
|
|
@@ -8555,7 +8563,10 @@ var canvas_tileLayer = function canvas_tileLayer() {
|
|
|
8555
8563
|
|
|
8556
8564
|
this._update = function (request) {
|
|
8557
8565
|
s_update.call(m_this, request);
|
|
8558
|
-
|
|
8566
|
+
|
|
8567
|
+
if (m_quadFeature && m_quadFeature.nearestPixel) {
|
|
8568
|
+
m_quadFeature.nearestPixel(m_this.nearestPixel());
|
|
8569
|
+
}
|
|
8559
8570
|
|
|
8560
8571
|
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
|
|
8561
8572
|
|
|
@@ -23320,6 +23331,16 @@ var object = function object() {
|
|
|
23320
23331
|
|
|
23321
23332
|
return m_this;
|
|
23322
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
|
+
};
|
|
23323
23344
|
/**
|
|
23324
23345
|
* Free all resources and destroy the object.
|
|
23325
23346
|
*/
|
|
@@ -27866,7 +27887,7 @@ module.exports = sceneObject;
|
|
|
27866
27887
|
* @constant
|
|
27867
27888
|
* @type {string}
|
|
27868
27889
|
*/
|
|
27869
|
-
module.exports = "
|
|
27890
|
+
module.exports = "52900ff9b31db04903654e968c3bf6e7bcc3bffb";
|
|
27870
27891
|
|
|
27871
27892
|
/***/ }),
|
|
27872
27893
|
|
|
@@ -41026,7 +41047,7 @@ module.exports = vectorFeature;
|
|
|
41026
41047
|
* @constant
|
|
41027
41048
|
* @type {string}
|
|
41028
41049
|
*/
|
|
41029
|
-
module.exports = "1.10.
|
|
41050
|
+
module.exports = "1.10.6";
|
|
41030
41051
|
|
|
41031
41052
|
/***/ }),
|
|
41032
41053
|
|
|
@@ -44076,7 +44097,10 @@ var webgl_pixelmapFeature = function webgl_pixelmapFeature(arg) {
|
|
|
44076
44097
|
|
|
44077
44098
|
if (arg.quadFeature) {
|
|
44078
44099
|
m_quadFeature = arg.quadFeature;
|
|
44079
|
-
|
|
44100
|
+
|
|
44101
|
+
if (m_quadFeature.nearestPixel) {
|
|
44102
|
+
m_quadFeature.nearestPixel(true);
|
|
44103
|
+
}
|
|
44080
44104
|
}
|
|
44081
44105
|
|
|
44082
44106
|
this._init(arg);
|
|
@@ -45694,7 +45718,7 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
|
|
|
45694
45718
|
}
|
|
45695
45719
|
|
|
45696
45720
|
m_quads.imgQuads.forEach(function (quad) {
|
|
45697
|
-
if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel) {
|
|
45721
|
+
if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel && quad.texture.textureHandle()) {
|
|
45698
45722
|
/* This could just be
|
|
45699
45723
|
* quad.texture.setNearestPixel(nearestPixel);
|
|
45700
45724
|
* but that needlessly redecodes the image. Instead, just change the
|
|
@@ -46106,7 +46130,10 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
46106
46130
|
|
|
46107
46131
|
this._update = function (request) {
|
|
46108
46132
|
s_update.call(m_this, request);
|
|
46109
|
-
|
|
46133
|
+
|
|
46134
|
+
if (m_quadFeature && m_quadFeature.nearestPixel) {
|
|
46135
|
+
m_quadFeature.nearestPixel(m_this.nearestPixel());
|
|
46136
|
+
}
|
|
46110
46137
|
|
|
46111
46138
|
m_this._addBaseQuadToTiles(m_quadFeature, m_tiles);
|
|
46112
46139
|
|