Merge pull request #8717 from fredj/ts_TileArcGISRest

Fix type checks in TileArcGISRest
This commit is contained in:
Frédéric Junod
2018-09-27 08:28:56 +02:00
committed by GitHub
+2 -2
View File
@@ -21,7 +21,7 @@ import {appendParams} from '../uri.js';
* for more detail. * for more detail.
* @property {Object<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be * @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 * 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 * and `IMAGESR` will be set dynamically. Set `LAYERS` to
* override the default service layer visibility. See * override the default service layer visibility. See
* http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/ * 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) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || /** @type {Options} */ ({});
super({ super({
attributions: options.attributions, attributions: options.attributions,