{"_id":"@allmaps/warpedmaplayer","_rev":"5-ee693004d10da9e965a67fea95c75b3b","name":"@allmaps/warpedmaplayer","dist-tags":{"latest":"1.0.0-beta.43"},"versions":{"1.0.0-beta.39":{"name":"@allmaps/warpedmaplayer","version":"1.0.0-beta.39","keywords":["iiif","georeference","map","plugin","allmaps"],"license":"MIT","_id":"@allmaps/warpedmaplayer@1.0.0-beta.39","maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"contributors":[{"url":"https://bertspaan.nl","name":"Bert Spaan","email":"hello@bertspaan.nl"},{"url":"https://manuelclaeysbouuaert.be","name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com"}],"homepage":"https://allmaps.org","bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"dist":{"shasum":"782acd25b26d6851402717d55a11901bee1fbb55","tarball":"https://registry.npmjs.org/@allmaps/warpedmaplayer/-/warpedmaplayer-1.0.0-beta.39.tgz","fileCount":7,"integrity":"sha512-d9V0vzk4pcG7R/MR9a8PQHyXb/B+pwb7s9WEBwF5Fe5SvPH0eRyDEZAJUoC0DqQGzJVCbjayKl02XYp9acjfkQ==","signatures":[{"sig":"MEUCIQCQHgKIskND6uMj6ev7Gxikkhda/3X/6xJxPPSaTQWr4wIgTY/MYne4noakcqgGHPody4S5DBjAqs9AHdX9NyVxe+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84252},"type":"module","exports":"./dist/index.js","gitHead":"dfe8dc3b15ae53f3dec0627144a0778de3a51779","scripts":{"lint":"prettier --check src && eslint src --ext .js,.ts","build":"tsc","types":"tsc --noEmit","watch":"tsc --watch","format":"prettier --write src","build:types":"tsc --declaration --esModuleInterop","documentation":"remark . --output --use remark-api"},"_npmUser":{"name":"bertspaan","email":"hello@bertspaan.nl"},"repository":{"url":"git+https://github.com/allmaps/allmaps.git","type":"git","directory":"packages/warpedmaplayer"},"_npmVersion":"lerna/4.7.0/node@v24.10.0+arm64 (darwin)","description":"Base plugin classes for Allmaps","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@allmaps/render":"^1.0.0-beta.79","@allmaps/stdlib":"^1.0.0-beta.38","@allmaps/project":"^1.0.0-beta.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","prettier":"^3.6.2","remark-api":"^1.1.0","remark-cli":"^12.0.1","typescript":"^5.7.0","@types/eslint":"^8.56.0","@allmaps/types":"^1.0.0-beta.21","@allmaps/transform":"^1.0.0-beta.49","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/warpedmaplayer_1.0.0-beta.39_1762812029682_0.6191902870145523","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-beta.40":{"name":"@allmaps/warpedmaplayer","version":"1.0.0-beta.40","keywords":["iiif","georeference","map","plugin","allmaps"],"license":"MIT","_id":"@allmaps/warpedmaplayer@1.0.0-beta.40","maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"contributors":[{"url":"https://bertspaan.nl","name":"Bert Spaan","email":"hello@bertspaan.nl"},{"url":"https://manuelclaeysbouuaert.be","name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com"}],"homepage":"https://allmaps.org","bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"dist":{"shasum":"dae959f57501225f165bb724f5d63511bdb93271","tarball":"https://registry.npmjs.org/@allmaps/warpedmaplayer/-/warpedmaplayer-1.0.0-beta.40.tgz","fileCount":7,"integrity":"sha512-7yiXRAOgJYKC08m1C6RuXtyYpJpzOwjOLEu1odgTrtdebson9eY4ItJ/6F9ZiRJ4Ap8cSaDteqFOs2DPgSWj1w==","signatures":[{"sig":"MEUCIB4UW++WPkM81RsXBsF+daURsQ7Gpr7Cnt39RldzISQ7AiEAtGNGbSeWYsutjWgZ81mmls3E024JslsVk5KoOt2qWTA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85944},"type":"module","exports":"./dist/index.js","gitHead":"814686e9c8e78777708c22dcd1efc4c81d968539","scripts":{"lint":"prettier --check src && eslint src --ext .js,.ts","build":"tsc","types":"tsc --noEmit","watch":"tsc --watch","format":"prettier --write src","build:types":"tsc --declaration --esModuleInterop","documentation":"remark . --output --use remark-api"},"_npmUser":{"name":"bertspaan","email":"hello@bertspaan.nl"},"repository":{"url":"git+https://github.com/allmaps/allmaps.git","type":"git","directory":"packages/warpedmaplayer"},"_npmVersion":"lerna/4.7.0/node@v24.10.0+arm64 (darwin)","description":"Base plugin classes for Allmaps","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@allmaps/render":"^1.0.0-beta.80","@allmaps/stdlib":"^1.0.0-beta.39","@allmaps/project":"^1.0.0-beta.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","prettier":"^3.6.2","remark-api":"^1.1.0","remark-cli":"^12.0.1","typescript":"^5.7.0","@types/eslint":"^8.56.0","@allmaps/types":"^1.0.0-beta.22","@allmaps/transform":"^1.0.0-beta.50","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/warpedmaplayer_1.0.0-beta.40_1764251098668_0.44456532809278904","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-beta.41":{"name":"@allmaps/warpedmaplayer","version":"1.0.0-beta.41","keywords":["iiif","georeference","map","plugin","allmaps"],"license":"MIT","_id":"@allmaps/warpedmaplayer@1.0.0-beta.41","maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"contributors":[{"url":"https://bertspaan.nl","name":"Bert Spaan","email":"hello@bertspaan.nl"},{"url":"https://manuelclaeysbouuaert.be","name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com"}],"homepage":"https://allmaps.org","bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"dist":{"shasum":"3cd2a11a573b439bda4f231c3175d8e9ab4c38da","tarball":"https://registry.npmjs.org/@allmaps/warpedmaplayer/-/warpedmaplayer-1.0.0-beta.41.tgz","fileCount":7,"integrity":"sha512-ZHiBkCpQChP10Ofw1NBJ9MvelXOi4VeZaDoxlMDIhooqVADcoH8WwcC6vzI2Wkr4WBTvBBwMAuQdD7X068qcgg==","signatures":[{"sig":"MEUCIDiZu8jh6tDq1EIt2a6dVEFipBlwVvHuc6SbmtiEr1BcAiEAj6UgAWuVpRDP45hRxi82lZDgCOYhYtX9sVbnA3+xaN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88584},"type":"module","exports":"./dist/index.js","gitHead":"ffa8c4000894d4a4a5e713e907184f1a29e66664","scripts":{"lint":"prettier --check src && eslint src --ext .js,.ts","build":"tsc","types":"tsc --noEmit","watch":"tsc --watch","format":"prettier --write src","build:types":"tsc --declaration --esModuleInterop","documentation":"remark . --output --use remark-api"},"_npmUser":{"name":"bertspaan","email":"hello@bertspaan.nl"},"repository":{"url":"git+https://github.com/allmaps/allmaps.git","type":"git","directory":"packages/warpedmaplayer"},"_npmVersion":"lerna/4.9.4/node@v24.10.0+arm64 (darwin)","description":"Base plugin classes for Allmaps","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@allmaps/render":"^1.0.0-beta.81","@allmaps/stdlib":"^1.0.0-beta.39","@allmaps/project":"^1.0.0-beta.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","prettier":"^3.6.2","remark-api":"^1.1.0","remark-cli":"^12.0.1","typescript":"^5.7.0","@types/eslint":"^8.56.0","@allmaps/types":"^1.0.0-beta.22","@allmaps/transform":"^1.0.0-beta.50","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/warpedmaplayer_1.0.0-beta.41_1765313705945_0.923443128849176","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-beta.42":{"name":"@allmaps/warpedmaplayer","version":"1.0.0-beta.42","keywords":["iiif","georeference","map","plugin","allmaps"],"license":"MIT","_id":"@allmaps/warpedmaplayer@1.0.0-beta.42","maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"contributors":[{"url":"https://bertspaan.nl","name":"Bert Spaan","email":"hello@bertspaan.nl"},{"url":"https://manuelclaeysbouuaert.be","name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com"}],"homepage":"https://allmaps.org","bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"dist":{"shasum":"8378fe08ee567e1b19a99a6ace66fc0c1994aeba","tarball":"https://registry.npmjs.org/@allmaps/warpedmaplayer/-/warpedmaplayer-1.0.0-beta.42.tgz","fileCount":7,"integrity":"sha512-OnJ/A4AWg/0BeCz5Hf1MrAxwddr4mWsAYKr358FjRGCT+SBXtv75o5se0Hbjl8fuRt8Z32fM8p/nJL8IOexGug==","signatures":[{"sig":"MEUCIQDz+LjpRVlxCj0sa0Envp4i33VPsb+2srF+507bQGSSpgIgcAcT/oh4V9ppOXKYlx9lWW9Rx6rSJTf1vN0Ue8pVGD4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88926},"type":"module","exports":"./dist/index.js","gitHead":"5801dd5a129c88cb0aaea3f45e2e288f38565d46","scripts":{"lint":"prettier --check src && eslint src --ext .js,.ts","build":"tsc","types":"tsc --noEmit","watch":"tsc --watch","format":"prettier --write src","build:types":"tsc --declaration --esModuleInterop","documentation":"remark . --output --use remark-api"},"_npmUser":{"name":"bertspaan","email":"hello@bertspaan.nl"},"repository":{"url":"git+https://github.com/allmaps/allmaps.git","type":"git","directory":"packages/warpedmaplayer"},"_npmVersion":"lerna/4.9.4/node@v24.10.0+arm64 (darwin)","description":"Base plugin classes for Allmaps","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@allmaps/render":"^1.0.0-beta.82","@allmaps/stdlib":"^1.0.0-beta.40","@allmaps/project":"^1.0.0-beta.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","prettier":"^3.6.2","remark-api":"^1.1.0","remark-cli":"^12.0.1","typescript":"^5.7.0","@types/eslint":"^8.56.0","@allmaps/types":"^1.0.0-beta.22","@allmaps/transform":"^1.0.0-beta.51","eslint-config-prettier":"^9.1.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/warpedmaplayer_1.0.0-beta.42_1770665504984_0.5095154475619179","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-beta.43":{"name":"@allmaps/warpedmaplayer","version":"1.0.0-beta.43","contributors":[{"name":"Bert Spaan","email":"hello@bertspaan.nl","url":"https://bertspaan.nl"},{"name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com","url":"https://manuelclaeysbouuaert.be"}],"description":"Base plugin classes for Allmaps","type":"module","exports":"./dist/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/allmaps/allmaps.git","directory":"packages/warpedmaplayer"},"homepage":"https://allmaps.org","keywords":["iiif","georeference","map","plugin","allmaps"],"scripts":{"watch":"tsc --watch --noCheck","build":"tsc --noCheck","types":"tsc --noEmit","build:types":"tsc --declaration --esModuleInterop","lint":"prettier --ignore-path ../../.gitignore --check src && eslint src --ext .js,.ts","format":"prettier --ignore-path ../../.gitignore --write src","documentation":"remark . --output --use remark-api","copy-between":"node ../../scripts/copy-between.ts src/WarpedMapLayer.ts ../openlayers/src/WarpedMapLayer.ts && node ../../scripts/copy-between.ts src/WarpedMapLayer.ts ../leaflet/src/WarpedMapLayer.ts"},"license":"MIT","dependencies":{"@allmaps/project":"^1.0.0-beta.9","@allmaps/render":"^1.0.0-beta.83","@allmaps/stdlib":"^1.0.0-beta.41"},"devDependencies":{"@allmaps/transform":"^1.0.0-beta.52","@allmaps/types":"^1.0.0-beta.23","@types/eslint":"^8.56.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","prettier":"^3.6.2","remark-api":"^1.1.0","remark-cli":"^12.0.1","typescript":"^5.9.3"},"gitHead":"0776371fa222f670b893d87b302c6334e825ac3e","_id":"@allmaps/warpedmaplayer@1.0.0-beta.43","bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"_nodeVersion":"25.8.0","_npmVersion":"lerna/4.9.4/node@v25.8.0+arm64 (darwin)","dist":{"integrity":"sha512-ebdkDKl4M4JtDevNQldjpUwZL3zHjLuqN0ToKT3YakHiTXHdEC1Htpx9bdqiFOgP5I7m3qqElKvLyCo1m6Fz6Q==","shasum":"a162008c72b5a5e38511bcba6fb647d4d45f070f","tarball":"https://registry.npmjs.org/@allmaps/warpedmaplayer/-/warpedmaplayer-1.0.0-beta.43.tgz","fileCount":7,"unpackedSize":99347,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHZVXLlLX1mg55Kcb5I0WXNC4PCsAEQQOF3XtsyjaI4gIgV+DT/dx8znmAFg+BHVl2A69THPwYb57jZh40yqdpdwc="}]},"_npmUser":{"name":"bertspaan","email":"hello@bertspaan.nl"},"directories":{},"maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/warpedmaplayer_1.0.0-beta.43_1780001979567_0.5054266915038137"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-10T22:00:29.614Z","modified":"2026-05-28T20:59:39.841Z","1.0.0-beta.39":"2025-11-10T22:00:29.897Z","1.0.0-beta.40":"2025-11-27T13:44:58.971Z","1.0.0-beta.41":"2025-12-09T20:55:06.099Z","1.0.0-beta.42":"2026-02-09T19:31:45.137Z","1.0.0-beta.43":"2026-05-28T20:59:39.703Z"},"bugs":{"url":"https://github.com/allmaps/allmaps/issues"},"license":"MIT","homepage":"https://allmaps.org","keywords":["iiif","georeference","map","plugin","allmaps"],"repository":{"type":"git","url":"git+https://github.com/allmaps/allmaps.git","directory":"packages/warpedmaplayer"},"description":"Base plugin classes for Allmaps","contributors":[{"name":"Bert Spaan","email":"hello@bertspaan.nl","url":"https://bertspaan.nl"},{"name":"Manuel Claeys Bouuaert","email":"manuel.claeys.b@gmail.com","url":"https://manuelclaeysbouuaert.be"}],"maintainers":[{"name":"bertspaan","email":"hello@bertspaan.nl"}],"readme":"# @allmaps/warpedmaplayer\n\nBase class for Allmaps plugins. This class contains the main logic for the WarpedMapLayer class exported by the Leaflet, OpenLayers and MapLibre plugins for Allmaps, which allow displaying georeferenced [IIIF images](https://iiif.io/) on a webmap. These plugins work by loading [Georeference Annotations](https://iiif.io/api/georef/extension/georef/) and use WebGL to transform images from a IIIF image server to overlay them on their correct geographical position.\n\n## How it works\n\nThis plugin creates a new class `WarpedMapLayer` which extends or is implemented by the `Layer` classes of the webmap libraries Leaflet, OpenLayers and MapLibre. Where it extends (MapLibre), the methods defined in this package are inherited automatically. Where it is implemented (Leaflet and OpenLayers) any changes to these methods should be copy-pasted to the implementing classes (see comments in the code).\n\nTo understand what happens under the hood for each georeferenced map, see the [@allmaps/render](../render/) package.\n\n## Installation\n\nThis package works in browsers and in Node.js as an ESM or an UMD module.\n\nInstall with pnpm:\n\n```sh\npnpm install @allmaps/warpedmaplayer\n```\n\nYou can optionally build this package locally by running:\n\n```sh\npnpm run build\n```\n\n## Usage\n\nThis package contains the main logic for the WarpedMapLayer class exported by the Allmaps plugins for Leaflet, OpenLayers and MapLibre. It should not be used directly. See the readme of the plugins for more usage information.\n\nUse this readme to understand the API of the WarpedMapLayer methods shared between the plugins, including **event types** emitted by a WarpedMapLayer instance and a list of available **options**.\n\n### Events\n\nThe following events are emitted by the native map object to inform you of the state of the `WarpedMapLayer`.\n\n| Type                            | Description                                                                                                                          |\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `imageinfosadded`              | Image infos have been directly added into the warped map list                                                                       |\n| `georeferenceannotationadded`   | A georeference annotation has been added to the warped map list                                                                      |\n| `georeferenceannotationremoved` | A georeference annotation has been removed from the warped map list                                                                  |\n| `warpedmapadded`                | A warped map has been added to the warped map list                                                                                   |\n| `warpedmapremoved`              | A warped map has been removed from the warped map list                                                                               |\n| `warpedmapentered`              | A warped map has entered the viewport                                                                                                |\n| `warpedmapleft`                 | A warped map has left the viewport                                                                                                   |\n| `imageloaded`                   | An image was loaded for a map from cache or by fetching image info                                                                   |\n| `maptilesloadedfromsprites`     | Tiles have been loaded to the tile cache from a fetched sprites image map                                                                             |\n| `maptileloaded`                 | A tile has been loaded to the tile cache for a map                                                                                   |\n| `maptiledeleted`                | A tile has been deleted from the tile cache for a map                                                                                |\n| `firstmaptileloaded`            | The cache loaded a first tile of a map                                                                                               |\n| `allrequestedtilesloaded`       | All tiles requested for the current viewport have been loaded                                                                        |\n| `cleared`                       | The warped map list has been cleared                                                                                                 |\n| `preparechange`                 | An upcoming options change has been prepared for a specific map (by mixing previous and new properties if the animation was ongoing) |\n| `immediatechange`               | An options change has been processed immediately                                                                                     |\n| `animatedchange`                | An options change has been processed with an animation                                                                               |\n\nEvent data follows the `Partial<WarpedMapEventData>` type:\n\n```ts\nexport type WarpedMapEventData = {\n  mapIds: string[]\n  tileUrl: string\n  optionKeys: string[]\n  spritesInfo: SpritesInfo\n}\n```\n\n### Options\n\nOptions can be set on a `WarpedMapLayer` both as *layer options*, which apply to all maps, or as individual *map options*. For each map, the final options that are applied to it result from merging the *default options*, options specified in the *georeference annotation* (like `resourceMask`, `transformationType`, `internalProjection` and `gcps`), *layer options* and *map options*. When merging options, `undefined` options are neglected, so setting a layer or map option to undefined effectively resets it.\n\nThe following options are available:\n\n| Key                          | Description                                                                                                                                                                                                 | Default                                                                                                  |\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| `applyMask`                  | Apply the resource mask (if false, the full mask is used)                                                                                                                                                   | `true`                                                                                                   |\n| `colorize`                   | Colorize the map                                                                                                                                                                                            | `false`                                                                                                  |\n| `colorizeColor`              | Color to colorize the map                                                                                                                                                                                   | `\"#ff56ba\"`                                                                                              |\n| `debugTiles`                 | Debug: show the tile boundaries                                                                                                                                                                             | `false`                                                                                                  |\n| `debugTriangles`             | Debug: show the triangulation triangles                                                                                                                                                                     | `false`                                                                                                  |\n| `distortionColor00`          | First color in the `'log2sigma'` distortion                                                                                                                                                                 | `\"#fe5e60\"`                                                                                              |\n| `distortionColor01`          | Second color in the `'log2sigma'` distortion                                                                                                                                                                | `\"#3b44ad\"`                                                                                              |\n| `distortionColor1`           | Color in the `'twoOmega'` distortion                                                                                                                                                                        | `\"#64c18f\"`                                                                                              |\n| `distortionColor2`           | Color in the `'airyKavr'` distortion                                                                                                                                                                        | `\"#ffc742\"`                                                                                              |\n| `distortionColor3`           | Color in the `'signDetJ'` distortion                                                                                                                                                                        | `\"#fe5e60\"`                                                                                              |\n| `distortionMeasures`         | Distortion measures to be computed                                                                                                                                                                          | `['log2sigma', 'twoOmega']`                                                                              |\n| `gcps`                       | Ground control points                                                                                                                                                                                       | `[]` (overwritten by the GCPs in the georeference annotation)                                            |\n| `internalProjection`         | Internal projection (see [@allmaps/project](../project/))                                                                                                                                          | `WebMercatorProjection` (possibly overwritten by the internal projection in the georeference annotation) |\n| `opacity`                    | Opacity                                                                                                                                                                                                     | `1`                                                                                                      |\n| `projection`                 | Projection (see [@allmaps/project](../project/))                                                                                                                                                   | `WebMercatorProjection`                                                                                  |\n| `removeColor`                | Remove color                                                                                                                                                                                                | `false`                                                                                                  |\n| `removeColorColor`           | Color to remove                                                                                                                                                                                             | `\"#222222\"`                                                                                              |\n| `removeColorHardness`        | Hardness when removing color                                                                                                                                                                                | `0.7`                                                                                                    |\n| `removeColorThreshold`       | Threshold when removing color                                                                                                                                                                               | `0`                                                                                                      |\n| `renderAppliableMask`        | Render the *appliable mask*, which is the resource mask as specified in the georeferenced annotation (or options), even when the mask is not applied (see the `applyMask` option) and the full mask is used | `false`                                                                                                  |\n| `renderAppliableMaskColor`   | Color when rendering the appliable mask                                                                                                                                                                     | `\"#ff56ba\"`                                                                                              |\n| `renderAppliableMaskSize`    | Size in viewport pixels when rendering the appliable mask                                                                                                                                                   | `8`                                                                                                      |\n| `renderFullMask`             | Render the full mask                                                                                                                                                                                        | `false`                                                                                                  |\n| `renderFullMaskColor`        | Color when rendering the full mask                                                                                                                                                                          | `\"#64c18f\"`                                                                                              |\n| `renderFullMaskSize`         | Size in viewport pixels when rendering the full mask                                                                                                                                                        | `8`                                                                                                      |\n| `renderGcps`                 | Render the GCPs                                                                                                                                                                                             | `false`                                                                                                  |\n| `renderGcpsColor`            | Color when rendering the GCPs                                                                                                                                                                               | `\"#63d8e6\"`                                                                                              |\n| `renderGcpsSize`             | Size in viewport pixels when rendering the GCPs                                                                                                                                                             | `16`                                                                                                     |\n| `renderGrid`                 | Render the grid                                                                                                                                                                                             | `false`                                                                                                  |\n| `renderGridColor`            | Color when rendering the grid                                                                                                                                                                               | `\"#222222\"`                                                                                              |\n| `renderMask`                 | Render the mask                                                                                                                                                                                             | `false`                                                                                                  |\n| `renderMaskColor`            | Color when rendering the mask                                                                                                                                                                               | `\"#ff56ba\"`                                                                                              |\n| `renderMaskSize`             | Size in viewport pixels when rendering the mask                                                                                                                                                             | `8`                                                                                                      |\n| `renderTransformedGcps`      | Render the transformed GCPs                                                                                                                                                                                 | `false`                                                                                                  |\n| `renderTransformedGcpsColor` | Color when rendering the transformed GCPs                                                                                                                                                                   | `\"#ff56ba\"`                                                                                              |\n| `renderTransformedGcpsSize`  | Size in viewport pixels when rendering the transformed GCPs                                                                                                                                                 | `16`                                                                                                     |\n| `renderVectors`              | Render the vectors connecting each GCP with its respective transformed GCP                                                                                                                                  | `false`                                                                                                  |\n| `renderVectorsColor`         | Color when rendering the vectors                                                                                                                                                                            | `\"#222222\"`                                                                                              |\n| `renderVectorsSize`          | Size in viewport pixels when rendering the vectors                                                                                                                                                          | `6`                                                                                                      |\n| `resourceMask`               | Resource mask                                                                                                                                                                                               | `[]` (overwritten by the resource mask in the georeference annotation)                                   |\n| `saturation`                 | Saturation                                                                                                                                                                                                  | `1`                                                                                                      |\n| `transformationType`         | Transformation type                                                                                                                                                                                         | `\"polynomial\"` (possibly overwritten by the transformation type in the georeference annotation)          |\n| `visible`                    | Visible                                                                                                                                                                                                     | `true`                                                                                                   |\n\n### What is a *map*?\n\nLeaflet, OpenLayer and MapLibre each have their concept of a 'map' as the central class their API (see Leaflet [`Map`](https://leafletjs.com/reference.html#map), OpenLayers [`Map`](https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html) and MapLibre [`Map`](https://maplibre.org/maplibre-gl-js/docs/API/classes/maplibregl.Map/)). It generally refers to a `<div>` an a page where tiles or WebGL logic is used to render a projection of the world.\n\nIn Allmaps the concept 'map' is rather related to a Georeference Annotation. There are different classes named 'map', one for each phase a map takes through the Allmaps rendering pipeline:\n\n* When a Georeference Annotation is parsed, an instance of the `GeoreferencedMap` class is created from it.\n* When this map is loaded into an application for rendering, an instance of the `WarpedMap` class is created from it.\n* Inside the WebGL2 Renderer, the `WebGL2WarpedMap` class is used to render the map.\n\nAll these map phases originating from the same Georeference Annotation have the same unique `mapId` property. This string value is used though-out Allmaps (and in the API below) to identify a map. It is returned after adding a georeference annotation to a warpedMapLayer, so you can use it later to call functions on a specific map.\n\nNote that since a WarpedMapLayer can load multiple Georeference Annotations, we could have multiple Allmaps 'maps' on e.g. one Leaflet 'map'.\n\n## License\n\nMIT\n\n## API\n\n### `new BaseWarpedMapLayer(defaultSpecificWarpedMapLayerOptions, options)`\n\nCreates a WarpedMapLayer instance\n\n###### Parameters\n\n* `defaultSpecificWarpedMapLayerOptions` (`SpecificWarpedMapLayerOptions`)\n* `options?` (`  | Partial<SpecificWarpedMapLayerOptions & Partial<WebGL2RenderOptions>>\n    | undefined`)\n  * options\n\n###### Returns\n\n`BaseWarpedMapLayer<SpecificWarpedMapLayerOptions>`.\n\n### `BaseWarpedMapLayer#addEventListeners()`\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#addGeoreferenceAnnotation(annotation, mapOptions)`\n\nAdds a Georeference Annotation\n\n###### Parameters\n\n* `annotation` (`unknown`)\n  * Georeference Annotation\n* `mapOptions?` (`Partial<WebGL2WarpedMapOptions> | undefined`)\n  * Map options\n\n###### Returns\n\nMap IDs of the maps that were added, or an error per map (`Array<string | Error>`).\n\n### `BaseWarpedMapLayer#addGeoreferenceAnnotationByUrl(annotationUrl, mapOptions)`\n\nAdds a Georeference Annotation by URL\n\n###### Parameters\n\n* `annotationUrl` (`string`)\n  * URL of a Georeference Annotation\n* `mapOptions?` (`Partial<WebGL2WarpedMapOptions> | undefined`)\n  * Map options\n\n###### Returns\n\nMap IDs of the maps that were added, or an error per map (`Promise<Array<string | Error>>`).\n\n### `BaseWarpedMapLayer#addGeoreferencedMap(georeferencedMap, mapOptions)`\n\nAdds a Georeferenced Map\n\n###### Parameters\n\n* `georeferencedMap` (`unknown`)\n  * Georeferenced Map\n* `mapOptions?` (`Partial<WebGL2WarpedMapOptions> | undefined`)\n  * Map options\n\n###### Returns\n\nMap ID of the map that was added (`string`).\n\n### `BaseWarpedMapLayer#addImageInfos(imageInfos)`\n\nAdds image information to the WarpedMapList's image information cache\n\n###### Parameters\n\n* `imageInfos` (`Array<unknown>`)\n  * Image informations\n\n###### Returns\n\nImage IDs of the image informations that were added (`Array<string>`).\n\n### `BaseWarpedMapLayer#addSprites(sprites, imageUrl, imageSize)`\n\nAdds sprites to the Renderer's sprite tile cache\n\nThis adds tiles from sprites to warped maps in WarpedMapList. Load maps before running this function.\nThis uses the image info of related maps. When using addImageInfos(), call it before calling this function.\n\n###### Parameters\n\n* `sprites` (`Array<Sprite>`)\n  * Sprites\n* `imageUrl` (`string`)\n  * Image url\n* `imageSize` (`[number, number]`)\n  * Image size\n\n###### Returns\n\n`Promise<void>`.\n\n### `BaseWarpedMapLayer#bringMapsForward(mapIds)`\n\nBring maps forward\n\n###### Parameters\n\n* `mapIds` (`Iterable<string>`)\n  * IDs of the maps\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#bringMapsToFront(mapIds)`\n\nBring maps to front\n\n###### Parameters\n\n* `mapIds` (`Iterable<string>`)\n  * IDs of the maps\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#canvas?`\n\n###### Type\n\n```ts\nHTMLCanvasElement\n```\n\n### `BaseWarpedMapLayer#clear()`\n\nRemoves all warped maps from the layer\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#container?`\n\n###### Type\n\n```ts\nHTMLDivElement\n```\n\n### `BaseWarpedMapLayer#contextLost(event)`\n\n###### Parameters\n\n* `event` (`Event`)\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#contextRestored(event)`\n\n###### Parameters\n\n* `event` (`Event`)\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#defaultSpecificWarpedMapLayerOptions`\n\n###### Type\n\n```ts\nSpecificWarpedMapLayerOptions\n```\n\n### `BaseWarpedMapLayer#getBbox(options)`\n\nGet the bounding box of all maps in the layer\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe bbox of all maps, in the chosen projection, or undefined if there were no maps (`Bbox | undefined`).\n\n### `BaseWarpedMapLayer#getCenter(options)`\n\nGet the center of the bounding box of all maps in the layer\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe center of the bbox of all maps, in the chosen projection, or undefined if there were no maps (`Point | undefined`).\n\n### `BaseWarpedMapLayer#getConvexHull(options)`\n\nGet the convex hull of all maps in the layer\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe convex hull of all maps, in the chosen projection, or undefined if there were no maps (`Ring | undefined`).\n\n### `BaseWarpedMapLayer#getDefaultOptions()`\n\nGet the default options the layer\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`SpecificWarpedMapLayerOptions &\n  SpecificBaseRenderOptions<WebGL2WarpedMap> &\n  Partial<WarpedMapListOptions<WebGL2WarpedMap>> &\n  SpecificWebGL2WarpedMapOptions &\n  SpecificTriangulatedWarpedMapOptions &\n  WarpedMapOptions`.\n\n### `BaseWarpedMapLayer#getLayerOptions()`\n\nGet the layer options\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`{ [P in keyof (SpecificWarpedMapLayerOptions & Partial<WebGL2RenderOptions>)]?: (SpecificWarpedMapLayerOptions & Partial<...>)[P] | undefined; }`.\n\n### `BaseWarpedMapLayer#getMapDefaultOptions(mapId)`\n\nGet the default options of a map\n\nThese come from the default option settings for WebGL2WarpedMaps and the map's georeferenced map proporties\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which the options apply\n\n###### Returns\n\n`WebGL2WarpedMapOptions | undefined`.\n\n### `BaseWarpedMapLayer#getMapIds()`\n\nGet mapIds for all maps in the layer\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\nThe mapIds of all maps (`Array<string>`).\n\n### `BaseWarpedMapLayer#getMapMapOptions(mapId)`\n\nGet the map-specific options of a map\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which the options apply\n\n###### Returns\n\n`Partial<WebGL2WarpedMapOptions> | undefined`.\n\n### `BaseWarpedMapLayer#getMapOptions(mapId)`\n\nGet the options of a map\n\nThese options are the result of merging the default, georeferenced map,\nlayer and map-specific options of that map.\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which the options apply\n\n###### Returns\n\n`WebGL2WarpedMapOptions | undefined`.\n\n### `BaseWarpedMapLayer#getMapZIndex(mapId)`\n\nGet the z-index of a map\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which to get the z-index\n\n###### Returns\n\nThe z-index of a map (`number | undefined`).\n\n### `BaseWarpedMapLayer#getMapsBbox(mapIds, options)`\n\nGet the bounding box of all selected maps\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * Map IDs\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection (`Bbox | undefined`).\n\n### `BaseWarpedMapLayer#getMapsCenter(mapIds, options)`\n\nGet the center of the bounding box of all selected maps\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * Map IDs\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe center of the bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection (`Point | undefined`).\n\n### `BaseWarpedMapLayer#getMapsConvexHull(mapIds, options)`\n\nGet the convex hull of all selected maps maps\n\nThe result is returned in lon-lat `EPSG:4326` by default.\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * Map IDs\n* `options?` (`Partial<ProjectionOptions & MaskOptions> | undefined`)\n  * Mask and projection options, defaults to applied mask and current projection\n\n###### Returns\n\nThe convex hull of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection (`Ring | undefined`).\n\n### `BaseWarpedMapLayer#getOpacity()`\n\nGet the layer opacity\n\nReturns a number between 0 and 1 (the default)\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`number`.\n\n### `BaseWarpedMapLayer#getWarpedMap(mapId)`\n\nGet the WarpedMap instance for a map\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID of the requested WarpedMap instance\n\n###### Returns\n\n`WebGL2WarpedMap | undefined`.\n\n### `BaseWarpedMapLayer#getWarpedMapList()`\n\nGet the WarpedMapList object that contains a list of the warped maps of all loaded maps\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`WarpedMapList<WebGL2WarpedMap>`.\n\n### `BaseWarpedMapLayer#getWarpedMaps(mapIds)`\n\nGet the WarpedMap instances for all maps, or all selected maps\n\nIf no argument is passed, the WarpedMap instance of all maps in the layer is passed\n\nNote: more selection options are available on this function of WarpedMapList\n\n###### Parameters\n\n* `mapIds?` (`Array<string> | undefined`)\n  * Map IDs\n\n###### Returns\n\nThe WarpedMap instance of all (selected) map (`Array<WebGL2WarpedMap>`).\n\n### `BaseWarpedMapLayer#gl?`\n\n###### Type\n\n```ts\nWebGL2RenderingContext\n```\n\n### `BaseWarpedMapLayer#nativePassWarpedMapEvent(event)`\n\n###### Parameters\n\n* `event` (`Event`)\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#nativeUpdate()`\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#options`\n\n###### Type\n\n```ts\nSpecificWarpedMapLayerOptions & Partial<WebGL2RenderOptions>\n```\n\n### `BaseWarpedMapLayer#removeEventListeners()`\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#removeGeoreferenceAnnotation(annotation)`\n\nRemoves a Georeference Annotation\n\n###### Parameters\n\n* `annotation` (`unknown`)\n  * Georeference Annotation\n\n###### Returns\n\nMap IDs of the maps that were removed, or an error per map (`Array<string | Error>`).\n\n### `BaseWarpedMapLayer#removeGeoreferenceAnnotationByUrl(annotationUrl)`\n\nRemoves a Georeference Annotation by URL\n\n###### Parameters\n\n* `annotationUrl` (`string`)\n  * URL of a Georeference Annotation\n\n###### Returns\n\nMap IDs of the maps that were removed, or an error per map (`Promise<Array<string | Error>>`).\n\n### `BaseWarpedMapLayer#removeGeoreferencedMap(georeferencedMap)`\n\nRemoves a Georeferenced Map\n\n###### Parameters\n\n* `georeferencedMap` (`unknown`)\n  * Georeferenced Map\n\n###### Returns\n\nMap ID of the map that was removed (`string`).\n\n### `BaseWarpedMapLayer#removeGeoreferencedMapById(mapId)`\n\nRemoves a Georeferenced Map by its ID\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID of the georeferenced map to remove\n\n###### Returns\n\nMap ID of the map that was removed (`string`).\n\n### `BaseWarpedMapLayer#renderer?`\n\n###### Type\n\n```ts\nWebGL2Renderer\n```\n\n### `BaseWarpedMapLayer#resetLayerOptions(layerOptionKeys, animationOptions)`\n\nReset the layer options\n\nUndefined option keys reset all options\n\nDoesn't reset render options or specific warped map layer options. Use setOptions() instead.\n\n###### Parameters\n\n* `layerOptionKeys?` (`Array<string> | undefined`)\n  * Keys of the layer options to reset\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#resetMapsAndListOptions(mapIds, mapsOptionKeys, layerOptionKeys, animationOptions)`\n\nReset the map-specific options of the specified maps, and the layer options\n\nOmitting `mapsOptionKeys` or `layerOptionKeys` resets all options for that scope;\npassing an empty array resets none.\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * IDs of the maps whose options to reset\n* `mapsOptionKeys?` (`  | Array<\n        | keyof SpecificWebGL2WarpedMapOptions\n        | keyof SpecificTriangulatedWarpedMapOptions\n        | keyof WarpedMapOptions     >\n    | undefined`)\n  * Keys of the map-specific options to reset\n* `layerOptionKeys?` (`  | Array<\n        | keyof SpecificWebGL2WarpedMapOptions\n        | keyof SpecificTriangulatedWarpedMapOptions\n        | keyof WarpedMapOptions     >\n    | undefined`)\n  * Keys of the layer options to reset\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#resetMapsOptions(mapIds, mapsOptionKeys, animationOptions)`\n\nReset the map-specific options of the specified maps\n\nOmitting `mapsOptionKeys` resets all options; passing an empty array resets none.\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * IDs of the maps whose options to reset\n* `mapsOptionKeys?` (`  | Array<\n        | keyof SpecificWebGL2WarpedMapOptions\n        | keyof SpecificTriangulatedWarpedMapOptions\n        | keyof WarpedMapOptions     >\n    | undefined`)\n  * Keys of the options to reset\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#sendMapsBackward(mapIds)`\n\nSend maps backward\n\n###### Parameters\n\n* `mapIds` (`Iterable<string>`)\n  * IDs of the maps\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#sendMapsToBack(mapIds)`\n\nSend maps to back\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * IDs of the maps\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setLayerOptions(layerOptions, animationOptions)`\n\nSet the layer options\n\nDoesn't set render options or specific warped map layer options. Use setOptions() instead.\n\n###### Parameters\n\n* `layerOptions?` (`Partial<WarpedMapListOptions<WebGL2WarpedMap>> | undefined`)\n  * Layer options to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n  ```js\n  warpedMapLayer.setLayerOptions({ transformationType: 'thinPlateSpline' })\n  ```\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setLayerTransformationType(transformationType, animationOptions)`\n\nSet the transformation type of the layer\n\n###### Parameters\n\n* `transformationType?` (`TransformationType | undefined`)\n  * Transformation type to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setMapGcps(mapId, gcps, animationOptions)`\n\nSet the GCPs of a map\n\nThis only sets the map-specific `gcps` option of the map\n(or more specifically of the warped map used for rendering),\noverwriting the original GCPs inferred from the Georeference Annotation.\n\nThe original GCPs can be reset by resetting the map-specific GCPs option,\nand stay accessible in the warped map's `map` property.\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which to set the options\n* `gcps` (`Array<Gcp>`)\n  * GCPs to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setMapOptions(mapId, mapOptions, animationOptions)`\n\nSet the map-specific options of a map\n\nIn general setting a map-specific option\nalso sets the corresponding option of the map,\nsince these are the result of merging the default, georeferenced map,\nlayer and map-specific options of that map.\n\nA special case is setting a map-specific option to `undefined`:\nthen the corresponding option is derived from the default, georeferenced map or layer option.\nThis is equivalent to using the reset function for map-specific option.\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which to set the options\n* `mapOptions` (`{ renderMaps?: boolean | undefined; renderLines?: boolean | undefined; renderPoints?: boolean | undefined; renderGcps?: boolean | undefined; renderGcpsColor?: string | undefined; renderGcpsSize?: number | undefined; renderGcpsBorderColor?: string | undefined; ... 56 more ...; distortionMeasure?: DistortionMeasure | ...`)\n  * Map-specific options to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n###### Examples\n\n```ts\nwarpedMapLayer.setMapOptions(myMapId, { transformationType: 'thinPlateSpline' })\n```\n\n### `BaseWarpedMapLayer#setMapResourceMask(mapId, resourceMask, animationOptions)`\n\nSet the resource mask of a map\n\nThis only sets the map-specific `resourceMask` option of the map\n(or more specifically of the warped map used for rendering),\noverwriting the original resource mask inferred from the Georeference Annotation.\n\nThe original resource mask can be reset by resetting the map-specific resource mask option,\nand stays accessible in the warped map's `map` property.\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which to set the options\n* `resourceMask` (`Array<Point>`)\n  * Resource mask to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setMapTransformationType(mapId, transformationType, animationOptions)`\n\nSet the transformation type of a map\n\nThis only sets the map-specific `transformationType` option of the map\n(or more specifically of the warped map used for rendering),\noverwriting the original transformation type inferred from the Georeference Annotation.\n\nThe original transformation type can be reset by resetting the map-specific transformation type option,\nand stays accessible in the warped map's `map` property.\n\n###### Parameters\n\n* `mapId` (`string`)\n  * Map ID for which to set the options\n* `transformationType?` (`TransformationType | undefined`)\n  * Transformation type to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setMapsAndLayerOptions(mapIds, mapsOptions, layerOptions, animationOptions)`\n\nSet the map-specific options of the specified maps, and the layer options\n\nUseful when map-specific options are changed for multiple maps at once,\ntogether with the layer options, but only one animation should be fired.\n\nDoesn't set render options or specific warped map layer options. Use setOptions() instead.\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * IDs of the maps whose options to set\n* `mapsOptions?` (`Partial<WebGL2WarpedMapOptions> | undefined`)\n  * Map-specific options to apply to each of those maps\n* `layerOptions?` (`Partial<WarpedMapListOptions<WebGL2WarpedMap>> | undefined`)\n  * Layer options to apply\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n###### Examples\n\n```ts\nwarpedMapLayer.setMapsAndLayerOptions([myMapId], { transformationType: 'thinPlateSpline' }, { visible: true })\n```\n\n### `BaseWarpedMapLayer#setMapsOptions(mapIds, mapsOptions, animationOptions)`\n\nSet the map-specific options of the specified maps\n\nIn general setting a map-specific option\nalso sets the corresponding option of the map,\nsince these are the result of merging the default, georeferenced map,\nlayer and map-specific options of that map.\n\nA special case is setting a map-specific option to `undefined`:\nthen the corresponding option is derived from the default, georeferenced map or layer option.\nThis is equivalent to using the reset function for map-specific option.\n\nUseful when map-specific options are changed for multiple maps at once,\nbut only one animation should be fired.\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * Map IDs of the maps whose options to set\n* `mapsOptions?` (`Partial<WebGL2WarpedMapOptions> | undefined`)\n  * Map-specific options to apply to each of those maps\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n###### Examples\n\n```ts\nwarpedMapLayer.setMapsOptions([myMapId], { transformationType: 'thinPlateSpline' })\n```\n\n### `BaseWarpedMapLayer#setMapsTransformationType(mapIds, transformationType, animationOptions)`\n\nSet the transformation type of maps\n\nThis only sets the map-specific `transformationType` option of the map\n(or more specifically of the warped map used for rendering),\noverwriting the original transformation type inferred from the Georeference Annotation.\n\nThe original transformation type can be reset by resetting the map-specific transformation type option,\nand stays accessible in the warped map's `map` property.\n\n###### Parameters\n\n* `mapIds` (`Array<string>`)\n  * Map IDs for which to set the options\n* `transformationType?` (`TransformationType | undefined`)\n  * Transformation type to set\n* `animationOptions?` (`Partial<AnimationOptions> | undefined`)\n  * Animation options\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setOpacity(opacity)`\n\nSet the layer opacity\n\n###### Parameters\n\n* `opacity` (`number`)\n  * Layer opacity to set\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer#setOptions(options)`\n\nSet the options\n\n###### Parameters\n\n* `options?` (`  | Partial<WebGL2RenderOptions>\n    | Partial<SpecificWarpedMapLayerOptions>\n    | undefined`)\n  * Options to set\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer.assertCanvas(canvas)`\n\n###### Parameters\n\n* `canvas?` (`HTMLCanvasElement | undefined`)\n\n###### Returns\n\n`void`.\n\n### `BaseWarpedMapLayer.assertRenderer(renderer)`\n\n###### Parameters\n\n* `renderer?` (`WebGL2Renderer | undefined`)\n\n###### Returns\n\n`void`.\n","readmeFilename":"README.md"}