UNPKG

@ciniki/iclient-maplibregl

Version:

@supermapgis/iclient-maplibregl 是一套基于 Maplibre GL 的云 GIS 网络客户端开发平台, 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源,为用户提供了完整专业的 GIS 能力, 同时提供了优秀的可视化功能。

45 lines (41 loc) 2.07 kB
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ import {ServiceBase} from './ServiceBase'; import { ThemeService as CommonThemeService } from '@ciniki/iclient-common/iServer/ThemeService'; /** * @class ThemeService * @category iServer Map Theme * @classdesc 专题图服务类。地图学中将突出而深入地表示一种或几种要素或现象,即集中表示一个主题内容的地图称为专题地图。在 SuperMap 中,专题图是地图图层的符号化显示,即用各种图形渲染风格(大小,颜色,线型,填充等)来图形化地表现专题要素的某方面特征。该类可用于获取专题图的信息。 * @version 11.1.0 * @extends {ServiceBase} * @example * new ThemeService(url,{ * projection:projection * }).getThemeInfo(params,function(result){ * //doSomething * }); * @param {string} url - 服务地址。 * @param {Object} options - 参数。 * @param {string} [options.proxy] - 服务代理地址。 * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。 * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。 * @param {Object} [options.headers] - 请求头。 * @usage */ export class ThemeService extends ServiceBase { constructor(url, options) { super(url, options); this._commonThemeService = new CommonThemeService(url, options); } /** * @function ThemeService.prototype.getThemeInfo * @description 获取专题图信息。 * @param {ThemeParameters} params - 专题图参数类。 * @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @returns {Promise} Promise 对象。 */ getThemeInfo(params, callback) { return this._commonThemeService.processAsync(params, callback); } }