Class: ServiceBase

ServiceBase

mapboxgl.supermap 服务基类。

new ServiceBase(url, options)

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

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

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

options Object

参数。

Name Type Description
proxy string 可选

服务代理地址。

withCredentials boolean 可选

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

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Fires

Subclasses

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

Events

initialized

mapboxgl/services/ServiceBase.js, line 32

构造函数构造成功之后触发。

Properties:
Name Type Description
this Object

this 对象。