Class: ServiceBase

ServiceBase

maplibregl.supermap 服务基类。

new ServiceBase(url, options)

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

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

new ServiceBase(url, options);

maplibregl/services/ServiceBase.js, line 6
Name Type Description
url string

服务地址。

options Object

参数。

Name Type Description
proxy string 可选

服务代理地址。

withCredentials boolean 可选

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

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Version:
  • 11.1.0
Fires

Events

initialized

maplibregl/services/ServiceBase.js, line 32

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

Properties:
Name Type Description
this Object

this 对象。