* @deprecated * @function WebMapBase.prototype.setMapOptions * @param {Object} mapOptions - map 参数。 * @description 设置 map 参数。
(mapOptions)
| 347 | * @description 设置 map 参数。 |
| 348 | */ |
| 349 | setMapOptions(mapOptions) { |
| 350 | let { center, zoom, maxBounds, minZoom, maxZoom, isWorldCopy, bearing, pitch } = mapOptions; |
| 351 | center && center.length && this.setCenter(center); |
| 352 | zoom && this.setZoom(zoom); |
| 353 | maxBounds && this.setMaxBounds(maxBounds); |
| 354 | minZoom && this.setMinZoom(minZoom); |
| 355 | maxZoom && this.setMaxZoom(maxZoom); |
| 356 | isWorldCopy && this.setRenderWorldCopies(isWorldCopy); |
| 357 | bearing && this.setBearing(bearing); |
| 358 | pitch && this.setPitch(pitch); |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * @version 12.0.2 |
no test coverage detected