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.lean.js
CHANGED
|
@@ -1332,6 +1332,7 @@ var _annotation = function annotation(type, args) {
|
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Return actions needed for the specified state of this annotation.
|
|
1334
1334
|
*
|
|
1335
|
+
* @private
|
|
1335
1336
|
* @param {object} m_this The current annotation instance.
|
|
1336
1337
|
* @param {function} s_actions The parent actions method.
|
|
1337
1338
|
* @param {string|undefined} state The state to return actions for. Defaults
|
|
@@ -1365,6 +1366,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
|
|
|
1365
1366
|
/**
|
|
1366
1367
|
* Process actions to allow drawing continuous vertices for an annotation.
|
|
1367
1368
|
*
|
|
1369
|
+
* @private
|
|
1368
1370
|
* @param {object} m_this The current annotation instance.
|
|
1369
1371
|
* @param {geo.event} evt The action event.
|
|
1370
1372
|
* @param {string} name The name of this annotation.
|
|
@@ -1424,6 +1426,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
|
|
|
1424
1426
|
* that the aspect ratio of a rectangle-like selection is a specific value or
|
|
1425
1427
|
* range of values.
|
|
1426
1428
|
*
|
|
1429
|
+
* @private
|
|
1427
1430
|
* @param {number|number[]|geo.geoSize|geo.geoSize[]} ratio Either a single
|
|
1428
1431
|
* aspect ratio, a single size, or a list of allowed aspect ratios and sizes.
|
|
1429
1432
|
* For instance, 1 will require that the selection square, 2 would require
|
|
@@ -15191,11 +15194,13 @@ var _map2 = function map(arg) {
|
|
|
15191
15194
|
* option when determining the new view.
|
|
15192
15195
|
* @param {boolean} [ignoreClampBounds] If `true`, ignore the clampBounds
|
|
15193
15196
|
* option when determining the new view.
|
|
15197
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan or zoom
|
|
15198
|
+
* event. If 'pan', only trigger the zoom event.
|
|
15194
15199
|
* @returns {number|this}
|
|
15195
15200
|
* @fires geo.event.zoom
|
|
15196
15201
|
* @fires geo.event.pan
|
|
15197
15202
|
*/
|
|
15198
|
-
this.zoom = function (val, origin, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
15203
|
+
this.zoom = function (val, origin, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
15199
15204
|
if (val === undefined) {
|
|
15200
15205
|
return m_zoom;
|
|
15201
15206
|
}
|
|
@@ -15220,22 +15225,52 @@ var _map2 = function map(arg) {
|
|
|
15220
15225
|
zoomLevel: m_zoom,
|
|
15221
15226
|
screenPosition: origin ? origin.map : undefined
|
|
15222
15227
|
};
|
|
15223
|
-
|
|
15228
|
+
if (!noTrigger || noTrigger === 'pan') {
|
|
15229
|
+
m_this.geoTrigger(geo_event.zoom, evt);
|
|
15230
|
+
}
|
|
15224
15231
|
if (aroundPoint) {
|
|
15225
15232
|
var shifted = m_this.gcsToDisplay(origin.mapgcs || origin.geo, origin.mapgcs ? null : undefined);
|
|
15226
15233
|
m_this.pan({
|
|
15227
15234
|
x: origin.map.x - shifted.x,
|
|
15228
15235
|
y: origin.map.y - shifted.y
|
|
15229
|
-
}, ignoreDiscreteZoom, true);
|
|
15236
|
+
}, ignoreDiscreteZoom, true, noTrigger);
|
|
15230
15237
|
} else {
|
|
15231
15238
|
m_this.pan({
|
|
15232
15239
|
x: 0,
|
|
15233
15240
|
y: 0
|
|
15234
|
-
}, ignoreDiscreteZoom, ignoreClampBounds);
|
|
15241
|
+
}, ignoreDiscreteZoom, ignoreClampBounds, noTrigger);
|
|
15235
15242
|
}
|
|
15236
15243
|
return m_this;
|
|
15237
15244
|
};
|
|
15238
15245
|
|
|
15246
|
+
/**
|
|
15247
|
+
* Set zoom level and center of the map.
|
|
15248
|
+
*
|
|
15249
|
+
* @param {number} zoom The new zoom level to set.
|
|
15250
|
+
* @param {geo.geoPosition} center The new center of the
|
|
15251
|
+
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
|
|
15252
|
+
* gcs, `null` to use the map gcs, or any other transform. The center is
|
|
15253
|
+
* converted from this gcs to the map projection.
|
|
15254
|
+
* @param {geo.geoPosition} origin.geo The gcs coordinates of the zoom
|
|
15255
|
+
* center.
|
|
15256
|
+
* @param {geo.screenPosition} origin.map The display coordinates of the zoom
|
|
15257
|
+
* center.
|
|
15258
|
+
* @param {boolean} [ignoreDiscreteZoom] If `true`, ignore the discreteZoom
|
|
15259
|
+
* option when determining the new view.
|
|
15260
|
+
* @param {boolean} [ignoreClampBounds] If `true`, ignore the clampBounds
|
|
15261
|
+
* option when determining the new view.
|
|
15262
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan or zoom
|
|
15263
|
+
* event.
|
|
15264
|
+
* @returns {this}
|
|
15265
|
+
* @fires geo.event.zoom
|
|
15266
|
+
* @fires geo.event.pan
|
|
15267
|
+
*/
|
|
15268
|
+
this.zoomAndCenter = function (zoom, center, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
15269
|
+
this.zoom(zoom, undefined, ignoreDiscreteZoom, ignoreClampBounds, noTrigger || 'pan');
|
|
15270
|
+
this.center(center, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger);
|
|
15271
|
+
return this;
|
|
15272
|
+
};
|
|
15273
|
+
|
|
15239
15274
|
/**
|
|
15240
15275
|
* Pan the map by a number of display pixels.
|
|
15241
15276
|
*
|
|
@@ -15249,10 +15284,11 @@ var _map2 = function map(arg) {
|
|
|
15249
15284
|
* view. When `'limited'`, the `clampBoundsX` and `clampBoundsY` options
|
|
15250
15285
|
* are selectively enforced so that the map will not end up more out of
|
|
15251
15286
|
* bounds than its current state.
|
|
15287
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan event.
|
|
15252
15288
|
* @returns {this}
|
|
15253
15289
|
* @fires geo.event.pan
|
|
15254
15290
|
*/
|
|
15255
|
-
this.pan = function (delta, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
15291
|
+
this.pan = function (delta, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
15256
15292
|
var evt = {
|
|
15257
15293
|
screenDelta: delta
|
|
15258
15294
|
};
|
|
@@ -15293,7 +15329,9 @@ var _map2 = function map(arg) {
|
|
|
15293
15329
|
x: m_width / 2,
|
|
15294
15330
|
y: m_height / 2
|
|
15295
15331
|
});
|
|
15296
|
-
|
|
15332
|
+
if (!noTrigger) {
|
|
15333
|
+
m_this.geoTrigger(geo_event.pan, evt);
|
|
15334
|
+
}
|
|
15297
15335
|
m_this.modified();
|
|
15298
15336
|
return m_this;
|
|
15299
15337
|
};
|
|
@@ -15355,7 +15393,7 @@ var _map2 = function map(arg) {
|
|
|
15355
15393
|
/**
|
|
15356
15394
|
* Get or set the center of the map in the given geographic coordinates.
|
|
15357
15395
|
*
|
|
15358
|
-
* @param {geo.geoPosition} coordinates If specified, the new center of the
|
|
15396
|
+
* @param {geo.geoPosition} [coordinates] If specified, the new center of the
|
|
15359
15397
|
* map.
|
|
15360
15398
|
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
|
|
15361
15399
|
* gcs, `null` to use the map gcs, or any other transform. If setting the
|
|
@@ -15368,10 +15406,11 @@ var _map2 = function map(arg) {
|
|
|
15368
15406
|
* view. When `'limited'`, the `clampBoundsX` and `clampBoundsY` options
|
|
15369
15407
|
* are selectively enforced so that the map will not end up more out of
|
|
15370
15408
|
* bounds than its current state.
|
|
15409
|
+
* @param {boolean} [noTrigger] If truthy, do not trigger a pan event.
|
|
15371
15410
|
* @returns {geo.geoPosition|this}
|
|
15372
15411
|
* @fires geo.event.pan
|
|
15373
15412
|
*/
|
|
15374
|
-
this.center = function (coordinates, gcs, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
15413
|
+
this.center = function (coordinates, gcs, ignoreDiscreteZoom, ignoreClampBounds, noTrigger) {
|
|
15375
15414
|
var center;
|
|
15376
15415
|
if (coordinates === undefined) {
|
|
15377
15416
|
center = Object.assign({}, m_this.worldToGcs(m_center, gcs));
|
|
@@ -15383,12 +15422,14 @@ var _map2 = function map(arg) {
|
|
|
15383
15422
|
camera_bounds(m_this.boundsFromZoomAndCenter(m_zoom, center, m_rotation, null, ignoreDiscreteZoom, ignoreClampBounds), m_rotation);
|
|
15384
15423
|
m_this.modified();
|
|
15385
15424
|
// trigger a pan event
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15425
|
+
if (!noTrigger) {
|
|
15426
|
+
m_this.geoTrigger(geo_event.pan, {
|
|
15427
|
+
screenDelta: {
|
|
15428
|
+
x: 0,
|
|
15429
|
+
y: 0
|
|
15430
|
+
}
|
|
15431
|
+
});
|
|
15432
|
+
}
|
|
15392
15433
|
return m_this;
|
|
15393
15434
|
};
|
|
15394
15435
|
|
|
@@ -16147,7 +16188,7 @@ var _map2 = function map(arg) {
|
|
|
16147
16188
|
|
|
16148
16189
|
// This might have consequences in terms of bounds/zoom clamping.
|
|
16149
16190
|
// What behavior do we expect from this method in that case?
|
|
16150
|
-
m_this.zoom(nav.zoom);
|
|
16191
|
+
m_this.zoom(nav.zoom, undefined, undefined, undefined, 'pan');
|
|
16151
16192
|
m_this.center(nav.center, null);
|
|
16152
16193
|
}
|
|
16153
16194
|
return m_this.boundsFromZoomAndCenter(m_zoom, m_center, m_rotation, gcs, true);
|
|
@@ -21112,7 +21153,7 @@ var _osmLayer = function osmLayer(arg) {
|
|
|
21112
21153
|
queue: m_this._queue,
|
|
21113
21154
|
overlap: m_this._options.tileOverlap,
|
|
21114
21155
|
scale: m_this._options.tileScale,
|
|
21115
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
21156
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
21116
21157
|
crossDomain: m_this._options.crossDomain
|
|
21117
21158
|
});
|
|
21118
21159
|
};
|
|
@@ -21826,7 +21867,7 @@ var _pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
21826
21867
|
queue: m_this._queue,
|
|
21827
21868
|
overlap: m_this._options.tileOverlap,
|
|
21828
21869
|
scale: m_this._options.tileScale,
|
|
21829
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
21870
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
21830
21871
|
crossDomain: m_this._options.crossDomain
|
|
21831
21872
|
});
|
|
21832
21873
|
};
|
|
@@ -25122,7 +25163,7 @@ module.exports = _sceneObject;
|
|
|
25122
25163
|
* @constant
|
|
25123
25164
|
* @type {string}
|
|
25124
25165
|
*/
|
|
25125
|
-
module.exports = "
|
|
25166
|
+
module.exports = "43f61353e44a71f669a4f0d631f102a517605fe9";
|
|
25126
25167
|
|
|
25127
25168
|
/***/ }),
|
|
25128
25169
|
|
|
@@ -27765,6 +27806,7 @@ function modulo(a, b) {
|
|
|
27765
27806
|
/**
|
|
27766
27807
|
* Pick a subdomain from a list of subdomains based on a the tile location.
|
|
27767
27808
|
*
|
|
27809
|
+
* @private
|
|
27768
27810
|
* @param {number} x The x tile coordinate.
|
|
27769
27811
|
* @param {number} y The y tile coordinate.
|
|
27770
27812
|
* @param {number} z The tile layer.
|
|
@@ -27784,9 +27826,9 @@ function m_getTileSubdomain(x, y, z, subdomains) {
|
|
|
27784
27826
|
* all equivalent. The comma-separated list can have subdomains that are of
|
|
27785
27827
|
* any length; the string and range both use one-character subdomains.
|
|
27786
27828
|
*
|
|
27829
|
+
* @private
|
|
27787
27830
|
* @param {string} base The tile format string
|
|
27788
27831
|
* @returns {function} A conversion function.
|
|
27789
|
-
* @private.
|
|
27790
27832
|
*/
|
|
27791
27833
|
function m_tileUrlFromTemplate(base) {
|
|
27792
27834
|
var xPattern = /\$?\{[xX]\}/g,
|
|
@@ -28281,7 +28323,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
28281
28323
|
y: m_this._options.tileHeight
|
|
28282
28324
|
},
|
|
28283
28325
|
queue: m_this._queue,
|
|
28284
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains)
|
|
28326
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains)
|
|
28285
28327
|
});
|
|
28286
28328
|
};
|
|
28287
28329
|
|
|
@@ -33818,6 +33860,7 @@ var m_memoizeConvertColor = {
|
|
|
33818
33860
|
* be returned quickly. If the memoization table gets over a certain size,
|
|
33819
33861
|
* just reset it.
|
|
33820
33862
|
*
|
|
33863
|
+
* @private
|
|
33821
33864
|
* @param {geo.geoColor} origColor The original color specification.
|
|
33822
33865
|
* @param {geo.geoColorObject} resultColor The result of the conversion.
|
|
33823
33866
|
* @returns {geo.geoColorObject} The `resultColor`.
|
|
@@ -34603,6 +34646,7 @@ var util = {
|
|
|
34603
34646
|
};
|
|
34604
34647
|
var layerParams = {
|
|
34605
34648
|
maxLevel: maxLevel,
|
|
34649
|
+
minLevel: Math.min(0, maxLevel),
|
|
34606
34650
|
wrapX: false,
|
|
34607
34651
|
wrapY: false,
|
|
34608
34652
|
tileOffset: function tileOffset() {
|
|
@@ -35030,7 +35074,7 @@ var util = {
|
|
|
35030
35074
|
* @param {object} target target object to modify.
|
|
35031
35075
|
* @param {object} sources object(s) to merge into the target.
|
|
35032
35076
|
* @returns {object} The merged object.
|
|
35033
|
-
* @
|
|
35077
|
+
* @memberof geo.util
|
|
35034
35078
|
*/
|
|
35035
35079
|
deepMerge: function deepMerge(target) {
|
|
35036
35080
|
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -35775,6 +35819,7 @@ __webpack_require__(5637), __webpack_require__(208), __webpack_require__(269), /
|
|
|
35775
35819
|
* elements, falsy for vertices.
|
|
35776
35820
|
* @returns {geo.meshFeature.meshColoredInfo} An object with the colored mesh
|
|
35777
35821
|
* information.
|
|
35822
|
+
* @memberof geo.util
|
|
35778
35823
|
*/
|
|
35779
35824
|
function createColoredMesh(feature, elementValues) {
|
|
35780
35825
|
var util = __webpack_require__(642);
|
|
@@ -36153,6 +36198,7 @@ var AlternateOpNames = {
|
|
|
36153
36198
|
*
|
|
36154
36199
|
* @param {object[]} seglist A PolyBool segment list.
|
|
36155
36200
|
* @returns {geo.polygonList|undefined} A polygon list.
|
|
36201
|
+
* @private
|
|
36156
36202
|
*/
|
|
36157
36203
|
function seglistToPolygonList(seglist) {
|
|
36158
36204
|
// This single line doesn't arrange holes correctly
|
|
@@ -36237,6 +36283,7 @@ function seglistToPolygonList(seglist) {
|
|
|
36237
36283
|
* around 0.11 mm in ground distance.
|
|
36238
36284
|
* @param {object} seglist A seglist array as used by the polybool library.
|
|
36239
36285
|
* @returns {object} A seglist array.
|
|
36286
|
+
* @private
|
|
36240
36287
|
*/
|
|
36241
36288
|
function polygonOperationSeglist(op, epsilon, seglist) {
|
|
36242
36289
|
op = 'select' + op.charAt(0).toUpperCase() + op.slice(1);
|
|
@@ -36306,6 +36353,7 @@ function polygonOperationSeglist(op, epsilon, seglist) {
|
|
|
36306
36353
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
36307
36354
|
* if poly is an object with a toPolygonList method.
|
|
36308
36355
|
* @returns {geo.polygonList} A list of polygons.
|
|
36356
|
+
* @memberof geo.util.polyops
|
|
36309
36357
|
*/
|
|
36310
36358
|
function toPolygonList(poly, mode, opts) {
|
|
36311
36359
|
mode = mode || {};
|
|
@@ -36400,6 +36448,7 @@ function toPolygonList(poly, mode, opts) {
|
|
|
36400
36448
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
36401
36449
|
* if ``mode.style`` is an object with a fromPolygonList method.
|
|
36402
36450
|
* @returns {geo.polygonAny} A polygon in one of several formats.
|
|
36451
|
+
* @memberof geo.util.polyops
|
|
36403
36452
|
*/
|
|
36404
36453
|
function fromPolygonList(poly, mode, opts) {
|
|
36405
36454
|
if (mode.style.fromPolygonList) {
|
|
@@ -36438,6 +36487,7 @@ function fromPolygonList(poly, mode, opts) {
|
|
|
36438
36487
|
/**
|
|
36439
36488
|
* Use a minimum style for output to include all of the results.
|
|
36440
36489
|
*
|
|
36490
|
+
* @private
|
|
36441
36491
|
* @param {geo.polygonList} polylist A list of polygons.
|
|
36442
36492
|
* @param {string} style the proposed style.
|
|
36443
36493
|
* @returns {string} The preferred style.
|
|
@@ -36468,6 +36518,7 @@ function minimumPolygonStyle(polylist, style) {
|
|
|
36468
36518
|
* Generate the correspondence between the source polygons and the output
|
|
36469
36519
|
* polygons. A polygon corresponds if it has at least two points in common.
|
|
36470
36520
|
*
|
|
36521
|
+
* @private
|
|
36471
36522
|
* @param {geo.polygonList} poly1 First set of source polygons.
|
|
36472
36523
|
* @param {geo.polygonList} poly2 Second set of source polygons.
|
|
36473
36524
|
* @param {geo.polygonList} newpoly Output polygons.
|
|
@@ -36535,6 +36586,7 @@ function generateCorrespondence(poly1, poly2, newpoly, results) {
|
|
|
36535
36586
|
/**
|
|
36536
36587
|
* Perform a general operation of a set of polygons.
|
|
36537
36588
|
*
|
|
36589
|
+
* @private
|
|
36538
36590
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
36539
36591
|
* difference, or xor.
|
|
36540
36592
|
* @param {geo.polygonAny|geo.util.polyop.spec} poly1 Either the first polygon
|
|
@@ -36618,6 +36670,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
|
|
|
36618
36670
|
/**
|
|
36619
36671
|
* Generate a polygon function for a specific operation.
|
|
36620
36672
|
*
|
|
36673
|
+
* @private
|
|
36621
36674
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
36622
36675
|
* difference, or xor.
|
|
36623
36676
|
* @returns {function} a function for the polygons.
|
|
@@ -36995,7 +37048,7 @@ module.exports = _vectorFeature;
|
|
|
36995
37048
|
* @constant
|
|
36996
37049
|
* @type {string}
|
|
36997
37050
|
*/
|
|
36998
|
-
module.exports = "1.
|
|
37051
|
+
module.exports = "1.14.0";
|
|
36999
37052
|
|
|
37000
37053
|
/***/ }),
|
|
37001
37054
|
|
|
@@ -42149,6 +42202,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
42149
42202
|
* @param {number} [opacity] If specified, set the opacity. Otherwise,
|
|
42150
42203
|
* return the opacity.
|
|
42151
42204
|
* @returns {number|this} The current opacity or the current layer.
|
|
42205
|
+
* @memberof geo.webgl.layer
|
|
42152
42206
|
*/
|
|
42153
42207
|
this.opacity = function (opacity) {
|
|
42154
42208
|
var result = s_opacity.apply(m_this, arguments);
|
|
@@ -42165,6 +42219,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
42165
42219
|
* get it.
|
|
42166
42220
|
* @returns {boolean|this} either the visibility (if getting) or the layer
|
|
42167
42221
|
* (if setting).
|
|
42222
|
+
* @memberof geo.webgl.layer
|
|
42168
42223
|
*/
|
|
42169
42224
|
this.visible = function (val) {
|
|
42170
42225
|
if (val === undefined) {
|
|
@@ -42189,6 +42244,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
42189
42244
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
42190
42245
|
* ensure that other layers have distinct z-indices from this one.
|
|
42191
42246
|
* @returns {number|this}
|
|
42247
|
+
* @memberof geo.webgl.layer
|
|
42192
42248
|
*/
|
|
42193
42249
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
42194
42250
|
var result = s_zIndex.apply(m_this, arguments);
|
|
@@ -42213,6 +42269,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
42213
42269
|
* @param {geo.webgl.webglRenderer} newRenderer The renderer to move to.
|
|
42214
42270
|
* @param {boolean} [rerender=false] If truthy, rerender after the switch.
|
|
42215
42271
|
* @returns {this}
|
|
42272
|
+
* @memberof geo.webgl.layer
|
|
42216
42273
|
*/
|
|
42217
42274
|
this.switchRenderer = function (newRenderer, rerender) {
|
|
42218
42275
|
if (newRenderer instanceof webglRenderer && newRenderer !== m_this.renderer()) {
|
|
@@ -42251,6 +42308,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
42251
42308
|
* Initialize after the layer is added to the map.
|
|
42252
42309
|
*
|
|
42253
42310
|
* @returns {this}
|
|
42311
|
+
* @memberof geo.webgl.layer
|
|
42254
42312
|
*/
|
|
42255
42313
|
this._init = function () {
|
|
42256
42314
|
var map = m_this.map();
|
|
@@ -42962,6 +43020,7 @@ var vgl = __webpack_require__(1611);
|
|
|
42962
43020
|
* @param {vgl.renderState} renderState An object that contains the context
|
|
42963
43021
|
* used for drawing.
|
|
42964
43022
|
* @param {number} textureUnit The number of the texture unit [0-15].
|
|
43023
|
+
* @private
|
|
42965
43024
|
*/
|
|
42966
43025
|
function activateTextureUnit(renderState, textureUnit) {
|
|
42967
43026
|
if (textureUnit >= 0 && textureUnit <= 31) {
|
|
@@ -44628,6 +44687,7 @@ var pointFeature = __webpack_require__(7541);
|
|
|
44628
44687
|
* @param {this} m_this The point-like feature.
|
|
44629
44688
|
* @param {object} [arg] Feature definition object that might specify the
|
|
44630
44689
|
* primitive shape.
|
|
44690
|
+
* @memberof geo.webgl
|
|
44631
44691
|
*/
|
|
44632
44692
|
function pointUtil(m_this, arg) {
|
|
44633
44693
|
arg = arg || {};
|
|
@@ -45689,6 +45749,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45689
45749
|
* Add a tile to the list of quads.
|
|
45690
45750
|
*
|
|
45691
45751
|
* @param {geo.tile} tile The tile to add and draw.
|
|
45752
|
+
* @memberof geo.webgl.tileLayer
|
|
45692
45753
|
*/
|
|
45693
45754
|
this._drawTile = function (tile) {
|
|
45694
45755
|
if (!m_quadFeature) {
|
|
@@ -45781,6 +45842,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45781
45842
|
* @param {boolean} [val] If specified, change the visibility, otherwise
|
|
45782
45843
|
* return it.
|
|
45783
45844
|
* @returns {boolean|this} The current visibility or the layer.
|
|
45845
|
+
* @memberof geo.webgl.tileLayer
|
|
45784
45846
|
*/
|
|
45785
45847
|
this.visible = function (val) {
|
|
45786
45848
|
if (val === undefined) {
|
|
@@ -45805,6 +45867,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45805
45867
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
45806
45868
|
* ensure that other layers have distinct z-indices from this one.
|
|
45807
45869
|
* @returns {number|this}
|
|
45870
|
+
* @memberof geo.webgl.tileLayer
|
|
45808
45871
|
*/
|
|
45809
45872
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
45810
45873
|
if (zIndex !== undefined) {
|
|
@@ -45819,6 +45882,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45819
45882
|
*
|
|
45820
45883
|
* @param {geo.event} [evt] If specified, the layer add or remove event that
|
|
45821
45884
|
* triggered this. If `undefined`, clear the quads but don't redraw.
|
|
45885
|
+
* @memberof geo.webgl.tileLayer
|
|
45822
45886
|
*/
|
|
45823
45887
|
this._clearQuads = function (evt) {
|
|
45824
45888
|
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) {
|
|
@@ -45840,6 +45904,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45840
45904
|
*
|
|
45841
45905
|
* @param {object} request A value to pass to the parent class.
|
|
45842
45906
|
* @returns {this}
|
|
45907
|
+
* @memberof geo.webgl.tileLayer
|
|
45843
45908
|
*/
|
|
45844
45909
|
this._update = function (request) {
|
|
45845
45910
|
s_update.call(m_this, request);
|
|
@@ -45852,6 +45917,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45852
45917
|
|
|
45853
45918
|
/**
|
|
45854
45919
|
* Cleanup. This purges the texture and tile cache.
|
|
45920
|
+
* @memberof geo.webgl.tileLayer
|
|
45855
45921
|
*/
|
|
45856
45922
|
this._cleanup = function () {
|
|
45857
45923
|
var tile;
|
|
@@ -45869,6 +45935,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45869
45935
|
|
|
45870
45936
|
/**
|
|
45871
45937
|
* Destroy.
|
|
45938
|
+
* @memberof geo.webgl.tileLayer
|
|
45872
45939
|
*/
|
|
45873
45940
|
this._exit = function () {
|
|
45874
45941
|
var map = m_this.map();
|
|
@@ -45883,6 +45950,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
45883
45950
|
|
|
45884
45951
|
/**
|
|
45885
45952
|
* Initialize after the layer is added to the map.
|
|
45953
|
+
* @memberof geo.webgl.tileLayer
|
|
45886
45954
|
*/
|
|
45887
45955
|
this._init = function () {
|
|
45888
45956
|
s_init.apply(m_this, arguments);
|