geojs 1.7.2 → 1.7.3
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/.github/workflows/main.yml +20 -0
- package/CHANGELOG.md +12 -0
- package/geo.js +21 -9
- package/geo.lean.js +21 -9
- package/geo.lean.min.js +2 -2
- package/geo.min.js +2 -2
- package/package.json +1 -1
- package/src/event.js +10 -0
- package/src/layer.js +1 -1
- package/src/tileLayer.js +3 -3
- package/src/webgl/webglRenderer.js +4 -3
package/package.json
CHANGED
package/src/event.js
CHANGED
|
@@ -50,6 +50,16 @@ geo_event.layerAdd = 'geo_layerAdd';
|
|
|
50
50
|
*/
|
|
51
51
|
geo_event.layerRemove = 'geo_layerRemove';
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when a layer z-index is changed.
|
|
55
|
+
*
|
|
56
|
+
* @event geo.event.layerMove
|
|
57
|
+
* @type {geo.event.base}
|
|
58
|
+
* @property {geo.map} target The current map.
|
|
59
|
+
* @property {geo.layer} layer The old layer that was removed.
|
|
60
|
+
*/
|
|
61
|
+
geo_event.layerMove = 'geo_layerMove';
|
|
62
|
+
|
|
53
63
|
/**
|
|
54
64
|
* Triggered when the map's zoom level is changed.
|
|
55
65
|
*
|
package/src/layer.js
CHANGED
package/src/tileLayer.js
CHANGED
|
@@ -1672,9 +1672,9 @@ var tileLayer = function (arg) {
|
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Get/set the baseQuad.
|
|
1674
1674
|
*
|
|
1675
|
-
* @property {object} [baseQuad] A quad feature element to draw
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
1675
|
+
* @property {object} [baseQuad] A quad feature element to draw below any
|
|
1676
|
+
* tile layers. If specified, this uses the quad defaults, so this is a
|
|
1677
|
+
* ``geo.quadFeature.position`` object with, typically, an ``image``
|
|
1678
1678
|
* property added to it. The quad positions are in the map gcs
|
|
1679
1679
|
* coordinates.
|
|
1680
1680
|
* @name geo.tileLayer.baseQuad
|
|
@@ -184,11 +184,12 @@ var webglRenderer = function (arg) {
|
|
|
184
184
|
renderState.m_renderer = m_viewer;
|
|
185
185
|
renderState.m_context = m_this._glContext();
|
|
186
186
|
m_viewer.exit(renderState);
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
const context = m_this._glContext();
|
|
188
|
+
if (context !== vgl.GL && context.getExtension('WEBGL_lose_context') && context.getExtension('WEBGL_lose_context').loseContext) {
|
|
189
|
+
context.getExtension('WEBGL_lose_context').loseContext();
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
|
-
// make sure we clear shaders associated with the
|
|
192
|
+
// make sure we clear shaders associated with the generated context, too
|
|
192
193
|
vgl.clearCachedShaders(vgl.GL);
|
|
193
194
|
m_viewer = null;
|
|
194
195
|
s_exit();
|