geojs 1.12.11 → 1.13.1
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 +78 -24
- package/geo.lean.js +78 -24
- 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 +21 -0
- package/src/markerFeature.js +11 -7
- package/src/osmLayer.js +1 -1
- package/src/pixelmapLayer.js +1 -1
- package/src/pointFeature.js +2 -2
- 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
|
|
@@ -19222,6 +19225,34 @@ var _map2 = function map(arg) {
|
|
|
19222
19225
|
return m_this;
|
|
19223
19226
|
};
|
|
19224
19227
|
|
|
19228
|
+
/**
|
|
19229
|
+
* Get the corners of the map. Since the map can be rotated, this is
|
|
19230
|
+
* necessarily not the same as the overall bounds, which is the orthogonal
|
|
19231
|
+
* bounding box.
|
|
19232
|
+
*
|
|
19233
|
+
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
|
|
19234
|
+
* gcs, `null` to use the map gcs, or any other transform. If setting the
|
|
19235
|
+
* bounds, they are converted from this gcs to the map projection. The
|
|
19236
|
+
* returned bounds are converted from the map projection to this gcs.
|
|
19237
|
+
* @returns {geo.geoPosition[]} The corners of the map in the order
|
|
19238
|
+
* upper-left, upper-right, lower-right, lower-left.
|
|
19239
|
+
*/
|
|
19240
|
+
this.corners = function (gcs) {
|
|
19241
|
+
return [m_this.displayToGcs({
|
|
19242
|
+
x: 0,
|
|
19243
|
+
y: 0
|
|
19244
|
+
}, gcs), m_this.displayToGcs({
|
|
19245
|
+
x: m_width,
|
|
19246
|
+
y: 0
|
|
19247
|
+
}, gcs), m_this.displayToGcs({
|
|
19248
|
+
x: m_width,
|
|
19249
|
+
y: m_height
|
|
19250
|
+
}, gcs), m_this.displayToGcs({
|
|
19251
|
+
x: 0,
|
|
19252
|
+
y: m_height
|
|
19253
|
+
}, gcs)];
|
|
19254
|
+
};
|
|
19255
|
+
|
|
19225
19256
|
/**
|
|
19226
19257
|
* Get the center zoom level necessary to display the given bounds.
|
|
19227
19258
|
*
|
|
@@ -22781,9 +22812,7 @@ var _markerFeature = function markerFeature(arg) {
|
|
|
22781
22812
|
|
|
22782
22813
|
// Find markers inside the bounding box
|
|
22783
22814
|
idx = m_rangeTree.range(min.x, min.y, max.x, max.y);
|
|
22784
|
-
idx.sort(
|
|
22785
|
-
return a - b;
|
|
22786
|
-
});
|
|
22815
|
+
idx = Uint32Array.from(idx).sort();
|
|
22787
22816
|
// Filter by circular region
|
|
22788
22817
|
idx.forEach(function (i) {
|
|
22789
22818
|
var d = data[i],
|
|
@@ -22940,18 +22969,20 @@ var _markerFeature = function markerFeature(arg) {
|
|
|
22940
22969
|
};
|
|
22941
22970
|
// Find markers inside the bounding box. Only these could be in the polygon
|
|
22942
22971
|
idx = m_rangeTree.range(min.x, min.y, max.x, max.y);
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
|
|
22972
|
+
/* sort by index. This had been
|
|
22973
|
+
* idx.sort((a, b) => a - b);
|
|
22974
|
+
* but this requires continual casting from int to str and back, so using
|
|
22975
|
+
* a Uint32Array is faster, though potentially limits the maximum number of
|
|
22976
|
+
* markers. */
|
|
22977
|
+
idx = Uint32Array.from(idx).sort();
|
|
22947
22978
|
// filter markers within the polygon
|
|
22948
22979
|
idx.forEach(function (i) {
|
|
22949
22980
|
var d = data[i];
|
|
22950
22981
|
var p = m_this.position()(d, i);
|
|
22951
|
-
var rad = radius(
|
|
22952
|
-
swz = scaleWithZoom(
|
|
22953
|
-
var so = strokeOffset(
|
|
22954
|
-
s = swz ? strokeWidth(
|
|
22982
|
+
var rad = radius(d, i),
|
|
22983
|
+
swz = scaleWithZoom(d, i);
|
|
22984
|
+
var so = strokeOffset(d, i),
|
|
22985
|
+
s = swz ? strokeWidth(d, i) : 0;
|
|
22955
22986
|
var ris = radiusIncludesStroke(d, i);
|
|
22956
22987
|
ris = ris === undefined ? true : ris;
|
|
22957
22988
|
var rwos = ris ? rad + s * (so - 1) / 2 : rad; // radius without stroke
|
|
@@ -24085,7 +24116,7 @@ var _osmLayer = function osmLayer(arg) {
|
|
|
24085
24116
|
queue: m_this._queue,
|
|
24086
24117
|
overlap: m_this._options.tileOverlap,
|
|
24087
24118
|
scale: m_this._options.tileScale,
|
|
24088
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
24119
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
24089
24120
|
crossDomain: m_this._options.crossDomain
|
|
24090
24121
|
});
|
|
24091
24122
|
};
|
|
@@ -24799,7 +24830,7 @@ var _pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
24799
24830
|
queue: m_this._queue,
|
|
24800
24831
|
overlap: m_this._options.tileOverlap,
|
|
24801
24832
|
scale: m_this._options.tileScale,
|
|
24802
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains),
|
|
24833
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains),
|
|
24803
24834
|
crossDomain: m_this._options.crossDomain
|
|
24804
24835
|
});
|
|
24805
24836
|
};
|
|
@@ -25233,9 +25264,7 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
25233
25264
|
|
|
25234
25265
|
// Find points inside the bounding box
|
|
25235
25266
|
idx = m_rangeTree.range(min.x, min.y, max.x, max.y);
|
|
25236
|
-
idx.sort(
|
|
25237
|
-
return a - b;
|
|
25238
|
-
});
|
|
25267
|
+
idx = Uint32Array.from(idx).sort();
|
|
25239
25268
|
// Filter by circular region
|
|
25240
25269
|
idx.forEach(function (i) {
|
|
25241
25270
|
var d = data[i],
|
|
@@ -25375,9 +25404,7 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
25375
25404
|
// Find points inside the bounding box. Only these could be in the polygon
|
|
25376
25405
|
idx = m_rangeTree.range(min.x, min.y, max.x, max.y);
|
|
25377
25406
|
// sort by index
|
|
25378
|
-
idx.sort(
|
|
25379
|
-
return a - b;
|
|
25380
|
-
});
|
|
25407
|
+
idx = Uint32Array.from(idx).sort();
|
|
25381
25408
|
// filter points within the polygon
|
|
25382
25409
|
idx.forEach(function (i) {
|
|
25383
25410
|
var d = data[i],
|
|
@@ -28099,7 +28126,7 @@ module.exports = _sceneObject;
|
|
|
28099
28126
|
* @constant
|
|
28100
28127
|
* @type {string}
|
|
28101
28128
|
*/
|
|
28102
|
-
module.exports = "
|
|
28129
|
+
module.exports = "9174d2af787e4421e022dca6933c5ee848294c1a";
|
|
28103
28130
|
|
|
28104
28131
|
/***/ }),
|
|
28105
28132
|
|
|
@@ -30742,6 +30769,7 @@ function modulo(a, b) {
|
|
|
30742
30769
|
/**
|
|
30743
30770
|
* Pick a subdomain from a list of subdomains based on a the tile location.
|
|
30744
30771
|
*
|
|
30772
|
+
* @private
|
|
30745
30773
|
* @param {number} x The x tile coordinate.
|
|
30746
30774
|
* @param {number} y The y tile coordinate.
|
|
30747
30775
|
* @param {number} z The tile layer.
|
|
@@ -30761,9 +30789,9 @@ function m_getTileSubdomain(x, y, z, subdomains) {
|
|
|
30761
30789
|
* all equivalent. The comma-separated list can have subdomains that are of
|
|
30762
30790
|
* any length; the string and range both use one-character subdomains.
|
|
30763
30791
|
*
|
|
30792
|
+
* @private
|
|
30764
30793
|
* @param {string} base The tile format string
|
|
30765
30794
|
* @returns {function} A conversion function.
|
|
30766
|
-
* @private.
|
|
30767
30795
|
*/
|
|
30768
30796
|
function m_tileUrlFromTemplate(base) {
|
|
30769
30797
|
var xPattern = /\$?\{[xX]\}/g,
|
|
@@ -31258,7 +31286,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
31258
31286
|
y: m_this._options.tileHeight
|
|
31259
31287
|
},
|
|
31260
31288
|
queue: m_this._queue,
|
|
31261
|
-
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, urlParams.level || 0, m_this._options.subdomains)
|
|
31289
|
+
url: m_this._options.url.call(m_this, urlParams.x, urlParams.y, Math.max(urlParams.level || 0, 0), m_this._options.subdomains)
|
|
31262
31290
|
});
|
|
31263
31291
|
};
|
|
31264
31292
|
|
|
@@ -36795,6 +36823,7 @@ var m_memoizeConvertColor = {
|
|
|
36795
36823
|
* be returned quickly. If the memoization table gets over a certain size,
|
|
36796
36824
|
* just reset it.
|
|
36797
36825
|
*
|
|
36826
|
+
* @private
|
|
36798
36827
|
* @param {geo.geoColor} origColor The original color specification.
|
|
36799
36828
|
* @param {geo.geoColorObject} resultColor The result of the conversion.
|
|
36800
36829
|
* @returns {geo.geoColorObject} The `resultColor`.
|
|
@@ -37580,6 +37609,7 @@ var util = {
|
|
|
37580
37609
|
};
|
|
37581
37610
|
var layerParams = {
|
|
37582
37611
|
maxLevel: maxLevel,
|
|
37612
|
+
minLevel: Math.min(0, maxLevel),
|
|
37583
37613
|
wrapX: false,
|
|
37584
37614
|
wrapY: false,
|
|
37585
37615
|
tileOffset: function tileOffset() {
|
|
@@ -38007,7 +38037,7 @@ var util = {
|
|
|
38007
38037
|
* @param {object} target target object to modify.
|
|
38008
38038
|
* @param {object} sources object(s) to merge into the target.
|
|
38009
38039
|
* @returns {object} The merged object.
|
|
38010
|
-
* @
|
|
38040
|
+
* @memberof geo.util
|
|
38011
38041
|
*/
|
|
38012
38042
|
deepMerge: function deepMerge(target) {
|
|
38013
38043
|
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -38752,6 +38782,7 @@ __webpack_require__(5637), __webpack_require__(208), __webpack_require__(269), /
|
|
|
38752
38782
|
* elements, falsy for vertices.
|
|
38753
38783
|
* @returns {geo.meshFeature.meshColoredInfo} An object with the colored mesh
|
|
38754
38784
|
* information.
|
|
38785
|
+
* @memberof geo.util
|
|
38755
38786
|
*/
|
|
38756
38787
|
function createColoredMesh(feature, elementValues) {
|
|
38757
38788
|
var util = __webpack_require__(642);
|
|
@@ -39130,6 +39161,7 @@ var AlternateOpNames = {
|
|
|
39130
39161
|
*
|
|
39131
39162
|
* @param {object[]} seglist A PolyBool segment list.
|
|
39132
39163
|
* @returns {geo.polygonList|undefined} A polygon list.
|
|
39164
|
+
* @private
|
|
39133
39165
|
*/
|
|
39134
39166
|
function seglistToPolygonList(seglist) {
|
|
39135
39167
|
// This single line doesn't arrange holes correctly
|
|
@@ -39214,6 +39246,7 @@ function seglistToPolygonList(seglist) {
|
|
|
39214
39246
|
* around 0.11 mm in ground distance.
|
|
39215
39247
|
* @param {object} seglist A seglist array as used by the polybool library.
|
|
39216
39248
|
* @returns {object} A seglist array.
|
|
39249
|
+
* @private
|
|
39217
39250
|
*/
|
|
39218
39251
|
function polygonOperationSeglist(op, epsilon, seglist) {
|
|
39219
39252
|
op = 'select' + op.charAt(0).toUpperCase() + op.slice(1);
|
|
@@ -39283,6 +39316,7 @@ function polygonOperationSeglist(op, epsilon, seglist) {
|
|
|
39283
39316
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
39284
39317
|
* if poly is an object with a toPolygonList method.
|
|
39285
39318
|
* @returns {geo.polygonList} A list of polygons.
|
|
39319
|
+
* @memberof geo.util.polyops
|
|
39286
39320
|
*/
|
|
39287
39321
|
function toPolygonList(poly, mode, opts) {
|
|
39288
39322
|
mode = mode || {};
|
|
@@ -39377,6 +39411,7 @@ function toPolygonList(poly, mode, opts) {
|
|
|
39377
39411
|
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
|
|
39378
39412
|
* if ``mode.style`` is an object with a fromPolygonList method.
|
|
39379
39413
|
* @returns {geo.polygonAny} A polygon in one of several formats.
|
|
39414
|
+
* @memberof geo.util.polyops
|
|
39380
39415
|
*/
|
|
39381
39416
|
function fromPolygonList(poly, mode, opts) {
|
|
39382
39417
|
if (mode.style.fromPolygonList) {
|
|
@@ -39415,6 +39450,7 @@ function fromPolygonList(poly, mode, opts) {
|
|
|
39415
39450
|
/**
|
|
39416
39451
|
* Use a minimum style for output to include all of the results.
|
|
39417
39452
|
*
|
|
39453
|
+
* @private
|
|
39418
39454
|
* @param {geo.polygonList} polylist A list of polygons.
|
|
39419
39455
|
* @param {string} style the proposed style.
|
|
39420
39456
|
* @returns {string} The preferred style.
|
|
@@ -39445,6 +39481,7 @@ function minimumPolygonStyle(polylist, style) {
|
|
|
39445
39481
|
* Generate the correspondence between the source polygons and the output
|
|
39446
39482
|
* polygons. A polygon corresponds if it has at least two points in common.
|
|
39447
39483
|
*
|
|
39484
|
+
* @private
|
|
39448
39485
|
* @param {geo.polygonList} poly1 First set of source polygons.
|
|
39449
39486
|
* @param {geo.polygonList} poly2 Second set of source polygons.
|
|
39450
39487
|
* @param {geo.polygonList} newpoly Output polygons.
|
|
@@ -39512,6 +39549,7 @@ function generateCorrespondence(poly1, poly2, newpoly, results) {
|
|
|
39512
39549
|
/**
|
|
39513
39550
|
* Perform a general operation of a set of polygons.
|
|
39514
39551
|
*
|
|
39552
|
+
* @private
|
|
39515
39553
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
39516
39554
|
* difference, or xor.
|
|
39517
39555
|
* @param {geo.polygonAny|geo.util.polyop.spec} poly1 Either the first polygon
|
|
@@ -39595,6 +39633,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
|
|
|
39595
39633
|
/**
|
|
39596
39634
|
* Generate a polygon function for a specific operation.
|
|
39597
39635
|
*
|
|
39636
|
+
* @private
|
|
39598
39637
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
39599
39638
|
* difference, or xor.
|
|
39600
39639
|
* @returns {function} a function for the polygons.
|
|
@@ -39972,7 +40011,7 @@ module.exports = _vectorFeature;
|
|
|
39972
40011
|
* @constant
|
|
39973
40012
|
* @type {string}
|
|
39974
40013
|
*/
|
|
39975
|
-
module.exports = "1.
|
|
40014
|
+
module.exports = "1.13.1";
|
|
39976
40015
|
|
|
39977
40016
|
/***/ }),
|
|
39978
40017
|
|
|
@@ -45126,6 +45165,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45126
45165
|
* @param {number} [opacity] If specified, set the opacity. Otherwise,
|
|
45127
45166
|
* return the opacity.
|
|
45128
45167
|
* @returns {number|this} The current opacity or the current layer.
|
|
45168
|
+
* @memberof geo.webgl.layer
|
|
45129
45169
|
*/
|
|
45130
45170
|
this.opacity = function (opacity) {
|
|
45131
45171
|
var result = s_opacity.apply(m_this, arguments);
|
|
@@ -45142,6 +45182,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45142
45182
|
* get it.
|
|
45143
45183
|
* @returns {boolean|this} either the visibility (if getting) or the layer
|
|
45144
45184
|
* (if setting).
|
|
45185
|
+
* @memberof geo.webgl.layer
|
|
45145
45186
|
*/
|
|
45146
45187
|
this.visible = function (val) {
|
|
45147
45188
|
if (val === undefined) {
|
|
@@ -45166,6 +45207,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45166
45207
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
45167
45208
|
* ensure that other layers have distinct z-indices from this one.
|
|
45168
45209
|
* @returns {number|this}
|
|
45210
|
+
* @memberof geo.webgl.layer
|
|
45169
45211
|
*/
|
|
45170
45212
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
45171
45213
|
var result = s_zIndex.apply(m_this, arguments);
|
|
@@ -45190,6 +45232,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45190
45232
|
* @param {geo.webgl.webglRenderer} newRenderer The renderer to move to.
|
|
45191
45233
|
* @param {boolean} [rerender=false] If truthy, rerender after the switch.
|
|
45192
45234
|
* @returns {this}
|
|
45235
|
+
* @memberof geo.webgl.layer
|
|
45193
45236
|
*/
|
|
45194
45237
|
this.switchRenderer = function (newRenderer, rerender) {
|
|
45195
45238
|
if (newRenderer instanceof webglRenderer && newRenderer !== m_this.renderer()) {
|
|
@@ -45228,6 +45271,7 @@ var webgl_layer = function webgl_layer() {
|
|
|
45228
45271
|
* Initialize after the layer is added to the map.
|
|
45229
45272
|
*
|
|
45230
45273
|
* @returns {this}
|
|
45274
|
+
* @memberof geo.webgl.layer
|
|
45231
45275
|
*/
|
|
45232
45276
|
this._init = function () {
|
|
45233
45277
|
var map = m_this.map();
|
|
@@ -45939,6 +45983,7 @@ var vgl = __webpack_require__(1611);
|
|
|
45939
45983
|
* @param {vgl.renderState} renderState An object that contains the context
|
|
45940
45984
|
* used for drawing.
|
|
45941
45985
|
* @param {number} textureUnit The number of the texture unit [0-15].
|
|
45986
|
+
* @private
|
|
45942
45987
|
*/
|
|
45943
45988
|
function activateTextureUnit(renderState, textureUnit) {
|
|
45944
45989
|
if (textureUnit >= 0 && textureUnit <= 31) {
|
|
@@ -47605,6 +47650,7 @@ var pointFeature = __webpack_require__(7541);
|
|
|
47605
47650
|
* @param {this} m_this The point-like feature.
|
|
47606
47651
|
* @param {object} [arg] Feature definition object that might specify the
|
|
47607
47652
|
* primitive shape.
|
|
47653
|
+
* @memberof geo.webgl
|
|
47608
47654
|
*/
|
|
47609
47655
|
function pointUtil(m_this, arg) {
|
|
47610
47656
|
arg = arg || {};
|
|
@@ -48666,6 +48712,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48666
48712
|
* Add a tile to the list of quads.
|
|
48667
48713
|
*
|
|
48668
48714
|
* @param {geo.tile} tile The tile to add and draw.
|
|
48715
|
+
* @memberof geo.webgl.tileLayer
|
|
48669
48716
|
*/
|
|
48670
48717
|
this._drawTile = function (tile) {
|
|
48671
48718
|
if (!m_quadFeature) {
|
|
@@ -48758,6 +48805,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48758
48805
|
* @param {boolean} [val] If specified, change the visibility, otherwise
|
|
48759
48806
|
* return it.
|
|
48760
48807
|
* @returns {boolean|this} The current visibility or the layer.
|
|
48808
|
+
* @memberof geo.webgl.tileLayer
|
|
48761
48809
|
*/
|
|
48762
48810
|
this.visible = function (val) {
|
|
48763
48811
|
if (val === undefined) {
|
|
@@ -48782,6 +48830,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48782
48830
|
* truthy, allow other layers to have the same z-index. Otherwise,
|
|
48783
48831
|
* ensure that other layers have distinct z-indices from this one.
|
|
48784
48832
|
* @returns {number|this}
|
|
48833
|
+
* @memberof geo.webgl.tileLayer
|
|
48785
48834
|
*/
|
|
48786
48835
|
this.zIndex = function (zIndex, allowDuplicate) {
|
|
48787
48836
|
if (zIndex !== undefined) {
|
|
@@ -48796,6 +48845,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48796
48845
|
*
|
|
48797
48846
|
* @param {geo.event} [evt] If specified, the layer add or remove event that
|
|
48798
48847
|
* triggered this. If `undefined`, clear the quads but don't redraw.
|
|
48848
|
+
* @memberof geo.webgl.tileLayer
|
|
48799
48849
|
*/
|
|
48800
48850
|
this._clearQuads = function (evt) {
|
|
48801
48851
|
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) {
|
|
@@ -48817,6 +48867,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48817
48867
|
*
|
|
48818
48868
|
* @param {object} request A value to pass to the parent class.
|
|
48819
48869
|
* @returns {this}
|
|
48870
|
+
* @memberof geo.webgl.tileLayer
|
|
48820
48871
|
*/
|
|
48821
48872
|
this._update = function (request) {
|
|
48822
48873
|
s_update.call(m_this, request);
|
|
@@ -48829,6 +48880,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48829
48880
|
|
|
48830
48881
|
/**
|
|
48831
48882
|
* Cleanup. This purges the texture and tile cache.
|
|
48883
|
+
* @memberof geo.webgl.tileLayer
|
|
48832
48884
|
*/
|
|
48833
48885
|
this._cleanup = function () {
|
|
48834
48886
|
var tile;
|
|
@@ -48846,6 +48898,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48846
48898
|
|
|
48847
48899
|
/**
|
|
48848
48900
|
* Destroy.
|
|
48901
|
+
* @memberof geo.webgl.tileLayer
|
|
48849
48902
|
*/
|
|
48850
48903
|
this._exit = function () {
|
|
48851
48904
|
var map = m_this.map();
|
|
@@ -48860,6 +48913,7 @@ var webgl_tileLayer = function webgl_tileLayer() {
|
|
|
48860
48913
|
|
|
48861
48914
|
/**
|
|
48862
48915
|
* Initialize after the layer is added to the map.
|
|
48916
|
+
* @memberof geo.webgl.tileLayer
|
|
48863
48917
|
*/
|
|
48864
48918
|
this._init = function () {
|
|
48865
48919
|
s_init.apply(m_this, arguments);
|