geojs 1.13.0 → 1.14.0
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/geo.js +90 -22
- package/geo.lean.js +90 -22
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/annotation/annotation.js +3 -0
- package/src/map.js +50 -12
- package/src/osmLayer.js +1 -1
- package/src/pixelmapLayer.js +1 -1
- package/src/tileLayer.js +3 -2
- package/src/util/color.js +1 -0
- package/src/util/common.js +2 -1
- package/src/util/mesh.js +1 -0
- package/src/util/polyops.js +8 -0
- package/src/webgl/layer.js +5 -0
- package/src/webgl/lookupTable2D.js +1 -0
- package/src/webgl/pointUtil.js +1 -0
- package/src/webgl/tileLayer.js +8 -0
package/geo.js
CHANGED
|
@@ -4333,6 +4333,7 @@ var _annotation = function annotation(type, args) {
|
|
|
4333
4333
|
/**
|
|
4334
4334
|
* Return actions needed for the specified state of this annotation.
|
|
4335
4335
|
*
|
|
4336
|
+
* @private
|
|
4336
4337
|
* @param {object} m_this The current annotation instance.
|
|
4337
4338
|
* @param {function} s_actions The parent actions method.
|
|
4338
4339
|
* @param {string|undefined} state The state to return actions for. Defaults
|
|
@@ -4366,6 +4367,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
|
|
|
4366
4367
|
/**
|
|
4367
4368
|
* Process actions to allow drawing continuous vertices for an annotation.
|
|
4368
4369
|
*
|
|
4370
|
+
* @private
|
|
4369
4371
|
* @param {object} m_this The current annotation instance.
|
|
4370
4372
|
* @param {geo.event} evt The action event.
|
|
4371
4373
|
* @param {string} name The name of this annotation.
|
|
@@ -4425,6 +4427,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
|
|
|
4425
4427
|
* that the aspect ratio of a rectangle-like selection is a specific value or
|
|
4426
4428
|
* range of values.
|
|
4427
4429
|
*
|
|
4430
|
+
* @private
|
|
4428
4431
|
* @param {number|number[]|geo.geoSize|geo.geoSize[]} ratio Either a single
|
|
4429
4432
|
* aspect ratio, a single size, or a list of allowed aspect ratios and sizes.
|
|
4430
4433
|
* For instance, 1 will require that the selection square, 2 would require
|
|
@@ -18192,11 +18195,13 @@ var _map2 = function map(arg) {
|
|
|
18192
18195
|
* option when determining the new view.
|
|
18193
18196
|
* @param {boolean} [ignoreClampBounds] If `true`, ignore the clampBounds
|
|
18194
18197
|
* option when determining the new view.
|
|
18198
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan or zoom
|
|
18199
|
+
* event. If 'pan', only trigger the zoom event.
|
|
18195
18200
|
* @returns {number|this}
|
|
18196
18201
|
* @fires geo.event.zoom
|
|
18197
18202
|
* @fires geo.event.pan
|
|
18198
18203
|
*/
|
|
18199
|
-
this.zoom = function (val, origin, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
18204
|
+
this.zoom = function (val, origin, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
18200
18205
|
if (val === undefined) {
|
|
18201
18206
|
return m_zoom;
|
|
18202
18207
|
}
|
|
@@ -18221,22 +18226,52 @@ var _map2 = function map(arg) {
|
|
|
18221
18226
|
zoomLevel: m_zoom,
|
|
18222
18227
|
screenPosition: origin ? origin.map : undefined
|
|
18223
18228
|
};
|
|
18224
|
-
|
|
18229
|
+
if (!noTrigger || noTrigger === 'pan') {
|
|
18230
|
+
m_this.geoTrigger(geo_event.zoom, evt);
|
|
18231
|
+
}
|
|
18225
18232
|
if (aroundPoint) {
|
|
18226
18233
|
var shifted = m_this.gcsToDisplay(origin.mapgcs || origin.geo, origin.mapgcs ? null : undefined);
|
|
18227
18234
|
m_this.pan({
|
|
18228
18235
|
x: origin.map.x - shifted.x,
|
|
18229
18236
|
y: origin.map.y - shifted.y
|
|
18230
|
-
}, ignoreDiscreteZoom, true);
|
|
18237
|
+
}, ignoreDiscreteZoom, true, noTrigger);
|
|
18231
18238
|
} else {
|
|
18232
18239
|
m_this.pan({
|
|
18233
18240
|
x: 0,
|
|
18234
18241
|
y: 0
|
|
18235
|
-
}, ignoreDiscreteZoom, ignoreClampBounds);
|
|
18242
|
+
}, ignoreDiscreteZoom, ignoreClampBounds, noTrigger);
|
|
18236
18243
|
}
|
|
18237
18244
|
return m_this;
|
|
18238
18245
|
};
|
|
18239
18246
|
|
|
18247
|
+
/**
|
|
18248
|
+
* Set zoom level and center of the map.
|
|
18249
|
+
*
|
|
18250
|
+
* @param {number} zoom The new zoom level to set.
|
|
18251
|
+
* @param {geo.geoPosition} center The new center of the
|
|
18252
|
+
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
|
|
18253
|
+
* gcs, `null` to use the map gcs, or any other transform. The center is
|
|
18254
|
+
* converted from this gcs to the map projection.
|
|
18255
|
+
* @param {geo.geoPosition} origin.geo The gcs coordinates of the zoom
|
|
18256
|
+
* center.
|
|
18257
|
+
* @param {geo.screenPosition} origin.map The display coordinates of the zoom
|
|
18258
|
+
* center.
|
|
18259
|
+
* @param {boolean} [ignoreDiscreteZoom] If `true`, ignore the discreteZoom
|
|
18260
|
+
* option when determining the new view.
|
|
18261
|
+
* @param {boolean} [ignoreClampBounds] If `true`, ignore the clampBounds
|
|
18262
|
+
* option when determining the new view.
|
|
18263
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan or zoom
|
|
18264
|
+
* event.
|
|
18265
|
+
* @returns {this}
|
|
18266
|
+
* @fires geo.event.zoom
|
|
18267
|
+
* @fires geo.event.pan
|
|
18268
|
+
*/
|
|
18269
|
+
this.zoomAndCenter = function (zoom, center, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
18270
|
+
this.zoom(zoom, undefined, ignoreDiscreteZoom, ignoreClampBounds, noTrigger || 'pan');
|
|
18271
|
+
this.center(center, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger);
|
|
18272
|
+
return this;
|
|
18273
|
+
};
|
|
18274
|
+
|
|
18240
18275
|
/**
|
|
18241
18276
|
* Pan the map by a number of display pixels.
|
|
18242
18277
|
*
|
|
@@ -18250,10 +18285,11 @@ var _map2 = function map(arg) {
|
|
|
18250
18285
|
* view. When `'limited'`, the `clampBoundsX` and `clampBoundsY` options
|
|
18251
18286
|
* are selectively enforced so that the map will not end up more out of
|
|
18252
18287
|
* bounds than its current state.
|
|
18288
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan event.
|
|
18253
18289
|
* @returns {this}
|
|
18254
18290
|
* @fires geo.event.pan
|
|
18255
18291
|
*/
|
|
18256
|
-
this.pan = function (delta, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
18292
|
+
this.pan = function (delta, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
18257
18293
|
var evt = {
|
|
18258
18294
|
screenDelta: delta
|
|
18259
18295
|
};
|
|
@@ -18294,7 +18330,9 @@ var _map2 = function map(arg) {
|
|
|
18294
18330
|
x: m_width / 2,
|
|
18295
18331
|
y: m_height / 2
|
|
18296
18332
|
});
|
|
18297
|
-
|
|
18333
|
+
if (!noTrigger) {
|
|
18334
|
+
m_this.geoTrigger(geo_event.pan, evt);
|
|
18335
|
+
}
|
|
18298
18336
|
m_this.modified();
|
|
18299
18337
|
return m_this;
|
|
18300
18338
|
};
|
|
@@ -18356,7 +18394,7 @@ var _map2 = function map(arg) {
|
|
|
18356
18394
|
/**
|
|
18357
18395
|
* Get or set the center of the map in the given geographic coordinates.
|
|
18358
18396
|
*
|
|
18359
|
-
* @param {geo.geoPosition} coordinates If specified, the new center of the
|
|
18397
|
+
* @param {geo.geoPosition} [coordinates] If specified, the new center of the
|
|
18360
18398
|
* map.
|
|
18361
18399
|
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
|
|
18362
18400
|
* gcs, `null` to use the map gcs, or any other transform. If setting the
|
|
@@ -18369,10 +18407,11 @@ var _map2 = function map(arg) {
|
|
|
18369
18407
|
* view. When `'limited'`, the `clampBoundsX` and `clampBoundsY` options
|
|
18370
18408
|
* are selectively enforced so that the map will not end up more out of
|
|
18371
18409
|
* bounds than its current state.
|
|
18410
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan event.
|
|
18372
18411
|
* @returns {geo.geoPosition|this}
|
|
18373
18412
|
* @fires geo.event.pan
|
|
18374
18413
|
*/
|
|
18375
|
-
this.center = function (coordinates, gcs, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
18414
|
+
this.center = function (coordinates, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
18376
18415
|
var center;
|
|
18377
18416
|
if (coordinates === undefined) {
|
|
18378
18417
|
center = Object.assign({}, m_this.worldToGcs(m_center, gcs));
|
|
@@ -18384,12 +18423,14 @@ var _map2 = function map(arg) {
|
|
|
18384
18423
|
camera_bounds(m_this.boundsFromZoomAndCenter(m_zoom, center, m_rotation, null, ignoreDiscreteZoom, ignoreClampBounds), m_rotation);
|
|
18385
18424
|
m_this.modified();
|
|
18386
18425
|
// trigger a pan event
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18426
|
+
if (!noTrigger) {
|
|
18427
|
+
m_this.geoTrigger(geo_event.pan, {
|
|
18428
|
+
screenDelta: {
|
|
18429
|
+
x: 0,
|
|
18430
|
+
y: 0
|
|
18431
|
+
}
|
|
18432
|
+
});
|
|
18433
|
+
}
|
|
18393
18434
|
return m_this;
|
|
18394
18435
|
};
|
|
18395
18436
|
|
|
@@ -19148,7 +19189,7 @@ var _map2 = function map(arg) {
|
|
|
19148
19189
|
|
|
19149
19190
|
// This might have consequences in terms of bounds/zoom clamping.
|
|
19150
19191
|
// What behavior do we expect from this method in that case?
|
|
19151
|
-
m_this.zoom(nav.zoom);
|
|
19192
|
+
m_this.zoom(nav.zoom, undefined, undefined, undefined, 'pan');
|
|
19152
19193
|
m_this.center(nav.center, null);
|
|
19153
19194
|
}
|
|
19154
19195
|
return m_this.boundsFromZoomAndCenter(m_zoom, m_center, m_rotation, gcs, true);
|
|
@@ -24113,7 +24154,7 @@ var _osmLayer = function osmLayer(arg) {
|
|
|
24113
24154
|
queue: m_this._queue,
|
|
24114
24155
|
overlap: m_this._options.tileOverlap,
|
|
24115
24156
|
scale: m_this._options.tileScale,
|
|
24116
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
24157
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
24117
24158
|
crossDomain: m_this._options.crossDomain
|
|
24118
24159
|
});
|
|
24119
24160
|
};
|
|
@@ -24827,7 +24868,7 @@ var _pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
24827
24868
|
queue: m_this._queue,
|
|
24828
24869
|
overlap: m_this._options.tileOverlap,
|
|
24829
24870
|
scale: m_this._options.tileScale,
|
|
24830
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
24871
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
24831
24872
|
crossDomain: m_this._options.crossDomain
|
|
24832
24873
|
});
|
|
24833
24874
|
};
|
|
@@ -28123,7 +28164,7 @@ module.exports = _sceneObject;
|
|
|
28123
28164
|
* @constant
|
|
28124
28165
|
* @type {string}
|
|
28125
28166
|
*/
|
|
28126
|
-
module.exports = "
|
|
28167
|
+
module.exports = "43f61353e44a71f669a4f0d631f102a517605fe9";
|
|
28127
28168
|
|
|
28128
28169
|
/***/ }),
|
|
28129
28170
|
|
|
@@ -30766,6 +30807,7 @@ function modulo(a, b) {
|
|
|
30766
30807
|
/**
|
|
30767
30808
|
* Pick a subdomain from a list of subdomains based on a the tile location.
|
|
30768
30809
|
*
|
|
30810
|
+
* @private
|
|
30769
30811
|
* @param {number} x The x tile coordinate.
|
|
30770
30812
|
* @param {number} y The y tile coordinate.
|
|
30771
30813
|
* @param {number} z The tile layer.
|
|
@@ -30785,9 +30827,9 @@ function m_getTileSubdomain(x, y, z, subdomains) {
|
|
|
30785
30827
|
* all equivalent. The comma-separated list can have subdomains that are of
|
|
30786
30828
|
* any length; the string and range both use one-character subdomains.
|
|
30787
30829
|
*
|
|
30830
|
+
* @private
|
|
30788
30831
|
* @param {string} base The tile format string
|
|
30789
30832
|
* @returns {function} A conversion function.
|
|
30790
|
-
* @private.
|
|
30791
30833
|
*/
|
|
30792
30834
|
function m_tileUrlFromTemplate(base) {
|
|
30793
30835
|
var xPattern = /\$?\{[xX]\}/g,
|
|
@@ -31282,7 +31324,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
31282
31324
|
y: m_this._options.tileHeight
|
|
31283
31325
|
},
|
|
31284
31326
|
queue: m_this._queue,
|
|
31285
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains)
|
|
31327
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains)
|
|
31286
31328
|
});
|
|
31287
31329
|
};
|
|
31288
31330
|
|
|
@@ -36819,6 +36861,7 @@ var m_memoizeConvertColor = {
|
|
|
36819
36861
|
* be returned quickly. If the memoization table gets over a certain size,
|
|
36820
36862
|
* just reset it.
|
|
36821
36863
|
*
|
|
36864
|
+
* @private
|
|
36822
36865
|
* @param {geo.geoColor} origColor The original color specification.
|
|
36823
36866
|
* @param {geo.geoColorObject} resultColor The result of the conversion.
|
|
36824
36867
|
* @returns {geo.geoColorObject} The `resultColor`.
|
|
@@ -37604,6 +37647,7 @@ var util = {
|
|
|
37604
37647
|
};
|
|
37605
37648
|
var layerParams = {
|
|
37606
37649
|
maxLevel: maxLevel,
|
|
37650
|
+
minLevel: Math.min(0, maxLevel),
|
|
37607
37651
|
wrapX: false,
|
|
37608
37652
|
wrapY: false,
|
|
37609
37653
|
tileOffset: function tileOffset() {
|
|
@@ -38031,7 +38075,7 @@ var util = {
|
|
|
38031
38075
|
* @param {object} target target object to modify.
|
|
38032
38076
|
* @param {object} sources object(s) to merge into the target.
|
|
38033
38077
|
* @returns {object} The merged object.
|
|
38034
|
-
* @
|
|
38078
|
+
* @memberof geo.util
|
|
38035
38079
|
*/
|
|
38036
38080
|
deepMerge: function deepMerge(target) {
|
|
38037
38081
|
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -38776,6 +38820,7 @@ __webpack_require__(5637), __webpack_require__(208), __webpack_require__(269), /
|
|
|
38776
38820
|
* elements, falsy for vertices.
|
|
38777
38821
|
* @returns {geo.meshFeature.meshColoredInfo} An object with the colored mesh
|
|
38778
38822
|
* information.
|
|
38823
|
+
* @memberof geo.util
|
|
38779
38824
|
*/
|
|
38780
38825
|
function createColoredMesh(feature, elementValues) {
|
|
38781
38826
|
var util = __webpack_require__(642);
|
|
@@ -39154,6 +39199,7 @@ var AlternateOpNames = {
|
|
|
39154
39199
|
*
|
|
39155
39200
|
* @param {object[]} seglist A PolyBool segment list.
|
|
39156
39201
|
* @returns {geo.polygonList|undefined} A polygon list.
|
|
39202
|
+
* @private
|
|
39157
39203
|
*/
|
|
39158
39204
|
function seglistToPolygonList(seglist) {
|
|
39159
39205
|
// This single line doesn't arrange holes correctly
|
|
@@ -39238,6 +39284,7 @@ function seglistToPolygonList(seglist) {
|
|
|
39238
39284
|
* around 0.11 mm in ground distance.
|
|
39239
39285
|
* @param {object} seglist A seglist array as used by the polybool library.
|
|
39240
39286
|
* @returns {object} A seglist array.
|
|
39287
|
+
* @private
|
|
39241
39288
|
*/
|
|
39242
39289
|
function polygonOperationSeglist(op, epsilon, seglist) {
|
|
39243
39290
|
op = 'select' + op.charAt(0).toUpperCase() + op.slice(1);
|
|
@@ -39307,6 +39354,7 @@ function polygonOperationSeglist(op, epsilon, seglist) {
|
|
|
39307
39354
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
39308
39355
|
* if poly is an object with a toPolygonList method.
|
|
39309
39356
|
* @returns {geo.polygonList} A list of polygons.
|
|
39357
|
+
* @memberof geo.util.polyops
|
|
39310
39358
|
*/
|
|
39311
39359
|
function toPolygonList(poly, mode, opts) {
|
|
39312
39360
|
mode = mode || {};
|
|
@@ -39401,6 +39449,7 @@ function toPolygonList(poly, mode, opts) {
|
|
|
39401
39449
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
39402
39450
|
* if ``mode.style`` is an object with a fromPolygonList method.
|
|
39403
39451
|
* @returns {geo.polygonAny} A polygon in one of several formats.
|
|
39452
|
+
* @memberof geo.util.polyops
|
|
39404
39453
|
*/
|
|
39405
39454
|
function fromPolygonList(poly, mode, opts) {
|
|
39406
39455
|
if (mode.style.fromPolygonList) {
|
|
@@ -39439,6 +39488,7 @@ function fromPolygonList(poly, mode, opts) {
|
|
|
39439
39488
|
/**
|
|
39440
39489
|
* Use a minimum style for output to include all of the results.
|
|
39441
39490
|
*
|
|
39491
|
+
* @private
|
|
39442
39492
|
* @param {geo.polygonList} polylist A list of polygons.
|
|
39443
39493
|
* @param {string} style the proposed style.
|
|
39444
39494
|
* @returns {string} The preferred style.
|
|
@@ -39469,6 +39519,7 @@ function minimumPolygonStyle(polylist, style) {
|
|
|
39469
39519
|
* Generate the correspondence between the source polygons and the output
|
|
39470
39520
|
* polygons. A polygon corresponds if it has at least two points in common.
|
|
39471
39521
|
*
|
|
39522
|
+
* @private
|
|
39472
39523
|
* @param {geo.polygonList} poly1 First set of source polygons.
|
|
39473
39524
|
* @param {geo.polygonList} poly2 Second set of source polygons.
|
|
39474
39525
|
* @param {geo.polygonList} newpoly Output polygons.
|
|
@@ -39536,6 +39587,7 @@ function generateCorrespondence(poly1, poly2, newpoly, results) {
|
|
|
39536
39587
|
/**
|
|
39537
39588
|
* Perform a general operation of a set of polygons.
|
|
39538
39589
|
*
|
|
39590
|
+
* @private
|
|
39539
39591
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
39540
39592
|
* difference, or xor.
|
|
39541
39593
|
* @param {geo.polygonAny|geo.util.polyop.spec} poly1 Either the first polygon
|
|
@@ -39619,6 +39671,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
|
|
|
39619
39671
|
/**
|
|
39620
39672
|
* Generate a polygon function for a specific operation.
|
|
39621
39673
|
*
|
|
39674
|
+
* @private
|
|
39622
39675
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
39623
39676
|
* difference, or xor.
|
|
39624
39677
|
* @returns {function} a function for the polygons.
|
|
@@ -39996,7 +40049,7 @@ module.exports = _vectorFeature;
|
|
|
39996
40049
|
* @constant
|
|
39997
40050
|
* @type {string}
|
|
39998
40051
|
*/
|
|
39999
|
-
module.exports = "1.
|
|
40052
|
+
module.exports = "1.14.0";
|
|
40000
40053
|
|
|
40001
40054
|
/***/ }),
|
|
40002
40055
|
|
|
@@ -45150,6 +45203,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45150
45203
|
* @param {number} [opacity] If specified, set the opacity. Otherwise,
|
|
45151
45204
|
* return the opacity.
|
|
45152
45205
|
* @returns {number|this} The current opacity or the current layer.
|
|
45206
|
+
* @memberof geo.webgl.layer
|
|
45153
45207
|
*/
|
|
45154
45208
|
this.opacity = function (opacity) {
|
|
45155
45209
|
var result = s_opacity.apply(m_this, arguments);
|
|
@@ -45166,6 +45220,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45166
45220
|
* get it.
|
|
45167
45221
|
* @returns {boolean|this} either the visibility (if getting) or the layer
|
|
45168
45222
|
* (if setting).
|
|
45223
|
+
* @memberof geo.webgl.layer
|
|
45169
45224
|
*/
|
|
45170
45225
|
this.visible = function (val) {
|
|
45171
45226
|
if (val === undefined) {
|
|
@@ -45190,6 +45245,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45190
45245
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
45191
45246
|
* ensure that other layers have distinct z-indices from this one.
|
|
45192
45247
|
* @returns {number|this}
|
|
45248
|
+
* @memberof geo.webgl.layer
|
|
45193
45249
|
*/
|
|
45194
45250
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
45195
45251
|
var result = s_zIndex.apply(m_this, arguments);
|
|
@@ -45214,6 +45270,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45214
45270
|
* @param {geo.webgl.webglRenderer} newRenderer The renderer to move to.
|
|
45215
45271
|
* @param {boolean} [rerender=false] If truthy, rerender after the switch.
|
|
45216
45272
|
* @returns {this}
|
|
45273
|
+
* @memberof geo.webgl.layer
|
|
45217
45274
|
*/
|
|
45218
45275
|
this.switchRenderer = function (newRenderer, rerender) {
|
|
45219
45276
|
if (newRenderer instanceof webglRenderer && newRenderer !== m_this.renderer()) {
|
|
@@ -45252,6 +45309,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45252
45309
|
* Initialize after the layer is added to the map.
|
|
45253
45310
|
*
|
|
45254
45311
|
* @returns {this}
|
|
45312
|
+
* @memberof geo.webgl.layer
|
|
45255
45313
|
*/
|
|
45256
45314
|
this._init = function () {
|
|
45257
45315
|
var map = m_this.map();
|
|
@@ -45963,6 +46021,7 @@ var vgl = __webpack_require__(1611);
|
|
|
45963
46021
|
* @param {vgl.renderState} renderState An object that contains the context
|
|
45964
46022
|
* used for drawing.
|
|
45965
46023
|
* @param {number} textureUnit The number of the texture unit [0-15].
|
|
46024
|
+
* @private
|
|
45966
46025
|
*/
|
|
45967
46026
|
function activateTextureUnit(renderState, textureUnit) {
|
|
45968
46027
|
if (textureUnit >= 0 && textureUnit <= 31) {
|
|
@@ -47629,6 +47688,7 @@ var pointFeature = __webpack_require__(7541);
|
|
|
47629
47688
|
* @param {this} m_this The point-like feature.
|
|
47630
47689
|
* @param {object} [arg] Feature definition object that might specify the
|
|
47631
47690
|
* primitive shape.
|
|
47691
|
+
* @memberof geo.webgl
|
|
47632
47692
|
*/
|
|
47633
47693
|
function pointUtil(m_this, arg) {
|
|
47634
47694
|
arg = arg || {};
|
|
@@ -48690,6 +48750,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48690
48750
|
* Add a tile to the list of quads.
|
|
48691
48751
|
*
|
|
48692
48752
|
* @param {geo.tile} tile The tile to add and draw.
|
|
48753
|
+
* @memberof geo.webgl.tileLayer
|
|
48693
48754
|
*/
|
|
48694
48755
|
this._drawTile = function (tile) {
|
|
48695
48756
|
if (!m_quadFeature) {
|
|
@@ -48782,6 +48843,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48782
48843
|
* @param {boolean} [val] If specified, change the visibility, otherwise
|
|
48783
48844
|
* return it.
|
|
48784
48845
|
* @returns {boolean|this} The current visibility or the layer.
|
|
48846
|
+
* @memberof geo.webgl.tileLayer
|
|
48785
48847
|
*/
|
|
48786
48848
|
this.visible = function (val) {
|
|
48787
48849
|
if (val === undefined) {
|
|
@@ -48806,6 +48868,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48806
48868
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
48807
48869
|
* ensure that other layers have distinct z-indices from this one.
|
|
48808
48870
|
* @returns {number|this}
|
|
48871
|
+
* @memberof geo.webgl.tileLayer
|
|
48809
48872
|
*/
|
|
48810
48873
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
48811
48874
|
if (zIndex !== undefined) {
|
|
@@ -48820,6 +48883,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48820
48883
|
*
|
|
48821
48884
|
* @param {geo.event} [evt] If specified, the layer add or remove event that
|
|
48822
48885
|
* triggered this. If `undefined`, clear the quads but don't redraw.
|
|
48886
|
+
* @memberof geo.webgl.tileLayer
|
|
48823
48887
|
*/
|
|
48824
48888
|
this._clearQuads = function (evt) {
|
|
48825
48889
|
if (evt && (!evt.layer || !(evt.layer instanceof tileLayer) || !evt.layer.autoshareRenderer() || (evt.event === geo_event.layerAdd || evt.event === geo_event.layerRemove) && m_this.map().layers().every(function (l) {
|
|
@@ -48841,6 +48905,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48841
48905
|
*
|
|
48842
48906
|
* @param {object} request A value to pass to the parent class.
|
|
48843
48907
|
* @returns {this}
|
|
48908
|
+
* @memberof geo.webgl.tileLayer
|
|
48844
48909
|
*/
|
|
48845
48910
|
this._update = function (request) {
|
|
48846
48911
|
s_update.call(m_this, request);
|
|
@@ -48853,6 +48918,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48853
48918
|
|
|
48854
48919
|
/**
|
|
48855
48920
|
* Cleanup. This purges the texture and tile cache.
|
|
48921
|
+
* @memberof geo.webgl.tileLayer
|
|
48856
48922
|
*/
|
|
48857
48923
|
this._cleanup = function () {
|
|
48858
48924
|
var tile;
|
|
@@ -48870,6 +48936,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48870
48936
|
|
|
48871
48937
|
/**
|
|
48872
48938
|
* Destroy.
|
|
48939
|
+
* @memberof geo.webgl.tileLayer
|
|
48873
48940
|
*/
|
|
48874
48941
|
this._exit = function () {
|
|
48875
48942
|
var map = m_this.map();
|
|
@@ -48884,6 +48951,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48884
48951
|
|
|
48885
48952
|
/**
|
|
48886
48953
|
* Initialize after the layer is added to the map.
|
|
48954
|
+
* @memberof geo.webgl.tileLayer
|
|
48887
48955
|
*/
|
|
48888
48956
|
this._init = function () {
|
|
48889
48957
|
s_init.apply(m_this, arguments);
|