Merge pull request #10118 from mike-000/patch-7

Document the OSM crossOrigin default
This commit is contained in:
Tim Schaub
2019-10-12 08:13:17 -06:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ export const ATTRIBUTION = '© ' +
* @typedef {Object} Options
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
* @property {number} [cacheSize] Tile cache size. The default depends on the screen size. Will increase if too small.
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* @property {null|string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {number} [maxZoom=19] Max zoom.