geojs 1.15.4 → 1.15.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/.git-blame-ignore-revs +9 -0
- package/.github/workflows/main.yml +21 -10
- package/eslint.config.js +6 -1
- package/geo.js +286 -282
- package/geo.js.map +1 -0
- package/geo.lean.js +286 -282
- package/geo.lean.js.map +1 -0
- package/geo.lean.min.js +3 -3
- package/geo.lean.min.js.map +1 -0
- package/geo.min.js +3 -3
- package/geo.min.js.map +1 -0
- package/package.json +2 -2
- package/src/annotation/annotation.js +3 -3
- package/src/annotation/rectangleAnnotation.js +1 -1
- package/src/choroplethFeature.js +7 -7
- package/src/contourFeature.js +4 -4
- package/src/event.js +3 -3
- package/src/feature.js +2 -2
- package/src/fetchQueue.js +2 -2
- package/src/fileReader.js +6 -6
- package/src/geojsonReader.js +5 -5
- package/src/graphFeature.js +2 -2
- package/src/gridFeature.js +4 -4
- package/src/heatmapFeature.js +6 -6
- package/src/isolineFeature.js +16 -16
- package/src/lineFeature.js +20 -20
- package/src/map.js +9 -9
- package/src/mapInteractor.js +3 -3
- package/src/markerFeature.js +15 -15
- package/src/meshFeature.js +3 -3
- package/src/object.js +5 -5
- package/src/pathFeature.js +7 -7
- package/src/pixelmapFeature.js +11 -10
- package/src/pixelmapLayer.js +1 -1
- package/src/pointFeature.js +12 -12
- package/src/polygonFeature.js +17 -17
- package/src/quadFeature.js +13 -13
- package/src/registry.js +7 -7
- package/src/svg/svgRenderer.js +6 -6
- package/src/svg/vectorFeature.js +4 -4
- package/src/textFeature.js +30 -30
- package/src/tile.js +1 -1
- package/src/tileCache.js +2 -2
- package/src/tileLayer.js +9 -9
- package/src/trackFeature.js +10 -10
- package/src/typedef.js +1 -1
- package/src/ui/colorLegendWidget.js +1 -1
- package/src/ui/legendWidget.js +7 -7
- package/src/ui/scaleWidget.js +1 -1
- package/src/util/clustering.js +1 -1
- package/src/util/color.js +1 -1
- package/src/util/common.js +1 -1
- package/src/util/polyops.js +1 -1
- package/src/util/throttle.js +6 -6
- package/src/vectorFeature.js +13 -13
- package/src/webgl/pixelmapFeature.js +3 -0
- package/src/webgl/quadFeature.js +1 -1
package/geo.js
CHANGED
|
@@ -426,16 +426,16 @@ function scale(out, a, v) {
|
|
|
426
426
|
* unspecified, callback will be executed one final time after the last
|
|
427
427
|
* throttled-function call. (After the throttled-function has not been
|
|
428
428
|
* called for `delay` milliseconds, the internal counter is reset)
|
|
429
|
-
* @param {
|
|
429
|
+
* @param {Function} [callback] A function to be executed after `delay`
|
|
430
430
|
* milliseconds. The `this` context and all arguments are passed through,
|
|
431
431
|
* as-is, to `callback` when the throttled-function is executed.
|
|
432
|
-
* @param {
|
|
432
|
+
* @param {Function} [accumulator] A function to be executed (synchronously)
|
|
433
433
|
* during **each** call to the wrapped function. Typically, this
|
|
434
434
|
* this method is used to accumulate values that the callback uses
|
|
435
435
|
* when it finally executes.
|
|
436
436
|
* @param {boolean} [debounce_mode] See the `at_begin` parameter of the
|
|
437
437
|
* {@link geo.util.debounce} function.
|
|
438
|
-
* @returns {
|
|
438
|
+
* @returns {Function} The throttled version of `callback`.
|
|
439
439
|
*
|
|
440
440
|
* @example
|
|
441
441
|
* var throttled = geo.util.throttle( delay, [ no_trailing, ] callback );
|
|
@@ -551,15 +551,15 @@ var throttle = function throttle(delay, no_trailing, callback, accumulator, debo
|
|
|
551
551
|
* executed only at the first debounced-function call. (After the
|
|
552
552
|
* throttled-function has not been called for `delay` milliseconds, the
|
|
553
553
|
* internal counter is reset)
|
|
554
|
-
* @param {
|
|
554
|
+
* @param {Function} callback A function to be executed after delay milliseconds.
|
|
555
555
|
* The `this` context and all arguments are passed through, as-is, to
|
|
556
556
|
* `callback` when the debounced-function is executed.
|
|
557
|
-
* @param {
|
|
557
|
+
* @param {Function} [accumulator] A function to be executed (synchronously)
|
|
558
558
|
* during **each** call to the wrapped function. Typically, this
|
|
559
559
|
* this method is used to accumulate values that the callback uses
|
|
560
560
|
* when it finally executes.
|
|
561
561
|
*
|
|
562
|
-
* @returns {
|
|
562
|
+
* @returns {Function} A new, debounced, function.
|
|
563
563
|
*
|
|
564
564
|
* @example
|
|
565
565
|
* var debounced = geo.util.debounce( delay, [ at_begin, ] callback );
|
|
@@ -1150,10 +1150,10 @@ var util = __webpack_require__(642);
|
|
|
1150
1150
|
*
|
|
1151
1151
|
* @typedef {geo.feature.spec} geo.trackFeature.spec
|
|
1152
1152
|
* @extends geo.feature.spec
|
|
1153
|
-
* @property {geo.geoPosition|
|
|
1153
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
1154
1154
|
* Default is (data).
|
|
1155
|
-
* @property {number|
|
|
1156
|
-
* @property {object|
|
|
1155
|
+
* @property {number|Function} [time] Time of the data. Default is `(data).t`.
|
|
1156
|
+
* @property {object|Function} [track] Tracks from the data. Default is
|
|
1157
1157
|
* (data). Typically, the data is an array of tracks, each of which is an
|
|
1158
1158
|
* array of points, each of which has a position and time. The position and
|
|
1159
1159
|
* time functions are called for each point as `position(trackPoint,
|
|
@@ -1166,7 +1166,7 @@ var util = __webpack_require__(642);
|
|
|
1166
1166
|
* `null`, this is the maximum time in any track.
|
|
1167
1167
|
* @property {number} [duration=null] Duration between start and end times.
|
|
1168
1168
|
* Ignored if both start and end times are specified.
|
|
1169
|
-
* @property {number|
|
|
1169
|
+
* @property {number|Function} [text] Text to use for the head of the track.
|
|
1170
1170
|
* If specified, the track head is rendered as text. If `undefined` a marker
|
|
1171
1171
|
* is used instead. If `null` or an empty string (`''`), neither a marker
|
|
1172
1172
|
* nor text is used.
|
|
@@ -1243,7 +1243,7 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
1243
1243
|
* Return a function for position of a dependent line feature.
|
|
1244
1244
|
*
|
|
1245
1245
|
* @param {string} key One of `past`, `current` or `future`.
|
|
1246
|
-
* @returns {
|
|
1246
|
+
* @returns {Function} The position function.
|
|
1247
1247
|
*/
|
|
1248
1248
|
this._linePosition = function (key) {
|
|
1249
1249
|
return function (d, i, l, j) {
|
|
@@ -1690,11 +1690,11 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Get/set track accessor.
|
|
1692
1692
|
*
|
|
1693
|
-
* @param {object|
|
|
1693
|
+
* @param {object|Function} [val] If not specified, return the current track
|
|
1694
1694
|
* accessor. If specified, use this for the track accessor and return
|
|
1695
1695
|
* `this`. If a function is given, the function is passed `(dataElement,
|
|
1696
1696
|
* dataIndex)` and returns an array of vertex elements.
|
|
1697
|
-
* @returns {object|
|
|
1697
|
+
* @returns {object|Function|this} The current track accessor or this feature.
|
|
1698
1698
|
*/
|
|
1699
1699
|
this.track = function (val) {
|
|
1700
1700
|
if (val === undefined) {
|
|
@@ -1710,11 +1710,11 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Get/Set position accessor.
|
|
1712
1712
|
*
|
|
1713
|
-
* @param {geo.geoPosition|
|
|
1713
|
+
* @param {geo.geoPosition|Function} [val] If not specified, return the
|
|
1714
1714
|
* current position accessor. If specified, use this for the position
|
|
1715
1715
|
* accessor and return `this`. If a function is given, this is called
|
|
1716
1716
|
* with `(vertexElement, vertexIndex, dataElement, dataIndex)`.
|
|
1717
|
-
* @returns {geo.geoPosition|
|
|
1717
|
+
* @returns {geo.geoPosition|Function|this} The current position or this
|
|
1718
1718
|
* feature.
|
|
1719
1719
|
*/
|
|
1720
1720
|
this.position = function (val) {
|
|
@@ -1735,7 +1735,7 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
1735
1735
|
* If specified, use this for the time accessor and return `this`. If a
|
|
1736
1736
|
* function is given, this is called with `(vertexElement, vertexIndex,
|
|
1737
1737
|
* dataElement, dataIndex)`.
|
|
1738
|
-
* @returns {number|
|
|
1738
|
+
* @returns {number|Function|this} The current time or this feature.
|
|
1739
1739
|
*/
|
|
1740
1740
|
this.time = function (val) {
|
|
1741
1741
|
if (val === undefined) {
|
|
@@ -2832,7 +2832,7 @@ var util = __webpack_require__(642);
|
|
|
2832
2832
|
*
|
|
2833
2833
|
* @typedef {geo.tileLayer.spec} geo.pixelmapLayer.spec
|
|
2834
2834
|
* @extends {geo.tileLayer.spec}
|
|
2835
|
-
* @property {geo.geoColor|
|
|
2835
|
+
* @property {geo.geoColor|Function} [color] The color that should be used
|
|
2836
2836
|
* for each data element. Data elements correspond to the indices in the
|
|
2837
2837
|
* pixel map. If an index is larger than the number of data elements, it will
|
|
2838
2838
|
* be transparent. If there is more data than there are indices, it is
|
|
@@ -3469,10 +3469,10 @@ var _fileReader = function fileReader(arg) {
|
|
|
3469
3469
|
* @param {File|Blob|string|object} file This is either a `File` object, a
|
|
3470
3470
|
* `Blob` object, a string representation of a file, or an object
|
|
3471
3471
|
* representing data from a file.
|
|
3472
|
-
* @param {
|
|
3472
|
+
* @param {Function} [done] An optional callback function when the read is
|
|
3473
3473
|
* complete. This is called with `false` on error or the object that was
|
|
3474
3474
|
* read and parsed by the reader.
|
|
3475
|
-
* @param {
|
|
3475
|
+
* @param {Function} [progress] A function which is passed `ProgressEvent`
|
|
3476
3476
|
* information from a `FileReader`. This includes `loaded` and `total`
|
|
3477
3477
|
* each with a number of bytes.
|
|
3478
3478
|
* @returns {Promise} A `Promise` that resolves with object parsed by the
|
|
@@ -3492,9 +3492,9 @@ var _fileReader = function fileReader(arg) {
|
|
|
3492
3492
|
/**
|
|
3493
3493
|
* Return a `FileReader` with handlers attached.
|
|
3494
3494
|
*
|
|
3495
|
-
* @param {
|
|
3495
|
+
* @param {Function} done A callback that receives either the string read
|
|
3496
3496
|
* from the file or a `DOMException` with an error.
|
|
3497
|
-
* @param {
|
|
3497
|
+
* @param {Function} [progress] A function which is passed `ProgressEvent`
|
|
3498
3498
|
* information from a `FileReader`. This includes `loaded` and `total`
|
|
3499
3499
|
* each with a number of bytes.
|
|
3500
3500
|
* @returns {FileReader} The `FileReader` with done and progress handles
|
|
@@ -3516,9 +3516,9 @@ var _fileReader = function fileReader(arg) {
|
|
|
3516
3516
|
* when finished or an error object if unsuccessful.
|
|
3517
3517
|
*
|
|
3518
3518
|
* @param {File|Blob} file A `File` or `Blob` object to read.
|
|
3519
|
-
* @param {
|
|
3519
|
+
* @param {Function} done A callback that receives either the string read
|
|
3520
3520
|
* from the file or a `DOMException` with an error.
|
|
3521
|
-
* @param {
|
|
3521
|
+
* @param {Function} [progress] A function which is passed `ProgressEvent`
|
|
3522
3522
|
* information from a `FileReader`. This includes `loaded` and `total`
|
|
3523
3523
|
* each with a number of bytes.
|
|
3524
3524
|
*/
|
|
@@ -4773,7 +4773,7 @@ var registry = {};
|
|
|
4773
4773
|
* @alias geo.registerFileReader
|
|
4774
4774
|
* @param {string} name Name of the reader to register. If the name already
|
|
4775
4775
|
* exists, the class creation function is replaced.
|
|
4776
|
-
* @param {
|
|
4776
|
+
* @param {Function} func Class creation function.
|
|
4777
4777
|
*/
|
|
4778
4778
|
registry.registerFileReader = function (name, func) {
|
|
4779
4779
|
fileReaders[name] = func;
|
|
@@ -4801,7 +4801,7 @@ registry.createFileReader = function (name, opts) {
|
|
|
4801
4801
|
* @alias geo.registerRenderer
|
|
4802
4802
|
* @param {string} name Name of the renderer to register. If the name already
|
|
4803
4803
|
* exists, the class creation function is replaced.
|
|
4804
|
-
* @param {
|
|
4804
|
+
* @param {Function} func Class creation function.
|
|
4805
4805
|
*/
|
|
4806
4806
|
registry.registerRenderer = function (name, func) {
|
|
4807
4807
|
renderers[name] = func;
|
|
@@ -4928,7 +4928,7 @@ registry.rendererForFeatures = function (featureList) {
|
|
|
4928
4928
|
* @alias geo.registerFeature
|
|
4929
4929
|
* @param {string} category The feature category -- this is the renderer name.
|
|
4930
4930
|
* @param {string} name The feature name.
|
|
4931
|
-
* @param {
|
|
4931
|
+
* @param {Function} func A function to call to create the feature.
|
|
4932
4932
|
* @param {object|undefined} capabilities A map of capabilities that this
|
|
4933
4933
|
* feature supports. If the feature is implemented with different
|
|
4934
4934
|
* capabilities in multiple categories (renderers), then the feature
|
|
@@ -4997,7 +4997,7 @@ registry.createFeature = function (name, layer, renderer, arg) {
|
|
|
4997
4997
|
* the renderer name.
|
|
4998
4998
|
* @param {string} name The name of the adjustment; this is commonly the layer
|
|
4999
4999
|
* type, or `'all'` for the base layer class.
|
|
5000
|
-
* @param {
|
|
5000
|
+
* @param {Function} func The function to call when the adjustment is used.
|
|
5001
5001
|
* @returns {object} if this layer adjustment replaces an existing one, this
|
|
5002
5002
|
* was the value that was replaced. In this case, a warning is issued.
|
|
5003
5003
|
*/
|
|
@@ -5036,7 +5036,7 @@ registry.adjustLayerForRenderer = function (name, layer) {
|
|
|
5036
5036
|
* @alias geo.registerLayer
|
|
5037
5037
|
* @param {string} name Name of the layer to register. If the name already
|
|
5038
5038
|
* exists, the class creation function is replaced.
|
|
5039
|
-
* @param {
|
|
5039
|
+
* @param {Function} func Class creation function.
|
|
5040
5040
|
* @param {string[]} [defaultFeatures] An optional list of feature capabilities
|
|
5041
5041
|
* that are required to use this layer.
|
|
5042
5042
|
*/
|
|
@@ -5089,7 +5089,7 @@ registry.createLayer = function (name, map, arg) {
|
|
|
5089
5089
|
* @param {string} category A category for this widget. This is usually
|
|
5090
5090
|
* `'dom'`.
|
|
5091
5091
|
* @param {string} name The name of the widget to register.
|
|
5092
|
-
* @param {
|
|
5092
|
+
* @param {Function} func Class creation function.
|
|
5093
5093
|
* @returns {object} If this widget replaces an existing one, this was the
|
|
5094
5094
|
* value that was replaced. In this case, a warning is issued.
|
|
5095
5095
|
*/
|
|
@@ -5132,7 +5132,7 @@ registry.createWidget = function (name, layer, arg) {
|
|
|
5132
5132
|
*
|
|
5133
5133
|
* @alias geo.registerAnnotation
|
|
5134
5134
|
* @param {string} name The annotation name.
|
|
5135
|
-
* @param {
|
|
5135
|
+
* @param {Function} func A function to call to create the annotation.
|
|
5136
5136
|
* @param {object|undefined} features A map of features that are used by this
|
|
5137
5137
|
* annotation. Each key is a feature that is used. If the value is true,
|
|
5138
5138
|
* the that feature is always needed. If a list, then it is the set of
|
|
@@ -6257,7 +6257,7 @@ var _feature = function feature(arg) {
|
|
|
6257
6257
|
* @instance
|
|
6258
6258
|
* @param {string} [key] If defined, return a function for the named style.
|
|
6259
6259
|
* Otherwise, return an object with a function for all defined styles.
|
|
6260
|
-
* @returns {
|
|
6260
|
+
* @returns {Function|object} Either a function for the named style or an
|
|
6261
6261
|
* object with functions for all defined styles.
|
|
6262
6262
|
*/
|
|
6263
6263
|
this.style.get = function (key) {
|
|
@@ -6659,7 +6659,7 @@ var _feature = function feature(arg) {
|
|
|
6659
6659
|
*
|
|
6660
6660
|
* @param {string} event An event from {@link geo.event} or a user-defined
|
|
6661
6661
|
* value.
|
|
6662
|
-
* @param {
|
|
6662
|
+
* @param {Function} handler A function that is called when `event` is
|
|
6663
6663
|
* triggered. The function is passed a {@link geo.event} object.
|
|
6664
6664
|
* @returns {this}
|
|
6665
6665
|
*/
|
|
@@ -6786,7 +6786,7 @@ var _object = function object() {
|
|
|
6786
6786
|
* resolved. If there are no outstanding promises, this is invoked
|
|
6787
6787
|
* synchronously.
|
|
6788
6788
|
*
|
|
6789
|
-
* @param {
|
|
6789
|
+
* @param {Function} handler A function taking no arguments.
|
|
6790
6790
|
* @returns {this}
|
|
6791
6791
|
*/
|
|
6792
6792
|
this.onIdle = function (handler) {
|
|
@@ -6886,7 +6886,7 @@ var _object = function object() {
|
|
|
6886
6886
|
*
|
|
6887
6887
|
* @param {string} event An event from {@link geo.event} or a user-defined
|
|
6888
6888
|
* value.
|
|
6889
|
-
* @param {
|
|
6889
|
+
* @param {Function} handler A function that is called when `event` is
|
|
6890
6890
|
* triggered. The function is passed a {@link geo.event} object.
|
|
6891
6891
|
* @returns {this}
|
|
6892
6892
|
*/
|
|
@@ -6914,9 +6914,9 @@ var _object = function object() {
|
|
|
6914
6914
|
*
|
|
6915
6915
|
* @param {string} event An event from {@link geo.event} or a user-defined
|
|
6916
6916
|
* value.
|
|
6917
|
-
* @param {
|
|
6917
|
+
* @param {Function} handler A function that is called when `event` is
|
|
6918
6918
|
* triggered. The function is passed a {@link geo.event} object.
|
|
6919
|
-
* @returns {
|
|
6919
|
+
* @returns {Function} The actual bound handler. This is a wrapper around
|
|
6920
6920
|
* the handler that was passed to the function.
|
|
6921
6921
|
*/
|
|
6922
6922
|
this.geoOnce = function (event, handler) {
|
|
@@ -6932,7 +6932,7 @@ var _object = function object() {
|
|
|
6932
6932
|
* Report if an event handler is bound to this object.
|
|
6933
6933
|
*
|
|
6934
6934
|
* @param {string|string[]} event An event or list of events to check.
|
|
6935
|
-
* @param {
|
|
6935
|
+
* @param {Function} [handler] A function that might be bound. If
|
|
6936
6936
|
* `undefined`, this will report `true` if there is any handler for the
|
|
6937
6937
|
* specified event.
|
|
6938
6938
|
* @returns {boolean} true if any of the specified events are bound to the
|
|
@@ -8389,7 +8389,7 @@ var util = {
|
|
|
8389
8389
|
* Otherwise, return a function that returns the argument.
|
|
8390
8390
|
*
|
|
8391
8391
|
* @param {object} f An object that might be a function.
|
|
8392
|
-
* @returns {
|
|
8392
|
+
* @returns {Function} A function. Either `f` or a function that returns
|
|
8393
8393
|
* `f`.
|
|
8394
8394
|
* @memberof geo.util
|
|
8395
8395
|
*/
|
|
@@ -11639,7 +11639,7 @@ var pointFeature = __webpack_require__(7541);
|
|
|
11639
11639
|
*
|
|
11640
11640
|
* @typedef {geo.feature.spec} geo.markerFeature.spec
|
|
11641
11641
|
* @extends geo.feature.spec
|
|
11642
|
-
* @property {geo.geoPosition|
|
|
11642
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
11643
11643
|
* Default is (data).
|
|
11644
11644
|
* @property {geo.markerFeature.styleSpec} [style] Style object with default
|
|
11645
11645
|
* style options.
|
|
@@ -11650,40 +11650,40 @@ var pointFeature = __webpack_require__(7541);
|
|
|
11650
11650
|
*
|
|
11651
11651
|
* @typedef {geo.feature.styleSpec} geo.markerFeature.styleSpec
|
|
11652
11652
|
* @extends geo.feature.styleSpec
|
|
11653
|
-
* @property {number|
|
|
11653
|
+
* @property {number|Function} [radius=5] Radius of each marker in pixels.
|
|
11654
11654
|
* This includes the stroke width if `strokeOffset` is -1, excludes it if
|
|
11655
11655
|
* `strokeOffset` is 1, and includes half the stroke width if `strokeOffset`
|
|
11656
11656
|
* is 0. Note that is `radiusIncludesStroke` is `false`, this never
|
|
11657
11657
|
* includes the stroke width.
|
|
11658
|
-
* @property {geo.geoColor|
|
|
11659
|
-
* @property {number|
|
|
11658
|
+
* @property {geo.geoColor|Function} [strokeColor] Color to stroke each marker.
|
|
11659
|
+
* @property {number|Function} [strokeOpacity=1] Opacity for each marker's
|
|
11660
11660
|
* stroke. Opacity is on a [0-1] scale. Set this or `strokeWidth` to zero
|
|
11661
11661
|
* to not have a stroke.
|
|
11662
|
-
* @property {number|
|
|
11662
|
+
* @property {number|Function} [strokeWidth=1.25] The weight of the marker's
|
|
11663
11663
|
* stroke in pixels. Set this or `strokeOpacity` to zero to not have a
|
|
11664
11664
|
* stroke.
|
|
11665
|
-
* @property {number|
|
|
11665
|
+
* @property {number|Function} [strokeOffset=-1] The position of the stroke
|
|
11666
11666
|
* compared to the radius. This can only be -1, 0, or 1 (the sign of the
|
|
11667
11667
|
* value is used).
|
|
11668
|
-
* @property {boolean|
|
|
11668
|
+
* @property {boolean|Function} [radiusIncludesStroke=true] If truthy or
|
|
11669
11669
|
* undefined, the `radius` includes the `strokeWidth` based on the
|
|
11670
11670
|
* `strokeOffset`. If defined and falsy, the radius does not include the
|
|
11671
11671
|
* `strokeWidth`.
|
|
11672
|
-
* @property {geo.geoColor|
|
|
11673
|
-
* @property {number|
|
|
11672
|
+
* @property {geo.geoColor|Function} [fillColor] Color to fill each marker.
|
|
11673
|
+
* @property {number|Function} [fillOpacity=1] Opacity for each marker.
|
|
11674
11674
|
* Opacity is on a [0-1] scale. Set to zero to have no fill.
|
|
11675
|
-
* @property {number|
|
|
11675
|
+
* @property {number|Function} [symbol=0] One of the predefined symbol numbers.
|
|
11676
11676
|
* This is one of `geo.markerFeature.symbols`.
|
|
11677
|
-
* @property {number|number[]|
|
|
11677
|
+
* @property {number|number[]|Function} [symbolValue=0] A value the affects the
|
|
11678
11678
|
* appearance of the symbol. Some symbols can take an array of numbers.
|
|
11679
|
-
* @property {number|
|
|
11679
|
+
* @property {number|Function} [rotation=0] The rotation of the symbol in
|
|
11680
11680
|
* clockwise radians.
|
|
11681
|
-
* @property {geo.markerFeature.scaleMode|
|
|
11681
|
+
* @property {geo.markerFeature.scaleMode|Function} [scaleWithZoom='none'] This
|
|
11682
11682
|
* determines if the fill, stroke, or both scale with zoom. If set, the
|
|
11683
11683
|
* values for radius and strokeWidth are the values at zoom-level zero.
|
|
11684
|
-
* @property {boolean|
|
|
11684
|
+
* @property {boolean|Function} [rotateWithMap=false] If truthy, rotate symbols
|
|
11685
11685
|
* with the map. If falsy, symbol orientation is absolute.
|
|
11686
|
-
* @property {number[]|
|
|
11686
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
11687
11687
|
* to ensure high precision drawing in this location. When called as a
|
|
11688
11688
|
* function, this is passed the maker positions as a single continuous array
|
|
11689
11689
|
* in map gcs coordinates. It defaults to the first marker's position.
|
|
@@ -12344,7 +12344,7 @@ var feature = __webpack_require__(1275);
|
|
|
12344
12344
|
*
|
|
12345
12345
|
* @typedef {geo.feature.spec} geo.pathFeature.spec
|
|
12346
12346
|
* @extends {geo.feature.spec}
|
|
12347
|
-
* @property {geo.geoPosition|
|
|
12347
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
12348
12348
|
* Default is (data).
|
|
12349
12349
|
*/
|
|
12350
12350
|
|
|
@@ -12357,12 +12357,12 @@ var feature = __webpack_require__(1275);
|
|
|
12357
12357
|
*
|
|
12358
12358
|
* @typedef {geo.feature.styleSpec} geo.pathFeature.styleSpec
|
|
12359
12359
|
* @extends geo.feature.styleSpec
|
|
12360
|
-
* @property {boolean|
|
|
12361
|
-
* @property {geo.geoColor|
|
|
12360
|
+
* @property {boolean|Function} [stroke=true] True to stroke the path.
|
|
12361
|
+
* @property {geo.geoColor|Function} [strokeColor='white'] Color to stroke each
|
|
12362
12362
|
* path.
|
|
12363
|
-
* @property {number|
|
|
12363
|
+
* @property {number|Function} [strokeOpacity=1] Opacity for each path's
|
|
12364
12364
|
* stroke. Opacity is on a [0-1] scale.
|
|
12365
|
-
* @property {number|
|
|
12365
|
+
* @property {number|Function} [strokeWidth=1] The weight of the path's stroke
|
|
12366
12366
|
* in pixels.
|
|
12367
12367
|
*/
|
|
12368
12368
|
|
|
@@ -12390,9 +12390,9 @@ var _pathFeature = function pathFeature(arg) {
|
|
|
12390
12390
|
/**
|
|
12391
12391
|
* Get/Set position.
|
|
12392
12392
|
*
|
|
12393
|
-
* @param {
|
|
12393
|
+
* @param {Function|geo.geoPosition} [val] If not specified, return the
|
|
12394
12394
|
* position accessor. Otherwise, change the position accessor.
|
|
12395
|
-
* @returns {this|
|
|
12395
|
+
* @returns {this|Function}
|
|
12396
12396
|
*/
|
|
12397
12397
|
this.position = function (val) {
|
|
12398
12398
|
if (val === undefined) {
|
|
@@ -12819,10 +12819,10 @@ var _svgRenderer = function svgRenderer(arg) {
|
|
|
12819
12819
|
/**
|
|
12820
12820
|
* Meta functions for converting from geojs styles to d3.
|
|
12821
12821
|
*
|
|
12822
|
-
* @param {object|
|
|
12823
|
-
* @param {
|
|
12822
|
+
* @param {object|Function} f The style value or function to convert.
|
|
12823
|
+
* @param {Function} [g] An optional function that returns a boolean; if it
|
|
12824
12824
|
* returns false, the style is set to `'none'`.
|
|
12825
|
-
* @returns {
|
|
12825
|
+
* @returns {Function} A function for converting styles.
|
|
12826
12826
|
*/
|
|
12827
12827
|
this._convertColor = function (f, g) {
|
|
12828
12828
|
f = util.ensureFunction(f);
|
|
@@ -12845,8 +12845,8 @@ var _svgRenderer = function svgRenderer(arg) {
|
|
|
12845
12845
|
* Return a function for converting a size in pixels to an appropriate
|
|
12846
12846
|
* d3 scale.
|
|
12847
12847
|
*
|
|
12848
|
-
* @param {object|
|
|
12849
|
-
* @returns {
|
|
12848
|
+
* @param {object|Function} f The style value or function to convert.
|
|
12849
|
+
* @returns {Function} A function for converting scale.
|
|
12850
12850
|
*/
|
|
12851
12851
|
this._convertScale = function (f) {
|
|
12852
12852
|
f = util.ensureFunction(f);
|
|
@@ -13206,7 +13206,7 @@ var _svgRenderer = function svgRenderer(arg) {
|
|
|
13206
13206
|
* @param {object} arg
|
|
13207
13207
|
* @param {string} arg.id A unique string identifying the feature.
|
|
13208
13208
|
* @param {array} arg.data Array of data objects used in a d3 data method.
|
|
13209
|
-
* @param {
|
|
13209
|
+
* @param {Function} [arg.dataIndex] A function that returns a unique id for
|
|
13210
13210
|
* each data element. This is passed to the data access function.
|
|
13211
13211
|
* @param {object} arg.style An object with style values or functions.
|
|
13212
13212
|
* @param {object} arg.attributes An object containing element attributes.
|
|
@@ -13459,17 +13459,17 @@ var meshFeature = __webpack_require__(6124);
|
|
|
13459
13459
|
*
|
|
13460
13460
|
* @typedef {geo.feature.styleSpec} geo.gridFeature.styleSpec
|
|
13461
13461
|
* @extends geo.feature.styleSpec
|
|
13462
|
-
* @property {geo.geoPosition|
|
|
13462
|
+
* @property {geo.geoPosition|Function} [position=data] The position of each
|
|
13463
13463
|
* data element. This defaults to just using `x`, `y`, and `z` properties
|
|
13464
13464
|
* of the data element itself. The position is in the feature's gcs
|
|
13465
13465
|
* coordinates.
|
|
13466
|
-
* @property {number|
|
|
13466
|
+
* @property {number|Function} [value=data.z] The value of each data element.
|
|
13467
13467
|
* This defaults to the `z` property of the data elements. If the value of
|
|
13468
13468
|
* a grid point is `null` or `undefined`, the point and elements that use
|
|
13469
13469
|
* that point won't be included in the results.
|
|
13470
|
-
* @property {number|
|
|
13470
|
+
* @property {number|Function} [opacity=1] The opacity for the whole feature on
|
|
13471
13471
|
* a scale of 0 to 1.
|
|
13472
|
-
* @property {number[]|
|
|
13472
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
13473
13473
|
* for to ensure high precision drawing in this location. When called as a
|
|
13474
13474
|
* function, this is passed the vertex positions as a single continuous array
|
|
13475
13475
|
* in map gcs coordinates. It defaults to the first vertex used in the
|
|
@@ -14096,29 +14096,29 @@ var util = __webpack_require__(642);
|
|
|
14096
14096
|
* @extends geo.feature.styleSpec
|
|
14097
14097
|
* @extends geo.textFeature.styleSpec
|
|
14098
14098
|
* @extends geo.lineFeature.styleSpec
|
|
14099
|
-
* @property {geo.geoPosition|
|
|
14099
|
+
* @property {geo.geoPosition|Function} [position=data] The position of each
|
|
14100
14100
|
* data element. This defaults to just using `x`, `y`, and `z` properties
|
|
14101
14101
|
* of the data element itself. The position is in the feature's gcs
|
|
14102
14102
|
* coordinates.
|
|
14103
|
-
* @property {number|
|
|
14103
|
+
* @property {number|Function} [value=data.z] The value of each data element.
|
|
14104
14104
|
* This defaults to the `z` property of the data elements. If the value of
|
|
14105
14105
|
* a grid point is `null` or `undefined`, the point and elements that use
|
|
14106
14106
|
* that point won't be included in the results.
|
|
14107
|
-
* @property {geo.geoColor|
|
|
14107
|
+
* @property {geo.geoColor|Function} [strokeColor='black'] Color to stroke each
|
|
14108
14108
|
* line.
|
|
14109
|
-
* @property {number|
|
|
14109
|
+
* @property {number|Function} [strokeWidth] The weight of the line stroke in
|
|
14110
14110
|
* pixels. This defaults to the line value's level + 0.5.
|
|
14111
|
-
* @property {boolean|
|
|
14111
|
+
* @property {boolean|Function} [rotateWithMap=true] Rotate label text when the
|
|
14112
14112
|
* map rotates.
|
|
14113
|
-
* @property {number|
|
|
14113
|
+
* @property {number|Function} [rotation] Text rotation in radians. This
|
|
14114
14114
|
* defaults to the label oriented so that top of the text is toward the
|
|
14115
14115
|
* higher value. There is a utility function that can be used for common
|
|
14116
14116
|
* rotation preferences. See {@link geo.isolineFeature#rotationFunction}.
|
|
14117
14117
|
* For instance, `rotation=geo.isolineFeature.rotationFunction('map')`.
|
|
14118
|
-
* @property {string|
|
|
14119
|
-
* @property {geo.geoColor|
|
|
14118
|
+
* @property {string|Function} [fontSize='12px'] The font size.
|
|
14119
|
+
* @property {geo.geoColor|Function} [textStrokeColor='white'] Text
|
|
14120
14120
|
* stroke color. This adds contrast between the label and the isoline.
|
|
14121
|
-
* @property {geo.geoColor|
|
|
14121
|
+
* @property {geo.geoColor|Function} [textStrokeWidth=2] Text stroke width in
|
|
14122
14122
|
* pixels.
|
|
14123
14123
|
*/
|
|
14124
14124
|
|
|
@@ -14146,27 +14146,27 @@ var util = __webpack_require__(642);
|
|
|
14146
14146
|
* used to style lines distinctly. Most isolines will be level 0. If
|
|
14147
14147
|
* `levels` is an array of [`n0`, `n1`, ...], every `n0`th line will be
|
|
14148
14148
|
* level 1, every `n0 * n1`th line will be level 2, etc.
|
|
14149
|
-
* @property {boolean|
|
|
14149
|
+
* @property {boolean|Function} [label] Truthy if a label should be shown for a
|
|
14150
14150
|
* isoline value. If a function, this is called with
|
|
14151
14151
|
* `(geo.isolineFeature.valueEntry, index)`. This defaults to
|
|
14152
14152
|
* `valueEntry.level >= 1`.
|
|
14153
|
-
* @property {string|
|
|
14153
|
+
* @property {string|Function} [labelText] Text for a label. If a function,
|
|
14154
14154
|
* this is called with `(geo.isolineFeature.valueEntry, index)`. This
|
|
14155
14155
|
* defaults to `valueEntry.value`.
|
|
14156
|
-
* @property {number|
|
|
14156
|
+
* @property {number|Function} [labelSpacing=200] Minimum distance between
|
|
14157
14157
|
* labels on an isoline in screen pixels. If a function, this is called
|
|
14158
14158
|
* with `(geo.isolineFeature.valueEntry, index)`.
|
|
14159
|
-
* @property {number|
|
|
14159
|
+
* @property {number|Function} [labelOffset=0] Offset for labels along an
|
|
14160
14160
|
* isoline relative to where they would be placed by default on a scale of
|
|
14161
14161
|
* [-0.5, 0.5]. +/- 1 would move the text to the next repeated occurrence
|
|
14162
14162
|
* of the label. If a function, this is called with
|
|
14163
14163
|
* `(geo.isolineFeature.valueEntry, index)`.
|
|
14164
|
-
* @property {number|
|
|
14164
|
+
* @property {number|Function} [labelViewport=10000] If the main position of a
|
|
14165
14165
|
* label would be further than this many pixels from the current viewport,
|
|
14166
14166
|
* don't create it. This prevents creating an excessive number of labels
|
|
14167
14167
|
* when zoomed in, but requires regenerating labels occasionally when
|
|
14168
14168
|
* panning. If <= 0, all labels are generated regardless of location.
|
|
14169
|
-
* @property {boolean|
|
|
14169
|
+
* @property {boolean|Function} [labelAutoUpdate=true] If truthy, when the map
|
|
14170
14170
|
* is panned (including zoom, rotation, etc.), periodically regenerate
|
|
14171
14171
|
* labels. This uses an internal function that has a threshold based on a
|
|
14172
14172
|
* fixed change in zoom, size, and other parameters. Set `labelAutoUpdate`
|
|
@@ -15070,7 +15070,7 @@ var _isolineFeature = function isolineFeature(arg) {
|
|
|
15070
15070
|
* text so it is aligned to the isoline and biased toward the top of the
|
|
15071
15071
|
* display screen.
|
|
15072
15072
|
* @param {geo.map} [map] The parent map. Required for `screen` mode.
|
|
15073
|
-
* @returns {
|
|
15073
|
+
* @returns {Function} A function for the rotation style.
|
|
15074
15074
|
*/
|
|
15075
15075
|
_isolineFeature.rotationFunction = function (mode, map) {
|
|
15076
15076
|
var functionList = {
|
|
@@ -16157,7 +16157,7 @@ __webpack_require__(615);
|
|
|
16157
16157
|
* @property {string|geo.gui.scaleWidget.unit[]} [units='si'] One of either
|
|
16158
16158
|
* `'si'` or `'miles'` or an array of units in ascending order. See the
|
|
16159
16159
|
* `UnitsTable` for examples.
|
|
16160
|
-
* @property {
|
|
16160
|
+
* @property {Function} [distance] The function used to compute the length of
|
|
16161
16161
|
* the scale bar. This defaults to `transform.sphericalDistance` for all
|
|
16162
16162
|
* maps except those with a gcs of `'+proj=longlat +axis=enu'`, where
|
|
16163
16163
|
* `math.sqrt(util.distance2dSquared(pt1, pt2))` is used instead.
|
|
@@ -18248,7 +18248,7 @@ module.exports = "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJo
|
|
|
18248
18248
|
* @property {boolean} boundDocumentHandlers `true` if the mouse is down and
|
|
18249
18249
|
* being tracked.
|
|
18250
18250
|
* @property {Date} [start] The time when the action started.
|
|
18251
|
-
* @property {
|
|
18251
|
+
* @property {Function} [handler] A function to call on every animation from
|
|
18252
18252
|
* while the action is occurring.
|
|
18253
18253
|
* @property {geo.mouseState} [momentum] The mouse location when a momentum
|
|
18254
18254
|
* action starts.
|
|
@@ -18460,10 +18460,10 @@ var _graphFeature = function graphFeature(arg) {
|
|
|
18460
18460
|
/**
|
|
18461
18461
|
* Get/Set links accessor.
|
|
18462
18462
|
*
|
|
18463
|
-
* @param {
|
|
18463
|
+
* @param {Function|array} [arg] If specified, the list of links or a
|
|
18464
18464
|
* function that returns the list of links. If unspecified, return the
|
|
18465
18465
|
* existing value.
|
|
18466
|
-
* @returns {
|
|
18466
|
+
* @returns {Function|this} Either a function that returns the list of links,
|
|
18467
18467
|
* or the feature.
|
|
18468
18468
|
*/
|
|
18469
18469
|
this.links = function (arg) {
|
|
@@ -23463,12 +23463,12 @@ var feature = __webpack_require__(1275);
|
|
|
23463
23463
|
* @extends geo.feature.spec
|
|
23464
23464
|
* @property {geo.colorObject[]} [colorRange] Color lookup table. Default is
|
|
23465
23465
|
* 9-step color table.
|
|
23466
|
-
* @property {
|
|
23466
|
+
* @property {Function} [scale] A scale converts a input domain into the
|
|
23467
23467
|
* the colorRange. Default is `d3.scaleQuantize()`.
|
|
23468
|
-
* @property {
|
|
23469
|
-
* @property {
|
|
23468
|
+
* @property {Function} [geoId] Given a geometry feature, return an identifier.
|
|
23469
|
+
* @property {Function} [scalarId] Given a scalar element, return an
|
|
23470
23470
|
* identifier.
|
|
23471
|
-
* @property {
|
|
23471
|
+
* @property {Function} [scalarValue] Given a scalar element, return a numeric
|
|
23472
23472
|
* values.
|
|
23473
23473
|
*/
|
|
23474
23474
|
|
|
@@ -23558,7 +23558,7 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
23558
23558
|
* @param {object[]} [data] An array of objects that are passed to the
|
|
23559
23559
|
* `scalarId` and `scalarValue` functions to get the associated information
|
|
23560
23560
|
* for each scalar.
|
|
23561
|
-
* @param {
|
|
23561
|
+
* @param {Function} [aggregator] The aggregator aggregates the scalar when
|
|
23562
23562
|
* there are multiple values with the same id. The default is `d3.mean`.
|
|
23563
23563
|
* @returns {object[]|this} Either the current scalar data or the feature
|
|
23564
23564
|
* instance.
|
|
@@ -23629,7 +23629,7 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
23629
23629
|
* @param {string} [key] If defined, return a function for the named
|
|
23630
23630
|
* property. Otherwise, return an object with a function for all defined
|
|
23631
23631
|
* properties.
|
|
23632
|
-
* @returns {
|
|
23632
|
+
* @returns {Function|object} Either a function for the named property or an
|
|
23633
23633
|
* object with functions for all defined properties.
|
|
23634
23634
|
*/
|
|
23635
23635
|
this.choropleth.get = function (key) {
|
|
@@ -23687,7 +23687,7 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
23687
23687
|
/**
|
|
23688
23688
|
* Set a choropleth scale's domain and range.
|
|
23689
23689
|
*
|
|
23690
|
-
* @param {
|
|
23690
|
+
* @param {Function} valueAccessor A function that can be passed to
|
|
23691
23691
|
* `d3.extent`.
|
|
23692
23692
|
* @returns {this}
|
|
23693
23693
|
*/
|
|
@@ -24952,7 +24952,7 @@ var feature = __webpack_require__(1275);
|
|
|
24952
24952
|
*
|
|
24953
24953
|
* @typedef {geo.feature.spec} geo.quadFeature.spec
|
|
24954
24954
|
* @extends geo.feature.spec
|
|
24955
|
-
* @property {geo.quadFeature.position|
|
|
24955
|
+
* @property {geo.quadFeature.position|Function} [position] Position of the
|
|
24956
24956
|
* quad. Default is (data). The position specifies the corners of the quad:
|
|
24957
24957
|
* ll, lr, ur, ul. At least two opposite corners must be specified. The
|
|
24958
24958
|
* corners do not have to physically correspond to the order specified, but
|
|
@@ -24982,27 +24982,27 @@ var feature = __webpack_require__(1275);
|
|
|
24982
24982
|
*
|
|
24983
24983
|
* @typedef {geo.feature.styleSpec} geo.quadFeature.styleSpec
|
|
24984
24984
|
* @extends geo.feature.styleSpec
|
|
24985
|
-
* @property {geo.geoColor|
|
|
24985
|
+
* @property {geo.geoColor|Function} [color] Color for quads without images.
|
|
24986
24986
|
* Default is white (`{r: 1, g: 1, b: 1}`).
|
|
24987
|
-
* @property {number|
|
|
24988
|
-
* @property {number|
|
|
24987
|
+
* @property {number|Function} [opacity=1] Opacity for the quads.
|
|
24988
|
+
* @property {number|Function} [depth=0] Default z-coordinate for positions
|
|
24989
24989
|
* that don't explicitly specify one.
|
|
24990
|
-
* @property {boolean|
|
|
24990
|
+
* @property {boolean|Function} [drawOnAsyncResourceLoaded=true] Redraw quads
|
|
24991
24991
|
* when images or videos are loaded after initial render.
|
|
24992
|
-
* @property {Image|string|
|
|
24992
|
+
* @property {Image|string|Function} [image] Image for each data item. If
|
|
24993
24993
|
* falsy and `video` is also falsy, the quad is a solid color. Default is
|
|
24994
24994
|
* (data).image.
|
|
24995
|
-
* @property {HTMLVideoElement|string|
|
|
24995
|
+
* @property {HTMLVideoElement|string|Function} [video] Video for each data
|
|
24996
24996
|
* item. If falsy and `image` is also falsy, the quad is a solid color.
|
|
24997
24997
|
* Default is (data).video.
|
|
24998
|
-
* @property {boolean|
|
|
24998
|
+
* @property {boolean|Function} [delayRenderWhenSeeking=true] If any video has a
|
|
24999
24999
|
* truthy value and is seeking, delaying rendering the entire feature. This
|
|
25000
25000
|
* prevents blinking when seeking a playing video, but may cause stuttering
|
|
25001
25001
|
* when there are multiple videos.
|
|
25002
|
-
* @property {geo.geoColor|
|
|
25002
|
+
* @property {geo.geoColor|Function} [previewColor=null] If specified, a color
|
|
25003
25003
|
* to show on image and video quads while waiting for the image or video to
|
|
25004
25004
|
* load.
|
|
25005
|
-
* @property {Image|string|
|
|
25005
|
+
* @property {Image|string|Function} [previewImage=null] If specified, an image
|
|
25006
25006
|
* to show on image quads while waiting for the quad-specific image to load.
|
|
25007
25007
|
* This will only be shown if it (the preview image) is already loaded.
|
|
25008
25008
|
*/
|
|
@@ -25189,7 +25189,7 @@ var _quadFeature = function quadFeature(arg) {
|
|
|
25189
25189
|
* Get/Set position.
|
|
25190
25190
|
*
|
|
25191
25191
|
* @memberof geo.quadFeature
|
|
25192
|
-
* @param {object|
|
|
25192
|
+
* @param {object|Function} [val] Object or function that returns the
|
|
25193
25193
|
* position of each quad. `undefined` to get the current position value.
|
|
25194
25194
|
* @returns {geo.quadFeature|this}
|
|
25195
25195
|
*/
|
|
@@ -25209,9 +25209,9 @@ var _quadFeature = function quadFeature(arg) {
|
|
|
25209
25209
|
* complete information for the quad. This generates missing corners and z
|
|
25210
25210
|
* values.
|
|
25211
25211
|
*
|
|
25212
|
-
* @param {
|
|
25212
|
+
* @param {Function} posFunc A function to call to get the position of a data
|
|
25213
25213
|
* item. It is passed (d, i).
|
|
25214
|
-
* @param {
|
|
25214
|
+
* @param {Function} depthFunc A function to call to get the z-value of a
|
|
25215
25215
|
* data item. It is passed (d, i).
|
|
25216
25216
|
* @param {object} d A data item. Used to fetch position and possibly depth.
|
|
25217
25217
|
* @param {number} i The index within the data. Used to fetch position and
|
|
@@ -25843,7 +25843,7 @@ var annotationActionOwner = (__webpack_require__(6978).annotationActionOwner);
|
|
|
25843
25843
|
* finished rectangle. This uses styles for {@link geo.polygonFeature}.
|
|
25844
25844
|
* @property {geo.polygonFeature.styleSpec} [editStyle] The style to apply to a
|
|
25845
25845
|
* rectangle in edit mode.
|
|
25846
|
-
* @property {number|number[]|
|
|
25846
|
+
* @property {number|number[]|Function} [constraint] If specified, an aspect
|
|
25847
25847
|
* ratio or list of aspect ratios to constraint the rectangle to. If a
|
|
25848
25848
|
* function, a selection constraint function to call to adjust the
|
|
25849
25849
|
* rectangle.
|
|
@@ -26491,7 +26491,7 @@ module.exports = svg_tileLayer;
|
|
|
26491
26491
|
* @constant
|
|
26492
26492
|
* @type {string}
|
|
26493
26493
|
*/
|
|
26494
|
-
module.exports = "
|
|
26494
|
+
module.exports = "0.0.0-semantically-released";
|
|
26495
26495
|
|
|
26496
26496
|
/***/ }),
|
|
26497
26497
|
|
|
@@ -54753,10 +54753,10 @@ var _geojsonReader = function geojsonReader(arg) {
|
|
|
54753
54753
|
* @param {File|Blob|string|object} file This is either a `File` object, a
|
|
54754
54754
|
* `Blob` object, a string representation of a file, or an object
|
|
54755
54755
|
* representing data from a file.
|
|
54756
|
-
* @param {
|
|
54756
|
+
* @param {Function} done A callback function when the read is complete.
|
|
54757
54757
|
* This is called with `false` on error or the object that was read but
|
|
54758
54758
|
* not yet parsed.
|
|
54759
|
-
* @param {
|
|
54759
|
+
* @param {Function} [progress] A function which is passed `ProgressEvent`
|
|
54760
54760
|
* information from a `FileReader`. This includes `loaded` and `total`
|
|
54761
54761
|
* each with a number of bytes.
|
|
54762
54762
|
*/
|
|
@@ -54911,7 +54911,7 @@ var _geojsonReader = function geojsonReader(arg) {
|
|
|
54911
54911
|
*
|
|
54912
54912
|
* @param {string} prop The property name.
|
|
54913
54913
|
* @param {object} _default The default value.
|
|
54914
|
-
* @returns {
|
|
54914
|
+
* @returns {Function} A style function for the property.
|
|
54915
54915
|
*/
|
|
54916
54916
|
this._style = function (prop, _default) {
|
|
54917
54917
|
var isColor = prop.toLowerCase().match(/color$/);
|
|
@@ -54940,10 +54940,10 @@ var _geojsonReader = function geojsonReader(arg) {
|
|
|
54940
54940
|
* @param {File|Blob|string|object} file This is either a `File` object, a
|
|
54941
54941
|
* `Blob` object, a string representation of a file, or an object
|
|
54942
54942
|
* representing data from a file.
|
|
54943
|
-
* @param {
|
|
54943
|
+
* @param {Function} [done] An optional callback function when the read is
|
|
54944
54944
|
* complete. This is called with `false` on error or a list of
|
|
54945
54945
|
* {@link geo.feature} on success.
|
|
54946
|
-
* @param {
|
|
54946
|
+
* @param {Function} [progress] A function which is passed `ProgressEvent`
|
|
54947
54947
|
* information from a `FileReader`. This includes `loaded` and `total`
|
|
54948
54948
|
* each with a number of bytes.
|
|
54949
54949
|
* @returns {Promise} A `Promise` that resolves with a list of
|
|
@@ -55407,7 +55407,7 @@ var _tile = function tile(spec) {
|
|
|
55407
55407
|
/**
|
|
55408
55408
|
* Add a method to be called with the data when the ajax fails.
|
|
55409
55409
|
*
|
|
55410
|
-
* @param {
|
|
55410
|
+
* @param {Function} method The rejection handler.
|
|
55411
55411
|
* @returns {this}
|
|
55412
55412
|
*/
|
|
55413
55413
|
this.catch = function (method) {
|
|
@@ -69092,7 +69092,7 @@ colorName = colorName.__esModule ? colorName.default : colorName;
|
|
|
69092
69092
|
* @property {string} name The name of the color conversion.
|
|
69093
69093
|
* @property {RegExp} regex A regex that, if it matches the color string, will
|
|
69094
69094
|
* cause the process function to be invoked.
|
|
69095
|
-
* @property {
|
|
69095
|
+
* @property {Function} process A function that takes (`color`, `match`) with
|
|
69096
69096
|
* the original color string and the results of matching the regex using
|
|
69097
69097
|
* the regex's `exec` function. It outputs a {@link geo.geoColorObject}
|
|
69098
69098
|
* color object or the original color string if there is still a parsing
|
|
@@ -69938,7 +69938,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
|
|
|
69938
69938
|
* @private
|
|
69939
69939
|
* @param {string} op The operation to handle. One of union, intersect,
|
|
69940
69940
|
* difference, or xor.
|
|
69941
|
-
* @returns {
|
|
69941
|
+
* @returns {Function} a function for the polygons.
|
|
69942
69942
|
*/
|
|
69943
69943
|
function generalOperation(op) {
|
|
69944
69944
|
return function (poly1, poly2, opts) {
|
|
@@ -70249,7 +70249,7 @@ var _colorLegendWidget = function colorLegendWidget(arg) {
|
|
|
70249
70249
|
* @param {number[]} steps discrete input scale domain for d3 scale
|
|
70250
70250
|
* @param {object} colorScale d3 scale for transform input into color
|
|
70251
70251
|
* @param {number} width width of the svg element in pixel
|
|
70252
|
-
* @param {
|
|
70252
|
+
* @param {Function} getValue function that transforms raw domain into desired discrete range
|
|
70253
70253
|
*/
|
|
70254
70254
|
this._renderDiscreteColors = function (svg, steps, colorScale, width, getValue) {
|
|
70255
70255
|
svg.selectAll('rect').data(steps).enter().append('rect').attr('width', width / steps.length).attr('height', '20px').attr('fill', function (d) {
|
|
@@ -70529,10 +70529,10 @@ var _svg_vectorFeature = function svg_vectorFeature(arg) {
|
|
|
70529
70529
|
* Add marker styles for vector arrows.
|
|
70530
70530
|
*
|
|
70531
70531
|
* @param {object[]} data The vector data array.
|
|
70532
|
-
* @param {
|
|
70533
|
-
* @param {
|
|
70534
|
-
* @param {
|
|
70535
|
-
* @param {
|
|
70532
|
+
* @param {Function} stroke The stroke accessor.
|
|
70533
|
+
* @param {Function} opacity The opacity accessor.
|
|
70534
|
+
* @param {Function} originStyle The marker style for the vector head.
|
|
70535
|
+
* @param {Function} endStyle The marker style for the vector tail.
|
|
70536
70536
|
*/
|
|
70537
70537
|
function updateMarkers(data, stroke, opacity, originStyle, endStyle) {
|
|
70538
70538
|
//this allows for multiple vectorFeature in a layer
|
|
@@ -72401,7 +72401,7 @@ var $ = __webpack_require__(5616);
|
|
|
72401
72401
|
* high number can increase memory. Ideally, it should reflect the number of
|
|
72402
72402
|
* items that are kept in memory elsewhere. If `needed` is `null`, this is
|
|
72403
72403
|
* ignored.
|
|
72404
|
-
* @property {
|
|
72404
|
+
* @property {Function} [needed=null] If set, this function is passed a
|
|
72405
72405
|
* Deferred object and must return a truthy value if the object is still
|
|
72406
72406
|
* needed.
|
|
72407
72407
|
*/
|
|
@@ -72538,7 +72538,7 @@ var _fetchQueue = function fetchQueue(options) {
|
|
|
72538
72538
|
* Add a Deferred object to the queue.
|
|
72539
72539
|
*
|
|
72540
72540
|
* @param {jQuery.Deferred} defer Deferred object to add to the queue.
|
|
72541
|
-
* @param {
|
|
72541
|
+
* @param {Function} callback A function to call when the item's turn is
|
|
72542
72542
|
* granted.
|
|
72543
72543
|
* @param {boolean} atEnd If falsy, add the item to the front of the queue
|
|
72544
72544
|
* if batching is turned off or at the end of the current batch if it is
|
|
@@ -72806,7 +72806,7 @@ ClusterTree.prototype.count = function () {
|
|
|
72806
72806
|
* arguments to arguments the point object and the zoom level:
|
|
72807
72807
|
* `func.call(this, point, zoom)`.
|
|
72808
72808
|
*
|
|
72809
|
-
* @param {
|
|
72809
|
+
* @param {Function} func The function to call.
|
|
72810
72810
|
*/
|
|
72811
72811
|
ClusterTree.prototype.each = function (func) {
|
|
72812
72812
|
var i;
|
|
@@ -73516,7 +73516,7 @@ var _meshFeature = function meshFeature(arg) {
|
|
|
73516
73516
|
* @instance
|
|
73517
73517
|
* @param {string|undefined} key The name of the mesh key or `undefined` to
|
|
73518
73518
|
* return an object with all keys as functions.
|
|
73519
|
-
* @returns {object|
|
|
73519
|
+
* @returns {object|Function} A function related to the key, or an object
|
|
73520
73520
|
* with all mesh keys, each of which is a function.
|
|
73521
73521
|
*/
|
|
73522
73522
|
this.mesh.get = function (key) {
|
|
@@ -73537,9 +73537,9 @@ var _meshFeature = function meshFeature(arg) {
|
|
|
73537
73537
|
* Get/Set position accessor. This is identical to getting or setting the
|
|
73538
73538
|
* `position` style.
|
|
73539
73539
|
*
|
|
73540
|
-
* @param {array|
|
|
73540
|
+
* @param {array|Function} [val] If specified, set the position style. If
|
|
73541
73541
|
* `undefined`, return the current value.
|
|
73542
|
-
* @returns {array|
|
|
73542
|
+
* @returns {array|Function|this} Either the position style or this.
|
|
73543
73543
|
*/
|
|
73544
73544
|
this.position = function (val) {
|
|
73545
73545
|
if (val === undefined) {
|
|
@@ -74368,7 +74368,7 @@ var sceneObject = __webpack_require__(5402);
|
|
|
74368
74368
|
* @property {number} [max=16] Maximum zoom level.
|
|
74369
74369
|
* @property {boolean} [discreteZoom=false] If `true`, only allow integer zoom
|
|
74370
74370
|
* levels. `false` for any zoom level.
|
|
74371
|
-
* @property {boolean|
|
|
74371
|
+
* @property {boolean|Function} [allowRotation=true] `false` prevents rotation,
|
|
74372
74372
|
* `true` allows any rotation. If a function, the function is called with a
|
|
74373
74373
|
* rotation (angle in radians) and returns a valid rotation. This can be
|
|
74374
74374
|
* used to constrain the rotation to a range or specific values.
|
|
@@ -74645,12 +74645,12 @@ var _map2 = function map(arg) {
|
|
|
74645
74645
|
* Get/set the `allowRotation` setting. If changed, adjust the map as
|
|
74646
74646
|
* needed.
|
|
74647
74647
|
*
|
|
74648
|
-
* @param {boolean|
|
|
74648
|
+
* @param {boolean|Function} [allowRotation] The new `allowRotation` value.
|
|
74649
74649
|
* `false` prevents rotation, `true` allows any rotation. If a function,
|
|
74650
74650
|
* the function is called with a rotation (angle in radians) and returns a
|
|
74651
74651
|
* valid rotation (this can be used to constrain the rotation to a range
|
|
74652
74652
|
* or to specific values).
|
|
74653
|
-
* @returns {boolean|
|
|
74653
|
+
* @returns {boolean|Function|this}
|
|
74654
74654
|
*/
|
|
74655
74655
|
this.allowRotation = function (allowRotation) {
|
|
74656
74656
|
if (allowRotation === undefined) {
|
|
@@ -75472,16 +75472,16 @@ var _map2 = function map(arg) {
|
|
|
75472
75472
|
* to a new zoom level.
|
|
75473
75473
|
* @param {number} [opts.rotation] A new map rotation.
|
|
75474
75474
|
* @param {number} [opts.duration] Transition duration in milliseconds.
|
|
75475
|
-
* @param {
|
|
75475
|
+
* @param {Function} [opts.ease] Easing function for the transition. This is
|
|
75476
75476
|
* in the style of a d3 easing function.
|
|
75477
|
-
* @param {
|
|
75477
|
+
* @param {Function} [opts.interp] Function to use when interpolating
|
|
75478
75478
|
* between values. This gets passed two arrays, the start and end values
|
|
75479
75479
|
* for [`x`, `y`, `z` or `zoom`, `rotation`], and returns a function that,
|
|
75480
75480
|
* when passed a time value returns an array of the interpolated [`x`,
|
|
75481
75481
|
* `y`, `z` or `zoom`, `rotation`] values.
|
|
75482
75482
|
* @param {boolean} [opts.zCoord] If `true`, convert zoom values to z values
|
|
75483
75483
|
* for interpolation.
|
|
75484
|
-
* @param {
|
|
75484
|
+
* @param {Function} [opts.done] If specified, call this function when a
|
|
75485
75485
|
* transition completes. The function is called with an object that
|
|
75486
75486
|
* contains `cancel`: a boolean if the transition was canceled, `source`:
|
|
75487
75487
|
* a value based on what canceled a transition, `transition`: the current
|
|
@@ -75527,7 +75527,7 @@ var _map2 = function map(arg) {
|
|
|
75527
75527
|
*
|
|
75528
75528
|
* @param {array} p0 An array of numbers to interpolate from.
|
|
75529
75529
|
* @param {array} p1 An array of numbers to interpolate to.
|
|
75530
|
-
* @returns {
|
|
75530
|
+
* @returns {Function} A function that, given `t`, returns an array of
|
|
75531
75531
|
* interpolated values.
|
|
75532
75532
|
* @private
|
|
75533
75533
|
*/
|
|
@@ -75746,7 +75746,7 @@ var _map2 = function map(arg) {
|
|
|
75746
75746
|
m_this.zoom(nav.zoom, undefined, undefined, undefined, 'pan');
|
|
75747
75747
|
m_this.center(nav.center, null);
|
|
75748
75748
|
}
|
|
75749
|
-
return m_this.boundsFromZoomAndCenter(m_zoom, m_center, m_rotation, gcs, true);
|
|
75749
|
+
return m_this.boundsFromZoomAndCenter(m_zoom, m_center, m_rotation, gcs, true, true);
|
|
75750
75750
|
};
|
|
75751
75751
|
|
|
75752
75752
|
/**
|
|
@@ -76296,7 +76296,7 @@ var _map2 = function map(arg) {
|
|
|
76296
76296
|
* callbacks will be called in a single time slice, providing better
|
|
76297
76297
|
* synchronization.
|
|
76298
76298
|
*
|
|
76299
|
-
* @param {
|
|
76299
|
+
* @param {Function} callback Function to call during the animation frame.
|
|
76300
76300
|
* It is called with an animation epoch, exactly as
|
|
76301
76301
|
* `requestAnimationFrame`.
|
|
76302
76302
|
* @param {boolean|'remove'} [action] Falsy to only add the callback if
|
|
@@ -82698,7 +82698,7 @@ geo_event.keyaction = 'geo_keyaction';
|
|
|
82698
82698
|
* @property {geo.geoPosition} center The target center.
|
|
82699
82699
|
* @property {number} zoom The target zoom level.
|
|
82700
82700
|
* @property {number} duration The duration of the transition in milliseconds.
|
|
82701
|
-
* @property {
|
|
82701
|
+
* @property {Function} ease The easing function.
|
|
82702
82702
|
*/
|
|
82703
82703
|
geo_event.transitionstart = 'geo_transitionstart';
|
|
82704
82704
|
|
|
@@ -82710,7 +82710,7 @@ geo_event.transitionstart = 'geo_transitionstart';
|
|
|
82710
82710
|
* @property {geo.geoPosition} center The target center.
|
|
82711
82711
|
* @property {number} zoom The target zoom level.
|
|
82712
82712
|
* @property {number} duration The duration of the transition in milliseconds.
|
|
82713
|
-
* @property {
|
|
82713
|
+
* @property {Function} ease The easing function.
|
|
82714
82714
|
*/
|
|
82715
82715
|
geo_event.transitionend = 'geo_transitionend';
|
|
82716
82716
|
|
|
@@ -82722,7 +82722,7 @@ geo_event.transitionend = 'geo_transitionend';
|
|
|
82722
82722
|
* @property {geo.geoPosition} center The target center.
|
|
82723
82723
|
* @property {number} zoom The target zoom level.
|
|
82724
82724
|
* @property {number} duration The duration of the transition in milliseconds.
|
|
82725
|
-
* @property {
|
|
82725
|
+
* @property {Function} ease The easing function.
|
|
82726
82726
|
*/
|
|
82727
82727
|
geo_event.transitioncancel = 'geo_transitioncancel';
|
|
82728
82728
|
|
|
@@ -83724,10 +83724,10 @@ var feature = __webpack_require__(1275);
|
|
|
83724
83724
|
*
|
|
83725
83725
|
* @typedef {geo.feature.spec} geo.textFeature.spec
|
|
83726
83726
|
* @extends geo.feature.spec
|
|
83727
|
-
* @property {geo.geoPosition[]|
|
|
83727
|
+
* @property {geo.geoPosition[]|Function} [position] The position of each data
|
|
83728
83728
|
* element. Defaults to the `x`, `y`, and `z` properties of the data
|
|
83729
83729
|
* element.
|
|
83730
|
-
* @property {string[]|
|
|
83730
|
+
* @property {string[]|Function} [text] The text of each data element.
|
|
83731
83731
|
* Defaults to the `text` property of the data element.
|
|
83732
83732
|
* @property {geo.textFeature.styleSpec} [style] The style to apply to each
|
|
83733
83733
|
* data element.
|
|
@@ -83738,55 +83738,55 @@ var feature = __webpack_require__(1275);
|
|
|
83738
83738
|
*
|
|
83739
83739
|
* @typedef {geo.feature.styleSpec} geo.textFeature.styleSpec
|
|
83740
83740
|
* @extends geo.feature.styleSpec
|
|
83741
|
-
* @property {boolean|
|
|
83741
|
+
* @property {boolean|Function} [visible=true] If falsy, don't show this data
|
|
83742
83742
|
* element.
|
|
83743
|
-
* @property {string|
|
|
83743
|
+
* @property {string|Function} [font] A css font specification. This is of the
|
|
83744
83744
|
* form `[style] [variant] [weight] [stretch] size[/line-height] family`.
|
|
83745
83745
|
* Individual font styles override this value if a style is specified in
|
|
83746
83746
|
* each. See the individual font styles for details.
|
|
83747
|
-
* @property {string|
|
|
83747
|
+
* @property {string|Function} [fontStyle='normal'] The font style. One of
|
|
83748
83748
|
* `normal`, `italic`, or `oblique`.
|
|
83749
|
-
* @property {string|
|
|
83749
|
+
* @property {string|Function} [fontVariant='normal'] The font variant. This
|
|
83750
83750
|
* can have values such as `small-caps` or `slashed-zero`.
|
|
83751
|
-
* @property {string|
|
|
83751
|
+
* @property {string|Function} [fontWeight='normal'] The font weight. This may
|
|
83752
83752
|
* be a numeric value where 400 is normal and 700 is bold, or a string such
|
|
83753
83753
|
* as `bold` or `lighter`.
|
|
83754
|
-
* @property {string|
|
|
83754
|
+
* @property {string|Function} [fontStretch='normal'] The font stretch, such as
|
|
83755
83755
|
* `condensed`.
|
|
83756
|
-
* @property {string|
|
|
83757
|
-
* @property {string|
|
|
83758
|
-
* @property {string|
|
|
83759
|
-
* @property {string|
|
|
83756
|
+
* @property {string|Function} [fontSize='medium'] The font size.
|
|
83757
|
+
* @property {string|Function} [lineHeight='normal'] The font line height.
|
|
83758
|
+
* @property {string|Function} [fontFamily] The font family.
|
|
83759
|
+
* @property {string|Function} [textAlign='center'] The horizontal text
|
|
83760
83760
|
* alignment. One of `start`, `end`, `left`, `right`, or `center`.
|
|
83761
|
-
* @property {string|
|
|
83761
|
+
* @property {string|Function} [textBaseline='middle'] The vertical text
|
|
83762
83762
|
* alignment. One of `top`, `hanging`, `middle`, `alphabetic`,
|
|
83763
83763
|
* `ideographic`, or `bottom`.
|
|
83764
|
-
* @property {geo.geoColor|
|
|
83764
|
+
* @property {geo.geoColor|Function} [color='black'] Text color. May include
|
|
83765
83765
|
* opacity.
|
|
83766
|
-
* @property {number|
|
|
83766
|
+
* @property {number|Function} [textOpacity=1] The opacity of the text. If the
|
|
83767
83767
|
* color includes opacity, this is combined with that value.
|
|
83768
|
-
* @property {number|
|
|
83769
|
-
* @property {boolean|
|
|
83768
|
+
* @property {number|Function} [rotation=0] Text rotation in radians.
|
|
83769
|
+
* @property {boolean|Function} [rotateWithMap=false] If truthy, rotate the
|
|
83770
83770
|
* text when the map rotates. Otherwise, the text is always in the same
|
|
83771
83771
|
* orientation.
|
|
83772
|
-
* @property {number|
|
|
83772
|
+
* @property {number|Function} [textScaled] If defined, the text is scaled when
|
|
83773
83773
|
* the map zooms and this is the basis zoom for the fontSize.
|
|
83774
|
-
* @property {geo.screenPosition|
|
|
83774
|
+
* @property {geo.screenPosition|Function} [offset] Offset from the default
|
|
83775
83775
|
* position for the text. This is applied before rotation.
|
|
83776
|
-
* @property {geo.geoColor|
|
|
83776
|
+
* @property {geo.geoColor|Function} [shadowColor='black'] Text shadow color.
|
|
83777
83777
|
* May include opacity.
|
|
83778
|
-
* @property {geo.screenPosition|
|
|
83778
|
+
* @property {geo.screenPosition|Function} [shadowOffset] Offset for a text
|
|
83779
83779
|
* shadow. This is applied before rotation.
|
|
83780
|
-
* @property {number|null|
|
|
83780
|
+
* @property {number|null|Function} [shadowBlur] If not null, add a text shadow
|
|
83781
83781
|
* with this much blur.
|
|
83782
|
-
* @property {boolean|
|
|
83782
|
+
* @property {boolean|Function} [shadowRotate=false] If truthy, rotate the
|
|
83783
83783
|
* shadow offset based on the text rotation (the `shadowOffset` is the
|
|
83784
83784
|
* offset if the text has a 0 rotation).
|
|
83785
|
-
* @property {geo.geoColor|
|
|
83785
|
+
* @property {geo.geoColor|Function} [textStrokeColor='transparent'] Text
|
|
83786
83786
|
* stroke color. May include opacity.
|
|
83787
|
-
* @property {geo.geoColor|
|
|
83787
|
+
* @property {geo.geoColor|Function} [textStrokeWidth=0] Text stroke width in
|
|
83788
83788
|
* pixels.
|
|
83789
|
-
* @property {number|
|
|
83789
|
+
* @property {number|Function} [renderThreshold] If this is a positive number,
|
|
83790
83790
|
* text elements may not be rendered if their base position (before offset
|
|
83791
83791
|
* and font effects are applied) is more than this distance in pixels
|
|
83792
83792
|
* outside of the current viewport. If it is known that such text elements
|
|
@@ -83823,9 +83823,9 @@ var _textFeature = function textFeature(arg) {
|
|
|
83823
83823
|
/**
|
|
83824
83824
|
* Get/Set position.
|
|
83825
83825
|
*
|
|
83826
|
-
* @param {array|
|
|
83826
|
+
* @param {array|Function} [val] If `undefined`, return the current position
|
|
83827
83827
|
* setting. Otherwise, modify the current position setting.
|
|
83828
|
-
* @returns {array|
|
|
83828
|
+
* @returns {array|Function|this} The current position or this feature.
|
|
83829
83829
|
*/
|
|
83830
83830
|
this.position = function (val) {
|
|
83831
83831
|
if (val === undefined) {
|
|
@@ -83841,9 +83841,9 @@ var _textFeature = function textFeature(arg) {
|
|
|
83841
83841
|
/**
|
|
83842
83842
|
* Get/Set text.
|
|
83843
83843
|
*
|
|
83844
|
-
* @param {array|
|
|
83844
|
+
* @param {array|Function} [val] If `undefined`, return the current text
|
|
83845
83845
|
* setting. Otherwise, modify the current text setting.
|
|
83846
|
-
* @returns {array|
|
|
83846
|
+
* @returns {array|Function|this} The current text or this feature.
|
|
83847
83847
|
*/
|
|
83848
83848
|
this.text = function (val) {
|
|
83849
83849
|
if (val === undefined) {
|
|
@@ -84338,9 +84338,9 @@ var transform = __webpack_require__(5325);
|
|
|
84338
84338
|
*
|
|
84339
84339
|
* @typedef {geo.feature.spec} geo.polygonFeature.spec
|
|
84340
84340
|
* @extends geo.feature.spec
|
|
84341
|
-
* @property {geo.geoPosition|
|
|
84341
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
84342
84342
|
* Default is (data).
|
|
84343
|
-
* @property {geo.polygon|
|
|
84343
|
+
* @property {geo.polygon|Function} [polygon] Polygons from the data. Default
|
|
84344
84344
|
* (data).
|
|
84345
84345
|
* @property {geo.polygonFeature.styleSpec} [style] Style object with default
|
|
84346
84346
|
* style options.
|
|
@@ -84351,17 +84351,17 @@ var transform = __webpack_require__(5325);
|
|
|
84351
84351
|
*
|
|
84352
84352
|
* @typedef {geo.lineFeature.styleSpec} geo.polygonFeature.styleSpec
|
|
84353
84353
|
* @extends geo.lineFeature.styleSpec
|
|
84354
|
-
* @property {boolean|
|
|
84355
|
-
* @property {geo.geoColor|
|
|
84354
|
+
* @property {boolean|Function} [fill=true] True to fill polygon.
|
|
84355
|
+
* @property {geo.geoColor|Function} [fillColor] Color to fill each polygon.
|
|
84356
84356
|
* The color can vary by vertex.
|
|
84357
|
-
* @property {number|
|
|
84357
|
+
* @property {number|Function} [fillOpacity] Opacity for each polygon. The
|
|
84358
84358
|
* opacity can vary by vertex. Opacity is on a [0-1] scale.
|
|
84359
|
-
* @property {boolean|
|
|
84360
|
-
* @property {boolean|
|
|
84359
|
+
* @property {boolean|Function} [stroke=false] True to stroke polygon.
|
|
84360
|
+
* @property {boolean|Function} [uniformPolygon=false] Boolean indicating if
|
|
84361
84361
|
* each polygon has a uniform style (uniform fill color, fill opacity, stroke
|
|
84362
84362
|
* color, and stroke opacity). Can vary by polygon.
|
|
84363
|
-
* @property {boolean|
|
|
84364
|
-
* @property {number[]|
|
|
84363
|
+
* @property {boolean|Function} [closed=true] Ignored. Always `true`.
|
|
84364
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
84365
84365
|
* for to ensure high precision drawing in this location. When called as a
|
|
84366
84366
|
* function, this is passed an array of items, each of which has a vertices
|
|
84367
84367
|
* property that is a single continuous array in map gcs coordinates. It
|
|
@@ -84434,9 +84434,9 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
84434
84434
|
*
|
|
84435
84435
|
* @private
|
|
84436
84436
|
* @param {object[]} [data] The data to process.
|
|
84437
|
-
* @param {
|
|
84437
|
+
* @param {Function} [posFunc] The function to
|
|
84438
84438
|
* get the position of each vertex.
|
|
84439
|
-
* @param {
|
|
84439
|
+
* @param {Function} [polyFunc] The function to
|
|
84440
84440
|
* get each polygon.
|
|
84441
84441
|
* @returns {geo.polygonObject[]} An array of polygon positions. Each has
|
|
84442
84442
|
* `outer` and `inner` if it has any coordinates, or is `undefined`.
|
|
@@ -84559,7 +84559,7 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
84559
84559
|
* the stroke. This should be m_this.style(<name of style>) and not
|
|
84560
84560
|
* m_this.style.get(<name of style>), as the result is more efficient if
|
|
84561
84561
|
* the style is not a function.
|
|
84562
|
-
* @returns {object|
|
|
84562
|
+
* @returns {object|Function} A style that can be used for the stroke.
|
|
84563
84563
|
* @private
|
|
84564
84564
|
*/
|
|
84565
84565
|
function linePolyStyle(styleValue) {
|
|
@@ -84575,11 +84575,11 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
84575
84575
|
/**
|
|
84576
84576
|
* Get/set polygon accessor.
|
|
84577
84577
|
*
|
|
84578
|
-
* @param {object|
|
|
84578
|
+
* @param {object|Function} [val] If not specified, return the current
|
|
84579
84579
|
* polygon accessor. If specified, use this for the polygon accessor and
|
|
84580
84580
|
* return `this`. If a function is given, the function is passed
|
|
84581
84581
|
* `(dataElement, dataIndex)` and returns a {@link geo.polygon}.
|
|
84582
|
-
* @returns {object|
|
|
84582
|
+
* @returns {object|Function|this} The current polygon accessor or this
|
|
84583
84583
|
* feature.
|
|
84584
84584
|
*/
|
|
84585
84585
|
this.polygon = function (val) {
|
|
@@ -84597,7 +84597,7 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
84597
84597
|
/**
|
|
84598
84598
|
* Get/Set position accessor.
|
|
84599
84599
|
*
|
|
84600
|
-
* @param {geo.geoPosition|
|
|
84600
|
+
* @param {geo.geoPosition|Function} [val] If not specified, return the
|
|
84601
84601
|
* current position accessor. If specified, use this for the position
|
|
84602
84602
|
* accessor and return `this`. If a function is given, this is called
|
|
84603
84603
|
* with `(vertexElement, vertexIndex, dataElement, dataIndex)`.
|
|
@@ -84961,9 +84961,9 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
84961
84961
|
* units. A value of zero will only remove perfectly collinear points.
|
|
84962
84962
|
* If not specified, this is set to a half display pixel at the map's
|
|
84963
84963
|
* current zoom level.
|
|
84964
|
-
* @param {
|
|
84964
|
+
* @param {Function} [posFunc] The function to
|
|
84965
84965
|
* get the position of each vertex.
|
|
84966
|
-
* @param {
|
|
84966
|
+
* @param {Function} [polyFunc] The function to
|
|
84967
84967
|
* get each polygon.
|
|
84968
84968
|
* @param {boolean} [returnData] If truthy, return the new data array
|
|
84969
84969
|
* rather than modifying the feature.
|
|
@@ -85714,17 +85714,17 @@ var meshFeature = __webpack_require__(6124);
|
|
|
85714
85714
|
*
|
|
85715
85715
|
* @typedef {geo.feature.styleSpec} geo.contourFeature.styleSpec
|
|
85716
85716
|
* @extends geo.feature.styleSpec
|
|
85717
|
-
* @property {geo.geoPosition|
|
|
85717
|
+
* @property {geo.geoPosition|Function} [position=data] The position of each
|
|
85718
85718
|
* data element. This defaults to just using `x`, `y`, and `z` properties
|
|
85719
85719
|
* of the data element itself. The position is in the feature's gcs
|
|
85720
85720
|
* coordinates.
|
|
85721
|
-
* @property {number|
|
|
85721
|
+
* @property {number|Function} [value=data.z] The value of each data element.
|
|
85722
85722
|
* This defaults to the `z` property of the data elements. If the value of
|
|
85723
85723
|
* a grid point is `null` or `undefined`, the point and elements that use
|
|
85724
85724
|
* that point won't be included in the results.
|
|
85725
|
-
* @property {number|
|
|
85725
|
+
* @property {number|Function} [opacity=1] The opacity for the whole feature on
|
|
85726
85726
|
* a scale of 0 to 1.
|
|
85727
|
-
* @property {number[]|
|
|
85727
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
85728
85728
|
* for to ensure high precision drawing in this location. When called as a
|
|
85729
85729
|
* function, this is passed the vertex positions as a single continuous array
|
|
85730
85730
|
* in map gcs coordinates. It defaults to the first vertex used in the
|
|
@@ -86224,7 +86224,7 @@ var util = __webpack_require__(642);
|
|
|
86224
86224
|
* @extends geo.feature.spec
|
|
86225
86225
|
* @property {geo.vectorFeature.styleSpec} [style] Style object with default
|
|
86226
86226
|
* style options.
|
|
86227
|
-
* @property {
|
|
86227
|
+
* @property {Function|object} [origin={x: 0, y: 0, z: 0}] Origin accessor.
|
|
86228
86228
|
*/
|
|
86229
86229
|
|
|
86230
86230
|
/**
|
|
@@ -86232,22 +86232,22 @@ var util = __webpack_require__(642);
|
|
|
86232
86232
|
*
|
|
86233
86233
|
* @typedef {geo.feature.styleSpec} geo.vectorFeature.styleSpec
|
|
86234
86234
|
* @extends geo.feature.styleSpec
|
|
86235
|
-
* @property {geo.geoColor|
|
|
86236
|
-
* @property {number|
|
|
86235
|
+
* @property {geo.geoColor|Function} [strokeColor] Color to stroke each vector.
|
|
86236
|
+
* @property {number|Function} [strokeOpacity] Opacity for each vector.
|
|
86237
86237
|
* Opacity is on a [0-1] scale.
|
|
86238
|
-
* @property {number|
|
|
86238
|
+
* @property {number|Function} [strokeWidth] The weight of the vector stroke in
|
|
86239
86239
|
* pixels.
|
|
86240
|
-
* @property {string|
|
|
86240
|
+
* @property {string|Function} [originStyle='none'] The style at the origin of
|
|
86241
86241
|
* the vector. One of the marker styles or `'none'`. Marker styles are
|
|
86242
86242
|
* usually `'arrow'`, `'point'`, `'bar'`, and `'wedge'`.
|
|
86243
|
-
* @property {string|
|
|
86243
|
+
* @property {string|Function} [endStyle='arrow'] The style at the far end of
|
|
86244
86244
|
* the vector. One of the marker styles or `'none'`. Marker styles are
|
|
86245
86245
|
* usually `'arrow'`, `'point'`, `'bar'`, and `'wedge'`.
|
|
86246
|
-
* @property {geo.geoPosition|
|
|
86246
|
+
* @property {geo.geoPosition|Function} [origin={x: 0, y: 0, z: 0}] The origin
|
|
86247
86247
|
* of the vector. One end of the vector will be at this point.
|
|
86248
|
-
* @property {geo.geoPosition|
|
|
86248
|
+
* @property {geo.geoPosition|Function} [delta] The direction that the vector
|
|
86249
86249
|
* points in. The length of the vector is dependent on this and the `scale`.
|
|
86250
|
-
* @property {number|
|
|
86250
|
+
* @property {number|Function} [scale] The size of the vector relative to the
|
|
86251
86251
|
* delta. If `null`, `undefined`, or `0`, this is `75 / <maximum length of
|
|
86252
86252
|
* any delta in x-y space>`.
|
|
86253
86253
|
*/
|
|
@@ -86281,9 +86281,9 @@ var _vectorFeature = function vectorFeature(arg) {
|
|
|
86281
86281
|
* Get or set the accessor for the origin of the vector. This is the point
|
|
86282
86282
|
* that the vector starts.
|
|
86283
86283
|
*
|
|
86284
|
-
* @param {geo.geoPosition|
|
|
86284
|
+
* @param {geo.geoPosition|Function} [val] The new origin if specified. If
|
|
86285
86285
|
* not specified, return the current origin.
|
|
86286
|
-
* @returns {geo.geoPosition|
|
|
86286
|
+
* @returns {geo.geoPosition|Function|this} Either the current origin or
|
|
86287
86287
|
* this feature.
|
|
86288
86288
|
*/
|
|
86289
86289
|
this.origin = function (val) {
|
|
@@ -86300,9 +86300,9 @@ var _vectorFeature = function vectorFeature(arg) {
|
|
|
86300
86300
|
* Get or set the accessor for the displacement (coordinates) of the vector.
|
|
86301
86301
|
* This is the direction of the vector.
|
|
86302
86302
|
*
|
|
86303
|
-
* @param {geo.geoPosition|
|
|
86303
|
+
* @param {geo.geoPosition|Function} [val] The new delta if specified. If
|
|
86304
86304
|
* not specified, return the current delta.
|
|
86305
|
-
* @returns {geo.geoPosition|
|
|
86305
|
+
* @returns {geo.geoPosition|Function|this} Either the current delta or this
|
|
86306
86306
|
* feature.
|
|
86307
86307
|
*/
|
|
86308
86308
|
this.delta = function (val) {
|
|
@@ -87505,7 +87505,7 @@ var _annotation = function annotation(type, args) {
|
|
|
87505
87505
|
* Apply a map function of a geo.polygon.
|
|
87506
87506
|
*
|
|
87507
87507
|
* @param {geo.polygon} coord The polygon to apply the function to.
|
|
87508
|
-
* @param {
|
|
87508
|
+
* @param {Function} func The function to apply.
|
|
87509
87509
|
* @returns {array} The map results.
|
|
87510
87510
|
*/
|
|
87511
87511
|
this._coordinatesMapFunc = function (coord, func) {
|
|
@@ -87770,7 +87770,7 @@ var _annotation = function annotation(type, args) {
|
|
|
87770
87770
|
*
|
|
87771
87771
|
* @private
|
|
87772
87772
|
* @param {object} m_this The current annotation instance.
|
|
87773
|
-
* @param {
|
|
87773
|
+
* @param {Function} s_actions The parent actions method.
|
|
87774
87774
|
* @param {string|undefined} state The state to return actions for. Defaults
|
|
87775
87775
|
* to the current state.
|
|
87776
87776
|
* @param {string} name The name of this annotation.
|
|
@@ -87870,7 +87870,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
|
|
|
87870
87870
|
* that it is twice as wide as tall, [2, 1/2] would allow it to be twice as
|
|
87871
87871
|
* wide or half as wide as it is tall. Sizes (e.g., {width: 400, height:
|
|
87872
87872
|
* 500}) snap to that size.
|
|
87873
|
-
* @returns {
|
|
87873
|
+
* @returns {Function} A function that can be passed to the mapIterator
|
|
87874
87874
|
* selectionConstraint or to an annotation constraint function.
|
|
87875
87875
|
*/
|
|
87876
87876
|
function constrainAspectRatio(ratio) {
|
|
@@ -89565,7 +89565,7 @@ var feature = __webpack_require__(1275);
|
|
|
89565
89565
|
*
|
|
89566
89566
|
* @typedef {geo.feature.spec} geo.pointFeature.spec
|
|
89567
89567
|
* @extends geo.feature.spec
|
|
89568
|
-
* @property {geo.geoPosition|
|
|
89568
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
89569
89569
|
* Default is (data).
|
|
89570
89570
|
* @property {geo.pointFeature.styleSpec} [style] Style object with default
|
|
89571
89571
|
* style options.
|
|
@@ -89591,19 +89591,19 @@ var feature = __webpack_require__(1275);
|
|
|
89591
89591
|
*
|
|
89592
89592
|
* @typedef {geo.feature.styleSpec} geo.pointFeature.styleSpec
|
|
89593
89593
|
* @extends geo.feature.styleSpec
|
|
89594
|
-
* @property {number|
|
|
89594
|
+
* @property {number|Function} [radius=5] Radius of each point in pixels. This
|
|
89595
89595
|
* is the fill radius inside of the stroke.
|
|
89596
|
-
* @property {boolean|
|
|
89597
|
-
* @property {geo.geoColor|
|
|
89598
|
-
* @property {number|
|
|
89596
|
+
* @property {boolean|Function} [stroke=true] True to stroke point.
|
|
89597
|
+
* @property {geo.geoColor|Function} [strokeColor] Color to stroke each point.
|
|
89598
|
+
* @property {number|Function} [strokeOpacity=1] Opacity for each point's
|
|
89599
89599
|
* stroke. Opacity is on a [0-1] scale.
|
|
89600
|
-
* @property {number|
|
|
89600
|
+
* @property {number|Function} [strokeWidth=1.25] The weight of the point's
|
|
89601
89601
|
* stroke in pixels.
|
|
89602
|
-
* @property {boolean|
|
|
89603
|
-
* @property {geo.geoColor|
|
|
89604
|
-
* @property {number|
|
|
89602
|
+
* @property {boolean|Function} [fill=true] True to fill point.
|
|
89603
|
+
* @property {geo.geoColor|Function} [fillColor] Color to fill each point.
|
|
89604
|
+
* @property {number|Function} [fillOpacity=1] Opacity for each point. Opacity
|
|
89605
89605
|
* is on a [0-1] scale.
|
|
89606
|
-
* @property {number[]|
|
|
89606
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
89607
89607
|
* for to ensure high precision drawing in this location. When called as a
|
|
89608
89608
|
* function, this is passed the point positions as a single continuous array
|
|
89609
89609
|
* in map gcs coordinates. It defaults to the first point's position.
|
|
@@ -89775,11 +89775,11 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
89775
89775
|
/**
|
|
89776
89776
|
* Get/Set position.
|
|
89777
89777
|
*
|
|
89778
|
-
* @param {
|
|
89778
|
+
* @param {Function|geo.geoPosition} [val] If not specified, return the
|
|
89779
89779
|
* position accessor, which is guaranteed to be a function. If specified,
|
|
89780
89780
|
* wrap the value in an function that handles clustering if it is enabled
|
|
89781
89781
|
* and set the position accessor to that function.
|
|
89782
|
-
* @returns {this|
|
|
89782
|
+
* @returns {this|Function}
|
|
89783
89783
|
*/
|
|
89784
89784
|
this.position = function (val) {
|
|
89785
89785
|
if (val === undefined) {
|
|
@@ -91919,6 +91919,9 @@ var _webgl_pixelmapFeature = function webgl_pixelmapFeature(arg) {
|
|
|
91919
91919
|
context.drawImage(img, x, y, 1, 1, 0, 0, 1, 1);
|
|
91920
91920
|
var pixel = context.getImageData(0, 0, 1, 1).data;
|
|
91921
91921
|
var idx = pixel[0] + pixel[1] * 256 + pixel[2] * 256 * 256;
|
|
91922
|
+
if (idx === 16777215) {
|
|
91923
|
+
continue;
|
|
91924
|
+
}
|
|
91922
91925
|
result = {
|
|
91923
91926
|
index: [idx],
|
|
91924
91927
|
found: [m_this.data()[idx]]
|
|
@@ -92071,15 +92074,16 @@ var util = __webpack_require__(642);
|
|
|
92071
92074
|
*
|
|
92072
92075
|
* @typedef {geo.feature.spec} geo.pixelmapFeature.spec
|
|
92073
92076
|
* @extends geo.feature.spec
|
|
92074
|
-
* @property {string|
|
|
92077
|
+
* @property {string|Function|HTMLImageElement} [url] URL of a pixel map or an
|
|
92075
92078
|
* HTML Image element. The rgb data is interpreted as an index of the form
|
|
92076
|
-
* 0xbbggrr. The alpha channel is ignored.
|
|
92077
|
-
*
|
|
92079
|
+
* 0xbbggrr. The alpha channel is ignored. An index of 0xffffff is treated
|
|
92080
|
+
* as a no-data value for hit-tests.
|
|
92081
|
+
* @property {geo.geoColor|Function} [color] The color that should be used
|
|
92078
92082
|
* for each data element. Data elements correspond to the indices in the
|
|
92079
92083
|
* pixel map. If an index is larger than the number of data elements, it will
|
|
92080
92084
|
* be transparent. If there is more data than there are indices, it is
|
|
92081
92085
|
* ignored.
|
|
92082
|
-
* @property {geo.geoPosition|
|
|
92086
|
+
* @property {geo.geoPosition|Function} [position] Position of the image.
|
|
92083
92087
|
* Default is (data). The position is an Object which specifies the corners
|
|
92084
92088
|
* of the quad: ll, lr, ur, ul. At least two opposite corners must be
|
|
92085
92089
|
* specified. The corners do not have to physically correspond to the order
|
|
@@ -92124,11 +92128,11 @@ var _pixelmapFeature = function pixelmapFeature(arg) {
|
|
|
92124
92128
|
/**
|
|
92125
92129
|
* Get/Set position accessor.
|
|
92126
92130
|
*
|
|
92127
|
-
* @param {geo.geoPosition|
|
|
92131
|
+
* @param {geo.geoPosition|Function} [val] If not specified, return the
|
|
92128
92132
|
* current position accessor. If specified, use this for the position
|
|
92129
92133
|
* accessor and return `this`. See {@link geo.quadFeature.position} for
|
|
92130
92134
|
* for details on this position.
|
|
92131
|
-
* @returns {geo.geoPosition|
|
|
92135
|
+
* @returns {geo.geoPosition|Function|this}
|
|
92132
92136
|
*/
|
|
92133
92137
|
this.position = function (val) {
|
|
92134
92138
|
if (val === undefined) {
|
|
@@ -92144,10 +92148,10 @@ var _pixelmapFeature = function pixelmapFeature(arg) {
|
|
|
92144
92148
|
/**
|
|
92145
92149
|
* Get/Set url accessor.
|
|
92146
92150
|
*
|
|
92147
|
-
* @param {string|
|
|
92151
|
+
* @param {string|Function} [val] If not specified, return the current url
|
|
92148
92152
|
* accessor. If specified, use this for the url accessor and return
|
|
92149
92153
|
* `this`.
|
|
92150
|
-
* @returns {string|
|
|
92154
|
+
* @returns {string|Function|this}
|
|
92151
92155
|
*/
|
|
92152
92156
|
this.url = function (val) {
|
|
92153
92157
|
if (val === undefined) {
|
|
@@ -92164,9 +92168,9 @@ var _pixelmapFeature = function pixelmapFeature(arg) {
|
|
|
92164
92168
|
/**
|
|
92165
92169
|
* Get/Set color accessor.
|
|
92166
92170
|
*
|
|
92167
|
-
* @param {geo.geoColor|
|
|
92171
|
+
* @param {geo.geoColor|Function} [val] The new color map accessor or
|
|
92168
92172
|
* `undefined` to get the current accessor.
|
|
92169
|
-
* @returns {geo.geoColor|
|
|
92173
|
+
* @returns {geo.geoColor|Function|this}
|
|
92170
92174
|
*/
|
|
92171
92175
|
this.color = function (val) {
|
|
92172
92176
|
if (val === undefined) {
|
|
@@ -92604,7 +92608,7 @@ var Mousetrap = __webpack_require__(7549);
|
|
|
92604
92608
|
* animation.
|
|
92605
92609
|
* @property {number} [zoomAnimation.duration=500] The time it takes for the
|
|
92606
92610
|
* final zoom to be reached.
|
|
92607
|
-
* @property {
|
|
92611
|
+
* @property {Function} [zoomAnimation.ease] The easing function for the zoom.
|
|
92608
92612
|
* The default is `(2 - t) * t`.
|
|
92609
92613
|
*/
|
|
92610
92614
|
|
|
@@ -94232,7 +94236,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
94232
94236
|
* Private wrapper around the map zoom method that is debounced to support
|
|
94233
94237
|
* discrete zoom interactions.
|
|
94234
94238
|
*
|
|
94235
|
-
* @returns {
|
|
94239
|
+
* @returns {Function} A function to handle zooms that debounces such
|
|
94236
94240
|
* events. This function is passed the zoom level and the mouse state.
|
|
94237
94241
|
*/
|
|
94238
94242
|
function debounced_zoom() {
|
|
@@ -94332,7 +94336,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
94332
94336
|
* throttling map interactions.
|
|
94333
94337
|
* @private
|
|
94334
94338
|
*
|
|
94335
|
-
* @returns {
|
|
94339
|
+
* @returns {Function} A function that takes a jQuery.Event for mouse wheel
|
|
94336
94340
|
* actions.
|
|
94337
94341
|
* @fires geo.event.actionwheel
|
|
94338
94342
|
*/
|
|
@@ -98041,7 +98045,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
|
|
|
98041
98045
|
* @constant
|
|
98042
98046
|
* @type {string}
|
|
98043
98047
|
*/
|
|
98044
|
-
module.exports = "
|
|
98048
|
+
module.exports = "b2633a4a6492cbfd57948841ab2ee228591ff2bd";
|
|
98045
98049
|
|
|
98046
98050
|
/***/ }),
|
|
98047
98051
|
|
|
@@ -98180,7 +98184,7 @@ var _tileCache = function tileCache(options) {
|
|
|
98180
98184
|
* Add a tile to the cache.
|
|
98181
98185
|
*
|
|
98182
98186
|
* @param {geo.tile} tile The tile to add.
|
|
98183
|
-
* @param {
|
|
98187
|
+
* @param {Function} removeFunc If specified and tiles must be purged from
|
|
98184
98188
|
* the cache, call this function on each tile before purging.
|
|
98185
98189
|
* @param {boolean} noPurge if true, don't purge tiles.
|
|
98186
98190
|
*/
|
|
@@ -98200,7 +98204,7 @@ var _tileCache = function tileCache(options) {
|
|
|
98200
98204
|
/**
|
|
98201
98205
|
* Purge tiles from the cache if it is full.
|
|
98202
98206
|
*
|
|
98203
|
-
* @param {
|
|
98207
|
+
* @param {Function} removeFunc If specified and tiles must be purged from
|
|
98204
98208
|
* the cache, call this function on each tile before purging.
|
|
98205
98209
|
*/
|
|
98206
98210
|
this.purge = function (removeFunc) {
|
|
@@ -98772,9 +98776,9 @@ var util = __webpack_require__(642);
|
|
|
98772
98776
|
*
|
|
98773
98777
|
* @typedef {geo.feature.spec} geo.heatmapFeature.spec
|
|
98774
98778
|
* @extends geo.feature.spec
|
|
98775
|
-
* @property {geo.geoPosition|
|
|
98779
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
98776
98780
|
* Default is (data).
|
|
98777
|
-
* @property {
|
|
98781
|
+
* @property {Function} [intensity] Scalar value of each data point. The
|
|
98778
98782
|
* scalar value must be a positive real number and is used to compute the
|
|
98779
98783
|
* weight for each data point.
|
|
98780
98784
|
* @property {number} [maxIntensity=null] Maximum intensity of the data.
|
|
@@ -98944,11 +98948,11 @@ var _heatmapFeature = function heatmapFeature(arg) {
|
|
|
98944
98948
|
/**
|
|
98945
98949
|
* Get/Set position accessor.
|
|
98946
98950
|
*
|
|
98947
|
-
* @param {geo.geoPosition|
|
|
98951
|
+
* @param {geo.geoPosition|Function} [val] If not specified, return the
|
|
98948
98952
|
* current position accessor. If specified, use this for the position
|
|
98949
98953
|
* accessor and return `this`. If a function is given, this is called
|
|
98950
98954
|
* with `(dataElement, dataIndex)`.
|
|
98951
|
-
* @returns {geo.geoPosition|
|
|
98955
|
+
* @returns {geo.geoPosition|Function|this} The current position or this
|
|
98952
98956
|
* feature.
|
|
98953
98957
|
*/
|
|
98954
98958
|
this.position = function (val) {
|
|
@@ -98975,9 +98979,9 @@ var _heatmapFeature = function heatmapFeature(arg) {
|
|
|
98975
98979
|
/**
|
|
98976
98980
|
* Get/Set intensity.
|
|
98977
98981
|
*
|
|
98978
|
-
* @param {
|
|
98982
|
+
* @param {Function} [val] If not specified, the current intensity accessor.
|
|
98979
98983
|
* Otherwise, a function that returns the intensity of each data point.
|
|
98980
|
-
* @returns {
|
|
98984
|
+
* @returns {Function|this}
|
|
98981
98985
|
*/
|
|
98982
98986
|
this.intensity = function (val) {
|
|
98983
98987
|
if (val === undefined) {
|
|
@@ -99112,7 +99116,7 @@ var util = __webpack_require__(642);
|
|
|
99112
99116
|
* @property {number} [tileOverlap.y] Vertical overlap.
|
|
99113
99117
|
* @property {number} [tileWidth=256] The tile width without overlap.
|
|
99114
99118
|
* @property {number} [tileHeight=256] The tile height without overlap.
|
|
99115
|
-
* @property {
|
|
99119
|
+
* @property {Function} [tilesAtZoom=null] A function that is given a zoom
|
|
99116
99120
|
* level and returns `{x: (num), y: (num)}` with the number of tiles at that
|
|
99117
99121
|
* zoom level.
|
|
99118
99122
|
* @property {number} [cacheSize=600] The maximum number of tiles to cache.
|
|
@@ -99133,7 +99137,7 @@ var util = __webpack_require__(642);
|
|
|
99133
99137
|
* results in smoother transitions.
|
|
99134
99138
|
* @property {boolean} [wrapX=true] Wrap in the x-direction.
|
|
99135
99139
|
* @property {boolean} [wrapY=false] Wrap in the y-direction.
|
|
99136
|
-
* @property {string|
|
|
99140
|
+
* @property {string|Function} [url=null] A function taking the current tile
|
|
99137
99141
|
* indices `(x, y, level, subdomains)` and returning a URL or jquery ajax
|
|
99138
99142
|
* config to be passed to the {geo.tile} constructor. Example:
|
|
99139
99143
|
* ```
|
|
@@ -99156,13 +99160,13 @@ var util = __webpack_require__(642);
|
|
|
99156
99160
|
* tile loading animation to occur. Only some renderers support this.
|
|
99157
99161
|
* @property {string} [attribution] An attribution to display with the layer
|
|
99158
99162
|
* (accepts HTML).
|
|
99159
|
-
* @property {
|
|
99163
|
+
* @property {Function} [tileRounding=Math.round] This function determines
|
|
99160
99164
|
* which tiles will be loaded when the map is at a non-integer zoom. For
|
|
99161
99165
|
* example, `Math.floor`, will use tile level 2 when the map is at zoom 2.9.
|
|
99162
|
-
* @property {
|
|
99166
|
+
* @property {Function} [tileOffset] This function takes a zoom level argument
|
|
99163
99167
|
* and returns, in units of pixels, the coordinates of the point (0, 0) at
|
|
99164
99168
|
* the given zoom level relative to the bottom left corner of the domain.
|
|
99165
|
-
* @property {
|
|
99169
|
+
* @property {Function} [tilesMaxBounds=null] This function takes a zoom level
|
|
99166
99170
|
* argument and returns an object with `x` and `y` in pixels which is used to
|
|
99167
99171
|
* crop the last row and column of tiles. Note that if tiles wrap, only
|
|
99168
99172
|
* complete tiles in the wrapping direction(s) are supported, and this max
|
|
@@ -99222,7 +99226,7 @@ function m_getTileSubdomain(x, y, z, subdomains) {
|
|
|
99222
99226
|
*
|
|
99223
99227
|
* @private
|
|
99224
99228
|
* @param {string} base The tile format string
|
|
99225
|
-
* @returns {
|
|
99229
|
+
* @returns {Function} A conversion function.
|
|
99226
99230
|
*/
|
|
99227
99231
|
function m_tileUrlFromTemplate(base) {
|
|
99228
99232
|
var xPattern = /\$?\{[xX]\}/g,
|
|
@@ -99989,7 +99993,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
99989
99993
|
* @param {object} center The center tile.
|
|
99990
99994
|
* @param {number} center.x
|
|
99991
99995
|
* @param {number} center.y
|
|
99992
|
-
* @returns {
|
|
99996
|
+
* @returns {Function} A function accepted by `Array.prototype.sort`.
|
|
99993
99997
|
*/
|
|
99994
99998
|
this._loadMetric = function (center) {
|
|
99995
99999
|
return function (a, b) {
|
|
@@ -100733,8 +100737,8 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
100733
100737
|
* Get or set the tile url string or function. If changed, load the new
|
|
100734
100738
|
* tiles.
|
|
100735
100739
|
*
|
|
100736
|
-
* @param {string|
|
|
100737
|
-
* @returns {string|
|
|
100740
|
+
* @param {string|Function} [url] The new tile url.
|
|
100741
|
+
* @returns {string|Function|this}
|
|
100738
100742
|
*/
|
|
100739
100743
|
this.url = function (url) {
|
|
100740
100744
|
if (url === undefined) {
|
|
@@ -101120,9 +101124,9 @@ var util = __webpack_require__(642);
|
|
|
101120
101124
|
*
|
|
101121
101125
|
* @typedef {geo.feature.spec} geo.lineFeature.spec
|
|
101122
101126
|
* @extends geo.feature.spec
|
|
101123
|
-
* @property {geo.geoPosition|
|
|
101127
|
+
* @property {geo.geoPosition|Function} [position] Position of the data.
|
|
101124
101128
|
* Default is (data).
|
|
101125
|
-
* @property {object|
|
|
101129
|
+
* @property {object|Function} [line] Lines from the data. Default is (data).
|
|
101126
101130
|
* Typically, the data is an array of lines, each of which is an array of
|
|
101127
101131
|
* points. Only lines that have at least two points are rendered. The
|
|
101128
101132
|
* position function is called for each point as `position(linePoint,
|
|
@@ -101136,39 +101140,39 @@ var util = __webpack_require__(642);
|
|
|
101136
101140
|
*
|
|
101137
101141
|
* @typedef {geo.feature.styleSpec} geo.lineFeature.styleSpec
|
|
101138
101142
|
* @extends geo.feature.styleSpec
|
|
101139
|
-
* @property {geo.geoColor|
|
|
101143
|
+
* @property {geo.geoColor|Function} [strokeColor] Color to stroke each line.
|
|
101140
101144
|
* The color can vary by point.
|
|
101141
|
-
* @property {number|
|
|
101145
|
+
* @property {number|Function} [strokeOpacity] Opacity for each line stroke.
|
|
101142
101146
|
* The opacity can vary by point. Opacity is on a [0-1] scale.
|
|
101143
|
-
* @property {number|
|
|
101147
|
+
* @property {number|Function} [strokeWidth] The weight of the line stroke in
|
|
101144
101148
|
* pixels. The width can vary by point.
|
|
101145
|
-
* @property {number|
|
|
101149
|
+
* @property {number|Function} [strokeOffset] This is a value from -1 (left) to
|
|
101146
101150
|
* 1 (right), with 0 being centered. This can vary by point.
|
|
101147
|
-
* @property {string|
|
|
101151
|
+
* @property {string|Function} [lineCap='butt'] One of 'butt', 'square', or
|
|
101148
101152
|
* 'round'. This can vary by point.
|
|
101149
|
-
* @property {string|
|
|
101153
|
+
* @property {string|Function} [lineJoin='miter'] One of 'miter', 'bevel',
|
|
101150
101154
|
* 'round', or 'miter-clip'. This can vary by point.
|
|
101151
|
-
* @property {boolean|
|
|
101155
|
+
* @property {boolean|Function} [closed=false] If true and the renderer
|
|
101152
101156
|
* supports it, connect the first and last points of a line if the line has
|
|
101153
101157
|
* more than two points. This applies per line (if a function, it is called
|
|
101154
101158
|
* with `(lineEntry, lineEntryIndex)`.
|
|
101155
|
-
* @property {number|
|
|
101159
|
+
* @property {number|Function} [miterLimit=10] For lines of more than two
|
|
101156
101160
|
* segments that are mitered, if the miter length exceeds the `strokeWidth`
|
|
101157
101161
|
* divided by the sine of half the angle between segments, then a bevel join
|
|
101158
101162
|
* is used instead. This is a single value that applies to all lines. If a
|
|
101159
101163
|
* function, it is called with `(data)`.
|
|
101160
|
-
* @property {boolean|string|
|
|
101164
|
+
* @property {boolean|string|Function} [uniformLine=false] Boolean indicating
|
|
101161
101165
|
* if each line has a uniform style (uniform stroke color, opacity, and
|
|
101162
101166
|
* width). Can vary by line. A value of `'drop'` will modify rendered
|
|
101163
101167
|
* vertex order by dropping duplicates and setting later values to zero
|
|
101164
101168
|
* opacity. This can be faster but makes it so updating the style array
|
|
101165
101169
|
* can no longer be used.
|
|
101166
|
-
* @property {number|
|
|
101170
|
+
* @property {number|Function} [antialiasing] Antialiasing distance in pixels.
|
|
101167
101171
|
* Values must be non-negative. A value greater than 1 will produce a
|
|
101168
101172
|
* visible gradient. This is a single value that applies to all lines.
|
|
101169
|
-
* @property {string|
|
|
101173
|
+
* @property {string|Function} [debug] If 'debug', render lines in debug mode.
|
|
101170
101174
|
* This is a single value that applies to all lines.
|
|
101171
|
-
* @property {number[]|
|
|
101175
|
+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
|
|
101172
101176
|
* for to ensure high precision drawing in this location. When called as a
|
|
101173
101177
|
* function, this is passed the vertex positions as a single continuous array
|
|
101174
101178
|
* in map gcs coordinates. It defaults to the first line's first vertex's
|
|
@@ -101213,11 +101217,11 @@ var _lineFeature = function lineFeature(arg) {
|
|
|
101213
101217
|
/**
|
|
101214
101218
|
* Get/set line accessor.
|
|
101215
101219
|
*
|
|
101216
|
-
* @param {object|
|
|
101220
|
+
* @param {object|Function} [val] If not specified, return the current line
|
|
101217
101221
|
* accessor. If specified, use this for the line accessor and return
|
|
101218
101222
|
* `this`. If a function is given, the function is passed `(dataElement,
|
|
101219
101223
|
* dataIndex)` and returns an array of vertex elements.
|
|
101220
|
-
* @returns {object|
|
|
101224
|
+
* @returns {object|Function|this} The current line accessor or this feature.
|
|
101221
101225
|
*/
|
|
101222
101226
|
this.line = function (val) {
|
|
101223
101227
|
if (val === undefined) {
|
|
@@ -101233,11 +101237,11 @@ var _lineFeature = function lineFeature(arg) {
|
|
|
101233
101237
|
/**
|
|
101234
101238
|
* Get/Set position accessor.
|
|
101235
101239
|
*
|
|
101236
|
-
* @param {geo.geoPosition|
|
|
101240
|
+
* @param {geo.geoPosition|Function} [val] If not specified, return the
|
|
101237
101241
|
* current position accessor. If specified, use this for the position
|
|
101238
101242
|
* accessor and return `this`. If a function is given, this is called
|
|
101239
101243
|
* with `(vertexElement, vertexIndex, dataElement, dataIndex)`.
|
|
101240
|
-
* @returns {geo.geoPosition|
|
|
101244
|
+
* @returns {geo.geoPosition|Function|this} The current position or this
|
|
101241
101245
|
* feature.
|
|
101242
101246
|
*/
|
|
101243
101247
|
this.position = function (val) {
|
|
@@ -101599,9 +101603,9 @@ var _lineFeature = function lineFeature(arg) {
|
|
|
101599
101603
|
* units. A value of zero will only remove perfectly collinear points.
|
|
101600
101604
|
* If not specified, this is set to a half display pixel at the map's
|
|
101601
101605
|
* current zoom level.
|
|
101602
|
-
* @param {
|
|
101606
|
+
* @param {Function} [posFunc] The function to
|
|
101603
101607
|
* get the position of each vertex.
|
|
101604
|
-
* @param {
|
|
101608
|
+
* @param {Function} [lineFunc] The function to get
|
|
101605
101609
|
* each line.
|
|
101606
101610
|
* @returns {this}
|
|
101607
101611
|
*/
|
|
@@ -101866,7 +101870,7 @@ var _webgl_quadFeature = function webgl_quadFeature(arg) {
|
|
|
101866
101870
|
* function.
|
|
101867
101871
|
*
|
|
101868
101872
|
* @private
|
|
101869
|
-
* @param {
|
|
101873
|
+
* @param {Function} renderFunc Our own render function.
|
|
101870
101874
|
* @returns {vgl.mapper} a vgl mapper object.
|
|
101871
101875
|
*/
|
|
101872
101876
|
function getVGLMapper(renderFunc) {
|
|
@@ -102610,15 +102614,15 @@ var registerWidget = (__webpack_require__(1098).registerWidget);
|
|
|
102610
102614
|
*
|
|
102611
102615
|
* @typedef {geo.feature.styleSpec} geo.gui.legendWidget.styleSpec
|
|
102612
102616
|
* @extends geo.feature.styleSpec
|
|
102613
|
-
* @property {boolean|
|
|
102614
|
-
* @property {geo.geoColor|
|
|
102615
|
-
* @property {number|
|
|
102617
|
+
* @property {boolean|Function} [stroke=true] True to stroke legend.
|
|
102618
|
+
* @property {geo.geoColor|Function} [strokeColor] Color to stroke each legend.
|
|
102619
|
+
* @property {number|Function} [strokeOpacity=1] Opacity for each legend's
|
|
102616
102620
|
* stroke. Opacity is on a [0-1] scale.
|
|
102617
|
-
* @property {number|
|
|
102621
|
+
* @property {number|Function} [strokeWidth=1.5] The weight of the legend's
|
|
102618
102622
|
* stroke in pixels.
|
|
102619
|
-
* @property {boolean|
|
|
102620
|
-
* @property {geo.geoColor|
|
|
102621
|
-
* @property {number|
|
|
102623
|
+
* @property {boolean|Function} [fill=true] True to fill legend.
|
|
102624
|
+
* @property {geo.geoColor|Function} [fillColor] Color to fill each legend.
|
|
102625
|
+
* @property {number|Function} [fillOpacity=1] Opacity for each legend.
|
|
102622
102626
|
* Opacity is on a [0-1] scale.
|
|
102623
102627
|
*/
|
|
102624
102628
|
|
|
@@ -105086,7 +105090,7 @@ function random (out, scale) {
|
|
|
105086
105090
|
/******/
|
|
105087
105091
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
105088
105092
|
/******/ !function() {
|
|
105089
|
-
/******/ __webpack_require__.b = document.baseURI || self.location.href;
|
|
105093
|
+
/******/ __webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;
|
|
105090
105094
|
/******/
|
|
105091
105095
|
/******/ // object to store loaded and loading chunks
|
|
105092
105096
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|