ol 10.7.1 → 10.7.2
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/Collection.d.ts +1 -3
- package/Collection.d.ts.map +1 -1
- package/Feature.d.ts +6 -15
- package/Feature.d.ts.map +1 -1
- package/Feature.js +3 -6
- package/Geolocation.d.ts +1 -3
- package/Geolocation.d.ts.map +1 -1
- package/ImageTile.d.ts +2 -12
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +5 -32
- package/Map.d.ts +7 -27
- package/Map.d.ts.map +1 -1
- package/Map.js +3 -29
- package/Object.d.ts +18 -15
- package/Object.d.ts.map +1 -1
- package/Object.js +6 -9
- package/Overlay.d.ts +1 -3
- package/Overlay.d.ts.map +1 -1
- package/VectorRenderTile.d.ts +0 -4
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +0 -2
- package/View.d.ts +1 -40
- package/View.d.ts.map +1 -1
- package/View.js +0 -94
- package/colorlike.js +8 -4
- package/control/Control.d.ts +1 -3
- package/control/Control.d.ts.map +1 -1
- package/control/OverviewMap.d.ts +1 -5
- package/control/OverviewMap.d.ts.map +1 -1
- package/coordinate.d.ts +0 -8
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +1 -31
- package/dist/ol.d.ts +0 -24
- package/dist/ol.d.ts.map +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/dom.d.ts +0 -15
- package/dom.d.ts.map +1 -1
- package/dom.js +0 -6
- package/featureloader.d.ts +2 -6
- package/featureloader.d.ts.map +1 -1
- package/format/EsriJSON.d.ts +1 -3
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/Feature.d.ts +1 -3
- package/format/Feature.d.ts.map +1 -1
- package/format/GeoJSON.d.ts +2 -6
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/JSONFeature.d.ts +1 -3
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/KML.d.ts +0 -9
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +0 -7
- package/format/TextFeature.d.ts +1 -3
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TopoJSON.d.ts +1 -3
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/WKB.d.ts +1 -3
- package/format/WKB.d.ts.map +1 -1
- package/format/XMLFeature.d.ts +1 -3
- package/format/XMLFeature.d.ts.map +1 -1
- package/geom/Geometry.d.ts +1 -3
- package/geom/Geometry.d.ts.map +1 -1
- package/interaction/DragAndDrop.d.ts +2 -6
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/Draw.d.ts +3 -9
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Interaction.d.ts +1 -3
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Link.js +2 -2
- package/interaction/Modify.d.ts +28 -76
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +54 -248
- package/interaction/Select.d.ts +18 -10
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +89 -54
- package/interaction/Snap.d.ts +12 -18
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Translate.d.ts +2 -6
- package/interaction/Translate.d.ts.map +1 -1
- package/layer/Base.d.ts +8 -19
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +3 -6
- package/layer/BaseImage.d.ts +1 -3
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseTile.d.ts +1 -3
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +1 -3
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/Flow.d.ts +2 -2
- package/layer/Graticule.d.ts +1 -5
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Group.d.ts +2 -8
- package/layer/Group.d.ts.map +1 -1
- package/layer/Heatmap.d.ts +2 -23
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +0 -29
- package/layer/Layer.d.ts +8 -17
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +2 -5
- package/layer/Tile.d.ts +1 -1
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/VectorImage.d.ts +2 -2
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorTile.d.ts +2 -2
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/WebGLPoints.d.ts +1 -3
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLTile.d.ts +3 -3
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLVector.d.ts +2 -4
- package/layer/WebGLVector.d.ts.map +1 -1
- package/layer/WebGLVectorTile.d.ts +2 -2
- package/layer/WebGLVectorTile.d.ts.map +1 -1
- package/package.json +3 -4
- package/proj/proj4.d.ts +6 -43
- package/proj/proj4.d.ts.map +1 -1
- package/proj/proj4.js +28 -89
- package/proj.js +2 -2
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +1 -8
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +3 -49
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +5 -41
- package/render/canvas/Immediate.d.ts +0 -2
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +4 -28
- package/render/canvas/LineStringBuilder.d.ts +0 -1
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +5 -15
- package/render/canvas/PolygonBuilder.d.ts +0 -2
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +6 -72
- package/render/canvas/style.d.ts.map +1 -1
- package/render/canvas/style.js +37 -118
- package/render/canvas.d.ts +2 -22
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +0 -9
- package/render/webgl/bufferUtil.d.ts.map +1 -1
- package/render/webgl/bufferUtil.js +31 -1
- package/renderer/Composite.js +4 -4
- package/renderer/canvas/ImageLayer.d.ts +1 -6
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +0 -14
- package/renderer/canvas/TileLayer.d.ts +1 -1
- package/renderer/canvas/VectorLayer.d.ts +1 -8
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +14 -55
- package/renderer/canvas/VectorTileLayer.d.ts +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +0 -2
- package/renderer/webgl/TileLayerBase.js +1 -1
- package/reproj/Tile.d.ts +2 -7
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +6 -12
- package/source/Cluster.d.ts +2 -8
- package/source/Cluster.d.ts.map +1 -1
- package/source/DataTile.d.ts +0 -15
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +0 -9
- package/source/GeoTIFF.d.ts +2 -7
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +10 -15
- package/source/ImageArcGISRest.d.ts +0 -10
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +0 -8
- package/source/ImageMapGuide.d.ts +0 -10
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +0 -8
- package/source/ImageStatic.d.ts +0 -5
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +0 -2
- package/source/ImageTile.d.ts +1 -5
- package/source/ImageTile.d.ts.map +1 -1
- package/source/ImageTile.js +0 -5
- package/source/ImageWMS.d.ts +0 -10
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +0 -10
- package/source/OGCMapTile.d.ts +0 -5
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +0 -2
- package/source/OSM.d.ts +0 -5
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +19 -5
- package/source/SentinelHub.d.ts +0 -1
- package/source/SentinelHub.d.ts.map +1 -1
- package/source/SentinelHub.js +0 -5
- package/source/Source.d.ts +1 -3
- package/source/Source.d.ts.map +1 -1
- package/source/TileArcGISRest.d.ts +1 -6
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +0 -2
- package/source/TileDebug.d.ts +1 -1
- package/source/TileImage.d.ts +0 -10
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +3 -16
- package/source/TileWMS.d.ts +1 -1
- package/source/UrlTile.d.ts +1 -1
- package/source/Vector.d.ts +8 -18
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +3 -3
- package/source/WMTS.d.ts +0 -5
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +0 -2
- package/source/XYZ.d.ts +0 -5
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +0 -2
- package/source/Zoomify.d.ts +2 -7
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +3 -5
- package/source/arcgisRest.d.ts +0 -5
- package/source/arcgisRest.d.ts.map +1 -1
- package/source/arcgisRest.js +0 -5
- package/source/mapguide.d.ts +0 -4
- package/source/mapguide.d.ts.map +1 -1
- package/source/mapguide.js +0 -5
- package/source/mapserver.d.ts +1 -5
- package/source/mapserver.d.ts.map +1 -1
- package/source/mapserver.js +0 -4
- package/source/ogcTileUtil.d.ts +12 -20
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +15 -27
- package/source/static.d.ts +0 -5
- package/source/static.d.ts.map +1 -1
- package/source/static.js +0 -4
- package/source/wms.d.ts +0 -5
- package/source/wms.d.ts.map +1 -1
- package/source/wms.js +0 -5
- package/style/Circle.d.ts +14 -0
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +11 -0
- package/style/Fill.js +1 -1
- package/style/Icon.d.ts +0 -19
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +2 -55
- package/style/IconImage.d.ts +5 -14
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +18 -28
- package/style/IconImageCache.d.ts +8 -4
- package/style/IconImageCache.d.ts.map +1 -1
- package/style/IconImageCache.js +13 -11
- package/style/RegularShape.d.ts +0 -12
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +4 -36
- package/style/Stroke.d.ts +0 -25
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +0 -28
- package/style/Style.d.ts +1 -1
- package/style/flat.d.ts +2 -2
- package/style/flat.js +1 -1
- package/tilegrid/TileGrid.d.ts +0 -5
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +0 -8
- package/util.js +1 -1
- package/worker/webgl.js +1 -1
- package/geom/flat/lineoffset.d.ts +0 -45
- package/geom/flat/lineoffset.d.ts.map +0 -1
- package/geom/flat/lineoffset.js +0 -173
- package/source/GeoZarr.d.ts +0 -163
- package/source/GeoZarr.d.ts.map +0 -1
- package/source/GeoZarr.js +0 -472
- package/source/OGCMap.d.ts +0 -180
- package/source/OGCMap.d.ts.map +0 -1
- package/source/OGCMap.js +0 -227
- package/source/ogcMapUtil.d.ts +0 -88
- package/source/ogcMapUtil.d.ts.map +0 -1
- package/source/ogcMapUtil.js +0 -121
package/source/GeoTIFF.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoTIFF.d.ts","sourceRoot":"","sources":["GeoTIFF.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GeoTIFF.d.ts","sourceRoot":"","sources":["GeoTIFF.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2Fc,MAAM;;;;wBACN,MAAM;;;;4BACN,MAAM;;;;6BACN,MAAM;;;;6BACN,MAAM;;;;0BACN,MAAM;;;;2BACN,MAAM;;;;2BACN,MAAM;;sBAIP,OAAO,SAAS,EAAE,OAAO;2BAIzB,OAAO,SAAS,EAAE,YAAY;;;;;wBAK7B,MAAM;;;;wBACN,MAAM;;2BASP,OAAO,SAAS,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqO7B,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;iBAiBjB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;AAjCjD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyGjB;IA7FC;;;OAGG;IACH,oBAAkC;IAIlC;;;OAGG;IACH,uBAA2C;IAE3C;;;OAGG;IACH,uBAA2C;IAE3C;;;OAGG;IACH,qBAAyC;IAEzC;;;OAGG;IACH,2BAA+C;IAE/C;;;OAGG;IACH,yBAAqB;IAErB;;;OAGG;IACH,sBAAkB;IAElB;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,mBAA6C;IAE7C;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,sBAAkD;IAuBpD;;;;;;;;;;;OAWG;IACH,YAXY,KAAK,CAahB;IAED;;;;;;;;OAQG;IACH,6BAHW,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAapC;IAED;;;;;OAKG;IACH,kCAHW,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QA8BpC;IAED;;;;;;OAMG;IACH,mBAkPC;IAED;;;;;;;OAOG;IACH,kBA8EC;IAED;;;;;OAKG;IACH,qBA4GC;CACF;qBA/9BoB,eAAe"}
|
package/source/GeoTIFF.js
CHANGED
|
@@ -35,7 +35,8 @@ import DataTile from './DataTile.js';
|
|
|
35
35
|
* @return {boolean} The image is a mask.
|
|
36
36
|
*/
|
|
37
37
|
function isMask(image) {
|
|
38
|
-
const
|
|
38
|
+
const fileDirectory = image.fileDirectory;
|
|
39
|
+
const type = fileDirectory.NewSubfileType || 0;
|
|
39
40
|
return (type & 4) === 4;
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -54,9 +55,7 @@ function readRGB(preference, image) {
|
|
|
54
55
|
if (image.getSamplesPerPixel() !== 3) {
|
|
55
56
|
return false;
|
|
56
57
|
}
|
|
57
|
-
const interpretation = image.fileDirectory.
|
|
58
|
-
'PhotometricInterpretation',
|
|
59
|
-
);
|
|
58
|
+
const interpretation = image.fileDirectory.PhotometricInterpretation;
|
|
60
59
|
const interpretations = geotiffGlobals.photometricInterpretations;
|
|
61
60
|
return (
|
|
62
61
|
interpretation === interpretations.CMYK ||
|
|
@@ -182,7 +181,7 @@ function getResolutions(image, referenceImage) {
|
|
|
182
181
|
* @return {import("../proj/Projection.js").default} The image projection.
|
|
183
182
|
*/
|
|
184
183
|
function getProjection(image) {
|
|
185
|
-
const geoKeys = image.
|
|
184
|
+
const geoKeys = image.geoKeys;
|
|
186
185
|
if (!geoKeys) {
|
|
187
186
|
return null;
|
|
188
187
|
}
|
|
@@ -239,7 +238,7 @@ function getImagesForTIFF(tiff) {
|
|
|
239
238
|
|
|
240
239
|
/**
|
|
241
240
|
* @param {SourceInfo} source The GeoTIFF source.
|
|
242
|
-
* @param {
|
|
241
|
+
* @param {Object} options Options for the GeoTIFF source.
|
|
243
242
|
* @return {Promise<Array<GeoTIFFImage>>} Resolves to a list of images.
|
|
244
243
|
*/
|
|
245
244
|
function getImagesForSource(source, options) {
|
|
@@ -349,7 +348,6 @@ function getMaxForDataType(array) {
|
|
|
349
348
|
|
|
350
349
|
/**
|
|
351
350
|
* @typedef {Object} Options
|
|
352
|
-
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
353
351
|
* @property {Array<SourceInfo>} sources List of information about GeoTIFF sources.
|
|
354
352
|
* Multiple sources can be combined when their resolution sets are equal after applying a scale.
|
|
355
353
|
* The list of sources defines a mapping between input bands as they are read from each GeoTIFF and
|
|
@@ -390,7 +388,6 @@ class GeoTIFFSource extends DataTile {
|
|
|
390
388
|
*/
|
|
391
389
|
constructor(options) {
|
|
392
390
|
super({
|
|
393
|
-
attributions: options.attributions,
|
|
394
391
|
state: 'loading',
|
|
395
392
|
tileGrid: null,
|
|
396
393
|
projection: options.projection || null,
|
|
@@ -444,7 +441,7 @@ class GeoTIFFSource extends DataTile {
|
|
|
444
441
|
this.nodataValues_;
|
|
445
442
|
|
|
446
443
|
/**
|
|
447
|
-
* @type {Array<Array<
|
|
444
|
+
* @type {Array<Array<GDALMetadata>>}
|
|
448
445
|
* @private
|
|
449
446
|
*/
|
|
450
447
|
this.metadata_;
|
|
@@ -541,9 +538,7 @@ class GeoTIFFSource extends DataTile {
|
|
|
541
538
|
const firstSource = sources[0];
|
|
542
539
|
for (let i = firstSource.length - 1; i >= 0; --i) {
|
|
543
540
|
const image = firstSource[i];
|
|
544
|
-
const modelTransformation = image.fileDirectory.
|
|
545
|
-
'ModelTransformation',
|
|
546
|
-
);
|
|
541
|
+
const modelTransformation = image.fileDirectory.ModelTransformation;
|
|
547
542
|
if (modelTransformation) {
|
|
548
543
|
// eslint-disable-next-line no-unused-vars
|
|
549
544
|
const [a, b, c, d, e, f, g, h] = modelTransformation;
|
|
@@ -910,10 +905,10 @@ class GeoTIFFSource extends DataTile {
|
|
|
910
905
|
/**
|
|
911
906
|
* @param {import("../size.js").Size} sourceTileSize The source tile size.
|
|
912
907
|
* @param {Array} sourceSamples The source samples.
|
|
913
|
-
* @return {
|
|
908
|
+
* @return {import("../DataTile.js").Data} The composed tile data.
|
|
914
909
|
* @private
|
|
915
910
|
*/
|
|
916
|
-
|
|
911
|
+
composeTile_(sourceTileSize, sourceSamples) {
|
|
917
912
|
const metadata = this.metadata_;
|
|
918
913
|
const sourceInfo = this.sourceInfo_;
|
|
919
914
|
const sourceCount = this.sourceImagery_.length;
|
|
@@ -944,7 +939,7 @@ class GeoTIFFSource extends DataTile {
|
|
|
944
939
|
let max = source.max;
|
|
945
940
|
let gain, bias;
|
|
946
941
|
if (normalize) {
|
|
947
|
-
const stats =
|
|
942
|
+
const stats = metadata[sourceIndex][0];
|
|
948
943
|
if (min === undefined) {
|
|
949
944
|
if (stats && STATISTICS_MINIMUM in stats) {
|
|
950
945
|
min = parseFloat(stats[STATISTICS_MINIMUM]);
|
|
@@ -10,10 +10,6 @@ export type Options = {
|
|
|
10
10
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
11
11
|
*/
|
|
12
12
|
crossOrigin?: string | null | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The `referrerPolicy` property for loaded images.
|
|
15
|
-
*/
|
|
16
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* Use the `ol/Map#pixelRatio` value when requesting the image from
|
|
19
15
|
* the remote server.
|
|
@@ -68,7 +64,6 @@ export type Options = {
|
|
|
68
64
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
69
65
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
70
66
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
71
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
72
67
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from
|
|
73
68
|
* the remote server.
|
|
74
69
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given
|
|
@@ -113,11 +108,6 @@ declare class ImageArcGISRest extends ImageSource {
|
|
|
113
108
|
* @type {?string}
|
|
114
109
|
*/
|
|
115
110
|
private crossOrigin_;
|
|
116
|
-
/**
|
|
117
|
-
* @private
|
|
118
|
-
* @type {ReferrerPolicy}
|
|
119
|
-
*/
|
|
120
|
-
private referrerPolicy_;
|
|
121
111
|
/**
|
|
122
112
|
* @private
|
|
123
113
|
* @type {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAqEjB;IAzDC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAE/D;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;IAmCD;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAM5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,6BAGC;IAED;;;;OAIG;IACH,gCAGC;CASF;wBApOmD,YAAY"}
|
|
@@ -12,7 +12,6 @@ import {createLoader} from './arcgisRest.js';
|
|
|
12
12
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
13
13
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
14
14
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
15
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
16
15
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from
|
|
17
16
|
* the remote server.
|
|
18
17
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given
|
|
@@ -69,12 +68,6 @@ class ImageArcGISRest extends ImageSource {
|
|
|
69
68
|
this.crossOrigin_ =
|
|
70
69
|
options.crossOrigin !== undefined ? options.crossOrigin : null;
|
|
71
70
|
|
|
72
|
-
/**
|
|
73
|
-
* @private
|
|
74
|
-
* @type {ReferrerPolicy}
|
|
75
|
-
*/
|
|
76
|
-
this.referrerPolicy_ = options.referrerPolicy;
|
|
77
|
-
|
|
78
71
|
/**
|
|
79
72
|
* @private
|
|
80
73
|
* @type {boolean}
|
|
@@ -154,7 +147,6 @@ class ImageArcGISRest extends ImageSource {
|
|
|
154
147
|
this.loaderProjection_ = projection;
|
|
155
148
|
this.loader = createLoader({
|
|
156
149
|
crossOrigin: this.crossOrigin_,
|
|
157
|
-
referrerPolicy: this.referrerPolicy_,
|
|
158
150
|
params: this.params_,
|
|
159
151
|
projection: projection,
|
|
160
152
|
hidpi: this.hidpi_,
|
|
@@ -10,10 +10,6 @@ export type Options = {
|
|
|
10
10
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
11
11
|
*/
|
|
12
12
|
crossOrigin?: string | null | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The `referrerPolicy` property for loaded images.
|
|
15
|
-
*/
|
|
16
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* The display resolution.
|
|
19
15
|
*/
|
|
@@ -65,7 +61,6 @@ export type Options = {
|
|
|
65
61
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
66
62
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
67
63
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
68
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
69
64
|
* @property {number} [displayDpi=96] The display resolution.
|
|
70
65
|
* @property {number} [metersPerUnit=1] The meters-per-unit value.
|
|
71
66
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
|
|
@@ -98,11 +93,6 @@ declare class ImageMapGuide extends ImageSource {
|
|
|
98
93
|
* @type {?string}
|
|
99
94
|
*/
|
|
100
95
|
private crossOrigin_;
|
|
101
|
-
/**
|
|
102
|
-
* @private
|
|
103
|
-
* @type {ReferrerPolicy}
|
|
104
|
-
*/
|
|
105
|
-
private referrerPolicy_;
|
|
106
96
|
/**
|
|
107
97
|
* @private
|
|
108
98
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAiFjB;IAxEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,oBAC4D;IAE5D;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,uBACiE;IAEjE;;;OAGG;IACH,eAA6D;IAE7D;;;OAGG;IACH,oBAC+D;IAE/D;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;IAoCD;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,6BAGC;IAED;;;;OAIG;IACH,gCAGC;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAM5C;CASF;wBA/MmD,YAAY"}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -12,7 +12,6 @@ import {createLoader} from './mapguide.js';
|
|
|
12
12
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
13
13
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
14
14
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
15
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
16
15
|
* @property {number} [displayDpi=96] The display resolution.
|
|
17
16
|
* @property {number} [metersPerUnit=1] The meters-per-unit value.
|
|
18
17
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
|
|
@@ -54,12 +53,6 @@ class ImageMapGuide extends ImageSource {
|
|
|
54
53
|
this.crossOrigin_ =
|
|
55
54
|
options.crossOrigin !== undefined ? options.crossOrigin : null;
|
|
56
55
|
|
|
57
|
-
/**
|
|
58
|
-
* @private
|
|
59
|
-
* @type {ReferrerPolicy}
|
|
60
|
-
*/
|
|
61
|
-
this.referrerPolicy_ = options.referrerPolicy;
|
|
62
|
-
|
|
63
56
|
/**
|
|
64
57
|
* @private
|
|
65
58
|
* @type {number}
|
|
@@ -154,7 +147,6 @@ class ImageMapGuide extends ImageSource {
|
|
|
154
147
|
this.loaderProjection_ = projection;
|
|
155
148
|
this.loader = createLoader({
|
|
156
149
|
crossOrigin: this.crossOrigin_,
|
|
157
|
-
referrerPolicy: this.referrerPolicy_,
|
|
158
150
|
params: this.params_,
|
|
159
151
|
hidpi: this.hidpi_,
|
|
160
152
|
metersPerUnit: this.metersPerUnit_,
|
package/source/ImageStatic.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export type Options = {
|
|
|
10
10
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
11
11
|
*/
|
|
12
12
|
crossOrigin?: string | null | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The `referrerPolicy` property for loaded images.
|
|
15
|
-
*/
|
|
16
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* Extent of the image in map coordinates.
|
|
19
15
|
* This is the [left, bottom, right, top] map coordinates of your image.
|
|
@@ -43,7 +39,6 @@ export type Options = {
|
|
|
43
39
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
44
40
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
45
41
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
46
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
47
42
|
* @property {import("../extent.js").Extent} imageExtent Extent of the image in map coordinates.
|
|
48
43
|
* This is the [left, bottom, right, top] map coordinates of your image.
|
|
49
44
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;iBAiBc,OAAO,cAAc,EAAE,MAAM;;;;;;;;;;;;;iBAK7B,OAAO,YAAY,EAAE,cAAc;;;;SACnC,MAAM;;AAZpB;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAuDjB;IAtCC;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,qBAAuC;IA8BzC;;;;OAIG;IACH,kBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAiBD;;;;OAIG;IACH,UAHY,MAAM,CAKjB;CACF;wBAlHmD,YAAY"}
|
package/source/ImageStatic.js
CHANGED
|
@@ -15,7 +15,6 @@ import {createLoader} from './static.js';
|
|
|
15
15
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
16
16
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
17
17
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
18
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
19
18
|
* @property {import("../extent.js").Extent} imageExtent Extent of the image in map coordinates.
|
|
20
19
|
* This is the [left, bottom, right, top] map coordinates of your image.
|
|
21
20
|
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
|
|
@@ -75,7 +74,6 @@ class Static extends ImageSource {
|
|
|
75
74
|
url: options.url,
|
|
76
75
|
imageExtent: options.imageExtent,
|
|
77
76
|
crossOrigin,
|
|
78
|
-
referrerPolicy: options.referrerPolicy,
|
|
79
77
|
load: (image, src) => {
|
|
80
78
|
this.image.setImage(image);
|
|
81
79
|
imageLoadFunction(this.image, src);
|
package/source/ImageTile.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export type Options = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Tile grid.
|
|
59
59
|
*/
|
|
60
|
-
tileGrid?: import("../tilegrid.js").
|
|
60
|
+
tileGrid?: import("../tilegrid/TileGrid.js").default | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* The source state.
|
|
63
63
|
*/
|
|
@@ -78,10 +78,6 @@ export type Options = {
|
|
|
78
78
|
* The crossOrigin property to pass to loaders for image data.
|
|
79
79
|
*/
|
|
80
80
|
crossOrigin?: import("./DataTile.js").CrossOriginAttribute | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The `referrerPolicy` property for loaded images.
|
|
83
|
-
*/
|
|
84
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
85
81
|
/**
|
|
86
82
|
* Choose whether to use tiles with a higher or lower zoom level when between integer
|
|
87
83
|
* zoom levels. See {@link module :ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTile.d.ts","sourceRoot":"","sources":["ImageTile.js"],"names":[],"mappings":";;;;;qBAUa,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,CAAC,OAAO,gBAAgB,EAAE,SAAS,GAAC,OAAO,CAAC,OAAO,gBAAgB,EAAE,SAAS,CAAC,CAAC;wBAIxJ,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,MAAM;sBAI9E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjC,OAAO,YAAY,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"ImageTile.d.ts","sourceRoot":"","sources":["ImageTile.js"],"names":[],"mappings":";;;;;qBAUa,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,CAAC,OAAO,gBAAgB,EAAE,SAAS,GAAC,OAAO,CAAC,OAAO,gBAAgB,EAAE,SAAS,CAAC,CAAC;wBAIxJ,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,MAAM;sBAI9E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGjD;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EA8CjB;IAED;;;OAGG;IACH,YAHW,OAAO,QAUjB;CACF;2BA3M0B,eAAe"}
|
package/source/ImageTile.js
CHANGED
|
@@ -44,7 +44,6 @@ import DataTileSource from './DataTile.js';
|
|
|
44
44
|
* @property {number} [transition] Transition time when fading in new tiles (in miliseconds).
|
|
45
45
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling.
|
|
46
46
|
* @property {import('./DataTile.js').CrossOriginAttribute} [crossOrigin='anonymous'] The crossOrigin property to pass to loaders for image data.
|
|
47
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
48
47
|
* @property {number|import("../array.js").NearestDirectionFunction} [zDirection=0]
|
|
49
48
|
* Choose whether to use tiles with a higher or lower zoom level when between integer
|
|
50
49
|
* zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
|
|
@@ -64,9 +63,6 @@ function loadImage(template, z, x, y, options) {
|
|
|
64
63
|
return new Promise((resolve, reject) => {
|
|
65
64
|
const image = new Image();
|
|
66
65
|
image.crossOrigin = options.crossOrigin ?? null;
|
|
67
|
-
if (options.referrerPolicy !== undefined) {
|
|
68
|
-
image.referrerPolicy = options.referrerPolicy;
|
|
69
|
-
}
|
|
70
66
|
image.addEventListener('load', () => resolve(image));
|
|
71
67
|
image.addEventListener('error', () => reject(loadError));
|
|
72
68
|
image.src = renderXYZTemplate(template, z, x, y, options.maxY);
|
|
@@ -193,7 +189,6 @@ class ImageTileSource extends DataTileSource {
|
|
|
193
189
|
transition: options.transition,
|
|
194
190
|
interpolate: options.interpolate !== false,
|
|
195
191
|
crossOrigin: options.crossOrigin,
|
|
196
|
-
referrerPolicy: options.referrerPolicy,
|
|
197
192
|
zDirection: options.zDirection,
|
|
198
193
|
});
|
|
199
194
|
}
|
package/source/ImageWMS.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export type Options = {
|
|
|
10
10
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
11
11
|
*/
|
|
12
12
|
crossOrigin?: string | null | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The `referrerPolicy` property for loaded images.
|
|
15
|
-
*/
|
|
16
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
17
13
|
/**
|
|
18
14
|
* Use the `ol/Map#pixelRatio` value when requesting
|
|
19
15
|
* the image from the remote server.
|
|
@@ -68,7 +64,6 @@ export type Options = {
|
|
|
68
64
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
69
65
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
70
66
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
71
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
72
67
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
|
|
73
68
|
* the image from the remote server.
|
|
74
69
|
* @property {import("./wms.js").ServerType} [serverType] The type of
|
|
@@ -105,11 +100,6 @@ declare class ImageWMS extends ImageSource {
|
|
|
105
100
|
* @type {?string}
|
|
106
101
|
*/
|
|
107
102
|
private crossOrigin_;
|
|
108
|
-
/**
|
|
109
|
-
* @private
|
|
110
|
-
* @type {ReferrerPolicy}
|
|
111
|
-
*/
|
|
112
|
-
private referrerPolicy_;
|
|
113
103
|
/**
|
|
114
104
|
* @private
|
|
115
105
|
* @type {string|undefined}
|
package/source/ImageWMS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAqEjB;IAzDC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAE/D;;;OAGG;IACH,0BAA6B;IAG/B;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,UACnC,GAAO,GAIN,MAAM,GAAC,SAAS,CA0B3B;IAED;;;;;;;;;;;;;OAaG;IACH,0BATW,MAAM,iBAML,MAAM,GAAC,SAAS,CAc3B;IAED;;;;;OAKG;IACH,iBAEC;IAoCD;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAM5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,6BAGC;IAED;;;;OAIG;IACH,gCAGC;CASF;wBA/RmD,YAAY"}
|
package/source/ImageWMS.js
CHANGED
|
@@ -14,7 +14,6 @@ import {createLoader, getFeatureInfoUrl, getLegendUrl} from './wms.js';
|
|
|
14
14
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
15
15
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
16
16
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
17
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
18
17
|
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
|
|
19
18
|
* the image from the remote server.
|
|
20
19
|
* @property {import("./wms.js").ServerType} [serverType] The type of
|
|
@@ -63,12 +62,6 @@ class ImageWMS extends ImageSource {
|
|
|
63
62
|
this.crossOrigin_ =
|
|
64
63
|
options.crossOrigin !== undefined ? options.crossOrigin : null;
|
|
65
64
|
|
|
66
|
-
/**
|
|
67
|
-
* @private
|
|
68
|
-
* @type {ReferrerPolicy}
|
|
69
|
-
*/
|
|
70
|
-
this.referrerPolicy_ = options.referrerPolicy;
|
|
71
|
-
|
|
72
65
|
/**
|
|
73
66
|
* @private
|
|
74
67
|
* @type {string|undefined}
|
|
@@ -214,7 +207,6 @@ class ImageWMS extends ImageSource {
|
|
|
214
207
|
this.loaderProjection_ = projection;
|
|
215
208
|
this.loader = createLoader({
|
|
216
209
|
crossOrigin: this.crossOrigin_,
|
|
217
|
-
referrerPolicy: this.referrerPolicy_,
|
|
218
210
|
params: this.params_,
|
|
219
211
|
projection: projection,
|
|
220
212
|
serverType: this.serverType_,
|
|
@@ -280,8 +272,6 @@ class ImageWMS extends ImageSource {
|
|
|
280
272
|
*/
|
|
281
273
|
setParams(params) {
|
|
282
274
|
this.params_ = Object.assign({}, params);
|
|
283
|
-
// Reset loader to pick up new params
|
|
284
|
-
this.loader = null;
|
|
285
275
|
this.changed();
|
|
286
276
|
}
|
|
287
277
|
|
package/source/OGCMapTile.d.ts
CHANGED
|
@@ -34,10 +34,6 @@ export type Options = {
|
|
|
34
34
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
35
35
|
*/
|
|
36
36
|
crossOrigin?: string | null | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* The `referrerPolicy` property for loaded images.
|
|
39
|
-
*/
|
|
40
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
41
37
|
/**
|
|
42
38
|
* Use interpolated values when resampling. By default,
|
|
43
39
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -87,7 +83,6 @@ export type Options = {
|
|
|
87
83
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
88
84
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
89
85
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
90
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
91
86
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
92
87
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
93
88
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OGCMapTile.d.ts","sourceRoot":"","sources":["OGCMapTile.js"],"names":[],"mappings":";;;;;SASc,MAAM;;;;;;;;;;;;;;;;iBAKN,OAAO,YAAY,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"OGCMapTile.d.ts","sourceRoot":"","sources":["OGCMapTile.js"],"names":[],"mappings":";;;;;SASc,MAAM;;;;;;;;;;;;;;;;iBAKN,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAPjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EA2BjB;IAED;;;OAGG;IACH,2BAKC;IAED;;;OAGG;IACH,qBAGC;CACF;sBA9FqB,gBAAgB"}
|
package/source/OGCMapTile.js
CHANGED
|
@@ -20,7 +20,6 @@ import {getTileSetInfo} from './ogcTileUtil.js';
|
|
|
20
20
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
21
21
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
22
22
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
23
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
24
23
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
25
24
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
26
25
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
@@ -56,7 +55,6 @@ class OGCMapTile extends TileImage {
|
|
|
56
55
|
attributions: options.attributions,
|
|
57
56
|
cacheSize: options.cacheSize,
|
|
58
57
|
crossOrigin: options.crossOrigin,
|
|
59
|
-
referrerPolicy: options.referrerPolicy,
|
|
60
58
|
interpolate: options.interpolate,
|
|
61
59
|
projection: options.projection,
|
|
62
60
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
package/source/OSM.d.ts
CHANGED
|
@@ -22,10 +22,6 @@ export type Options = {
|
|
|
22
22
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
23
23
|
*/
|
|
24
24
|
crossOrigin?: string | null | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The `referrerPolicy` property for loaded images.
|
|
27
|
-
*/
|
|
28
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
29
25
|
/**
|
|
30
26
|
* Use interpolated values when resampling. By default,
|
|
31
27
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -76,7 +72,6 @@ export type Options = {
|
|
|
76
72
|
* @property {null|string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loaded images. Note that
|
|
77
73
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
78
74
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
79
|
-
* @property {ReferrerPolicy} [referrerPolicy='origin-when-cross-origin'] The `referrerPolicy` property for loaded images.
|
|
80
75
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
81
76
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
82
77
|
* @property {number} [maxZoom=19] Max zoom.
|
package/source/OSM.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OSM.d.ts","sourceRoot":"","sources":["OSM.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OSM.d.ts","sourceRoot":"","sources":["OSM.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,0BAHU,MAAM,CAME;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EA8CjB;CACF;gBAhGe,UAAU"}
|
package/source/OSM.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* @module ol/source/OSM
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import {WORKER_OFFSCREEN_CANVAS} from '../has.js';
|
|
6
|
+
import {defaultTileLoadFunction} from './TileImage.js';
|
|
5
7
|
import XYZ from './XYZ.js';
|
|
6
8
|
|
|
7
9
|
/**
|
|
@@ -23,7 +25,6 @@ export const ATTRIBUTION =
|
|
|
23
25
|
* @property {null|string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loaded images. Note that
|
|
24
26
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
25
27
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
26
|
-
* @property {ReferrerPolicy} [referrerPolicy='origin-when-cross-origin'] The `referrerPolicy` property for loaded images.
|
|
27
28
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
28
29
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
29
30
|
* @property {number} [maxZoom=19] Max zoom.
|
|
@@ -64,6 +65,9 @@ class OSM extends XYZ {
|
|
|
64
65
|
attributions = [ATTRIBUTION];
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
const crossOrigin =
|
|
69
|
+
options.crossOrigin !== undefined ? options.crossOrigin : 'anonymous';
|
|
70
|
+
|
|
67
71
|
const url =
|
|
68
72
|
options.url !== undefined
|
|
69
73
|
? options.url
|
|
@@ -73,13 +77,23 @@ class OSM extends XYZ {
|
|
|
73
77
|
attributions: attributions,
|
|
74
78
|
attributionsCollapsible: false,
|
|
75
79
|
cacheSize: options.cacheSize,
|
|
76
|
-
crossOrigin:
|
|
77
|
-
options.crossOrigin !== undefined ? options.crossOrigin : 'anonymous',
|
|
78
|
-
referrerPolicy: options.referrerPolicy || 'origin-when-cross-origin',
|
|
80
|
+
crossOrigin: crossOrigin,
|
|
79
81
|
interpolate: options.interpolate,
|
|
80
82
|
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 19,
|
|
81
83
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
82
|
-
tileLoadFunction:
|
|
84
|
+
tileLoadFunction:
|
|
85
|
+
/**
|
|
86
|
+
* @param {import("../ImageTile.js").default} tile Image tile
|
|
87
|
+
* @param {string} src Image src
|
|
88
|
+
*/
|
|
89
|
+
(tile, src) => {
|
|
90
|
+
const image = tile.getImage();
|
|
91
|
+
// FIXME referrer policy for worker fetch requests
|
|
92
|
+
if (!WORKER_OFFSCREEN_CANVAS && image instanceof HTMLImageElement) {
|
|
93
|
+
image.referrerPolicy = 'origin-when-cross-origin';
|
|
94
|
+
}
|
|
95
|
+
(options.tileLoadFunction || defaultTileLoadFunction)(tile, src);
|
|
96
|
+
},
|
|
83
97
|
transition: options.transition,
|
|
84
98
|
url: url,
|
|
85
99
|
wrapX: options.wrapX,
|
package/source/SentinelHub.d.ts
CHANGED
|
@@ -474,7 +474,6 @@ declare class SentinelHub extends DataTileSource<import("../DataTile.js").defaul
|
|
|
474
474
|
*/
|
|
475
475
|
setEvalscript(evalscript: Evalscript | string): void;
|
|
476
476
|
fireWhenReady_(): void;
|
|
477
|
-
getKeyForConfig_(): string;
|
|
478
477
|
/**
|
|
479
478
|
* @param {number} z The z tile index.
|
|
480
479
|
* @param {number} x The x tile index.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentinelHub.d.ts","sourceRoot":"","sources":["SentinelHub.js"],"names":[],"mappings":"AA6RA;;;GAGG;AACH,wCAHW,MAAM,GACL,iBAAiB,CAiB5B;AAED;;;;;;GAMG;AACH,oDAHW,OAAO,uBAAuB,EAAE,OAAO,GACtC,MAAM,CAiBjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,QACN,WAAS,SAAS,GACjB,MAAM,CAgBjB;;;;;;;;;;cApUa,MAAM;;;;kBACN,MAAM;;;;;;SAKN,MAAM;;;;;;WAKN,KAAK;;;;mBACL,aAAa;;;;;;;;;;;;;;;;;;oBAQd,MAAY,WAAW;4BAIvB,CAAS,IAAoB,EAApB,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAM,EAAN,MAAM,EAAE,IAAa,EAAb,aAAa,EAAE,IAAU,EAAV,UAAU,EAAE,IAAc,EAAd,cAAc,KAAG,YAAY,GAAC,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI;2BAIlH,CAAS,IAAwC,EAAxC;QAAO,MAAM,GAAE,wBAAwB;CAAC,KAAG,IAAI;mCAIxD,CAAS,IAAM,EAAN,MAAM,EAAE,IAAa,EAAb,aAAa,EAAE,IAAc,EAAd,cAAc,KAAG,IAAI;;;;;WAKpD,KAAK,CAAC,MAAM,CAAC,GAAC,KAAK,CAAC,gBAAgB,CAAC;;;;YACrC,iBAAiB,GAAC,KAAK,CAAC,iBAAiB,CAAC;;;;;;;;;;WAM1C,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;WAQb,MAAM;;;;;;;;;;;;;;WAON,MAAM;;yBAIP,MAAM,GAAC,OAAO,GAAC,OAAO,GAAC,QAAQ,GAAC,SAAS,GAAC,MAAM;;;;;;;;;;;;;;;;YAW/C,MAAM;;;;;;;;;;;;;;;;cAWN,MAAM;;;;YACN,MAAM;;;;;;;;;;UAMN,MAAM;;;;mBACN,MAAM;;;;cACN,MAAM;;;;UACN,MAAM;;;;;;oBAKN,MAAM;;;;yBACN,MAAM;;;;;;;;;;;;;;;;;;WAkBN,mBAAmB;;;;gBACnB,MAAM;;;;;;;;;;YAMN,yBAAyB;;;;UACzB,KAAK,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgClC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoLN,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;AAbjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAkEjB;IA9CC;;OAEG;IACH,QAFU,KAAK,GAAC,IAAI,CAEF;IAElB;;;OAGG;IACH,oBAAqB;IAErB;;;OAGG;IACH,mBAAsB;IAEtB;;;OAGG;IACH,oBAAkD;IAElD;;;OAGG;IACH,eAAgB;IAEhB;;;OAGG;IACH,wBAAoB;IAetB;;;;;;;OAOG;IACH,cAHW,UAAU,GAAC,MAAM,iBAoC3B;IAED;;;;;OAKG;IACH,cAHW,KAAK,CAAC,2BAA2B,CAAC,QAM5C;IAED;;;;;;;;;OASG;IACH,0BAHW,UAAU,GAAC,MAAM,QAkB3B;IAED,
|
|
1
|
+
{"version":3,"file":"SentinelHub.d.ts","sourceRoot":"","sources":["SentinelHub.js"],"names":[],"mappings":"AA6RA;;;GAGG;AACH,wCAHW,MAAM,GACL,iBAAiB,CAiB5B;AAED;;;;;;GAMG;AACH,oDAHW,OAAO,uBAAuB,EAAE,OAAO,GACtC,MAAM,CAiBjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,QACN,WAAS,SAAS,GACjB,MAAM,CAgBjB;;;;;;;;;;cApUa,MAAM;;;;kBACN,MAAM;;;;;;SAKN,MAAM;;;;;;WAKN,KAAK;;;;mBACL,aAAa;;;;;;;;;;;;;;;;;;oBAQd,MAAY,WAAW;4BAIvB,CAAS,IAAoB,EAApB,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAM,EAAN,MAAM,EAAE,IAAa,EAAb,aAAa,EAAE,IAAU,EAAV,UAAU,EAAE,IAAc,EAAd,cAAc,KAAG,YAAY,GAAC,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI;2BAIlH,CAAS,IAAwC,EAAxC;QAAO,MAAM,GAAE,wBAAwB;CAAC,KAAG,IAAI;mCAIxD,CAAS,IAAM,EAAN,MAAM,EAAE,IAAa,EAAb,aAAa,EAAE,IAAc,EAAd,cAAc,KAAG,IAAI;;;;;WAKpD,KAAK,CAAC,MAAM,CAAC,GAAC,KAAK,CAAC,gBAAgB,CAAC;;;;YACrC,iBAAiB,GAAC,KAAK,CAAC,iBAAiB,CAAC;;;;;;;;;;WAM1C,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;WAQb,MAAM;;;;;;;;;;;;;;WAON,MAAM;;yBAIP,MAAM,GAAC,OAAO,GAAC,OAAO,GAAC,QAAQ,GAAC,SAAS,GAAC,MAAM;;;;;;;;;;;;;;;;YAW/C,MAAM;;;;;;;;;;;;;;;;cAWN,MAAM;;;;YACN,MAAM;;;;;;;;;;UAMN,MAAM;;;;mBACN,MAAM;;;;cACN,MAAM;;;;UACN,MAAM;;;;;;oBAKN,MAAM;;;;yBACN,MAAM;;;;;;;;;;;;;;;;;;WAkBN,mBAAmB;;;;gBACnB,MAAM;;;;;;;;;;YAMN,yBAAyB;;;;UACzB,KAAK,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgClC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoLN,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;AAbjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAkEjB;IA9CC;;OAEG;IACH,QAFU,KAAK,GAAC,IAAI,CAEF;IAElB;;;OAGG;IACH,oBAAqB;IAErB;;;OAGG;IACH,mBAAsB;IAEtB;;;OAGG;IACH,oBAAkD;IAElD;;;OAGG;IACH,eAAgB;IAEhB;;;OAGG;IACH,wBAAoB;IAetB;;;;;;;OAOG;IACH,cAHW,UAAU,GAAC,MAAM,iBAoC3B;IAED;;;;;OAKG;IACH,cAHW,KAAK,CAAC,2BAA2B,CAAC,QAM5C;IAED;;;;;;;;;OASG;IACH,0BAHW,UAAU,GAAC,MAAM,QAkB3B;IAED,uBAUC;IAED;;;;;;;OAOG;IACH,kBAkDC;IAED;;;;;;;;;;;;;OAaG;IACH,YAHY,KAAK,GAAC,IAAI,CAKrB;CAUF;2BAtnB0B,eAAe"}
|
package/source/SentinelHub.js
CHANGED
|
@@ -542,7 +542,6 @@ class SentinelHub extends DataTileSource {
|
|
|
542
542
|
if (!this.token_ || !this.evalscript_ || !this.inputData_) {
|
|
543
543
|
return;
|
|
544
544
|
}
|
|
545
|
-
this.setKey(this.getKeyForConfig_());
|
|
546
545
|
const state = this.getState();
|
|
547
546
|
if (state === 'ready') {
|
|
548
547
|
this.changed();
|
|
@@ -551,10 +550,6 @@ class SentinelHub extends DataTileSource {
|
|
|
551
550
|
this.setState('ready');
|
|
552
551
|
}
|
|
553
552
|
|
|
554
|
-
getKeyForConfig_() {
|
|
555
|
-
return this.token_ + this.evalscript_ + JSON.stringify(this.inputData_);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
553
|
/**
|
|
559
554
|
* @param {number} z The z tile index.
|
|
560
555
|
* @param {number} x The x tile index.
|
package/source/Source.d.ts
CHANGED
package/source/Source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["Source.js"],"names":[],"mappings":";;;;oBAOa,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO;;;;;0BAQ3C,CAAS,IAA8C,EAA9C,OAAO,YAAY,EAAE,yBAAyB,KAAG,CAAC,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;;;;;;;;8BAWhF,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,GAAC,WAAW;;;;;;;;;;;;;iBAO/B,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;AA3BjD;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH
|
|
1
|
+
{"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["Source.js"],"names":[],"mappings":";;;;oBAOa,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO;;;;;0BAQ3C,CAAS,IAA8C,EAA9C,OAAO,YAAY,EAAE,yBAAyB,KAAG,CAAC,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;;;;;;;;8BAWhF,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,GAAC,WAAW;;;;;;;;;;;;;iBAO/B,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;AA3BjD;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqEjB;IAhEC;;;OAGG;IACH,sBAFU,OAAO,uBAAuB,EAAE,OAAO,GAAC,IAAI,CAEH;IAEnD;;;OAGG;IACH,sBAA4D;IAE5D;;;OAGG;IACH,iCAAuE;IAEvE;;;;OAIG;IACH,SAFU,OAAO,CAEG;IAEpB;;;OAGG;IACH,eAAmE;IAEnE;;;OAGG;IACH,eAAiE;IAEjE;;;OAGG;IACH,qBAAyC;IAEzC;;;OAGG;IACH,wBAFU,CAAS,IAAgC,EAAhC,OAAO,YAAY,EAAE,WAAW,KAAE,IAAI,CAEjC;IAExB;;;OAGG;IACH,wBAFU,CAAS,IAAK,EAAL,KAAK,KAAE,IAAI,CAEN;IAGxB;;;OAGG;IACH,qBAGE;IAGJ;;;;OAIG;IACH,mBAHa,WAAW,OAAA,CAKvB;IAED;;;OAGG;IACH,8BAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,iBAHY,OAAO,uBAAuB,EAAE,OAAO,GAAC,IAAI,CAKvD;IAED;;;OAGG;IACH,4BAHW,OAAO,oBAAoB,EAAE,OAAO,GACnC,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI,CAI7B;IAED;;OAEG;IACH,WAFY,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAIpD;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,CAKtC;IAED;;OAEG;IACH,YAFY,OAAO,GAAC,SAAS,CAI5B;IAED;;OAEG;IACH,kBAFY,OAAO,CAIlB;IAED;;;OAGG;IACH,gBAEC;IAED;;;;;;OAMG;IACH,8BALW,eAAe,GAAC,SAAS,QAQnC;IAED;;;OAGG;IACH,gBAFW,OAAO,aAAa,EAAE,KAAK,QAKrC;CACF;uBApNsB,cAAc"}
|
|
@@ -14,10 +14,6 @@ export type Options = {
|
|
|
14
14
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
15
15
|
*/
|
|
16
16
|
crossOrigin?: string | null | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* The `referrerPolicy` property for loaded images.
|
|
19
|
-
*/
|
|
20
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
21
17
|
/**
|
|
22
18
|
* Use interpolated values when resampling. By default,
|
|
23
19
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
@@ -47,7 +43,7 @@ export type Options = {
|
|
|
47
43
|
* extent, the grid will be based on that; if not, a grid based on a global
|
|
48
44
|
* extent with origin at 0,0 will be used.
|
|
49
45
|
*/
|
|
50
|
-
tileGrid?: import("../tilegrid.js").
|
|
46
|
+
tileGrid?: import("../tilegrid/TileGrid.js").default | undefined;
|
|
51
47
|
/**
|
|
52
48
|
* Projection. Default is the view projection.
|
|
53
49
|
* The projection code must contain a numeric end portion separated by :
|
|
@@ -101,7 +97,6 @@ export type Options = {
|
|
|
101
97
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
102
98
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
103
99
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
104
|
-
* @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.
|
|
105
100
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
106
101
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
107
102
|
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAwCjB;IAnBC;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBA8BC;IAYD;;;;OAIG;IACH,6BAGC;IAED;;;;OAIG;IACH,gCAGC;CA+CF;sBAnPqB,gBAAgB"}
|