new ServiceBase(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ServiceBase(url, options);
</script>
// ES6 Import
import { ServiceBase } from '@supermap/iclient-leaflet';
new ServiceBase(url, options);
leaflet/services/ServiceBase.js, line 6
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址。 |
||||||||||||||||||||
options |
Object |
参数。
|
Fires
Extends
Events
-
destroy
leaflet/services/ServiceBase.js, line 52 -
资源释放成功后触发。
Properties:
Name Type Description this
ServiceBase this 对象。
-
initialized
leaflet/services/ServiceBase.js, line 39 -
构造函数构造成功后触发。
Properties:
Name Type Description this
ServiceBase this 对象。
Methods
-
destroy()
leaflet/services/ServiceBase.js, line 47 -
释放资源,将引用的资源属性置空。