Class: ServiceBase

ServiceBase

ol.supermap 的服务基类。

new ServiceBase(url, options)

Usage
import { ServiceBase } from '@supermapgis/iclient-ol';

new ServiceBase(url, options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.ServiceBase({paramsNames});
</script>
openlayers/services/ServiceBase.js, line 6
Name Type Description
url string

服务地址。具体地址类型由子类决定。

options Object

参数。

Name Type Description
proxy string 可选

服务代理地址。

withCredentials boolean 可选

请求是否携带凭据。默认情况下,仅同源请求包含凭据。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Extends

ServiceBase -> ol.Observable

Subclasses

AddressMatchService , ChartService , DataFlowService , DatasetService , DatasourceService , FeatureService , FieldService , GeoprocessingService , GridCellInfosService , ImageCollectionService , ImageService , KnowledgeGraphService , LayerInfoService , MapService , MeasureService , NetworkAnalyst3DService , NetworkAnalystService , ProcessingService , QueryService , SpatialAnalystService , ThemeService , TrafficTransferAnalystService , WebPrintingJobService