Fix type checks in TileArcGISRest

This commit is contained in:
Frederic Junod
2018-09-26 14:57:49 +02:00
parent 55b300082a
commit 9cf7c71df8

View File

@@ -21,7 +21,7 @@ import {appendParams} from '../uri.js';
* for more detail.
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be
* used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is `IMAGE` by
* default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`,
* default. `TRANSPARENT` is `true` by default. `BBOX`, `SIZE`, `BBOXSR`,
* and `IMAGESR` will be set dynamically. Set `LAYERS` to
* override the default service layer visibility. See
* http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
@@ -66,7 +66,7 @@ class TileArcGISRest extends TileImage {
*/
constructor(opt_options) {
const options = opt_options || {};
const options = opt_options || /** @type {Options} */ ({});
super({
attributions: options.attributions,