Class: ServiceBase

ServiceBase

ol.supermap 的服务基类。

new ServiceBase(url, options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.ServiceBase(url, options);
  
</script>

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

new ServiceBase(url, options);

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