add Image source imageSmoothing option

Add Image smoothing checkbox to example

Test imageSmoothing option
This commit is contained in:
mike-000
2020-05-06 21:56:11 +01:00
parent 24c453c6b8
commit 9a8b9d8ade
16 changed files with 130 additions and 20 deletions

View File

@@ -32,6 +32,7 @@ import {
* @property {Array<number>} [resolutions] Resolutions.
* If specified, requests will be made for these resolutions only.
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
* @property {boolean} [imageSmoothing=true] Enable image smoothing.
* @property {Object} [params] Additional parameters.
*/
@@ -48,6 +49,7 @@ class ImageMapGuide extends ImageSource {
*/
constructor(options) {
super({
imageSmoothing: options.imageSmoothing,
projection: options.projection,
resolutions: options.resolutions,
});