new TrafficTransferAnalystService(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.TrafficTransferAnalystService(url, options);
// 弃用的写法
L.supermap.trafficTransferAnalystService(url, options);
</script>
// ES6 Import
import { TrafficTransferAnalystService } from '@supermap/iclient-leaflet';
new TrafficTransferAnalystService(url, options);
leaflet/services/TrafficTransferAnalystService.js, line 8
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址。 |
||||||||||||||||||||
options |
Object |
参数。
|
Example
new TrafficTransferAnalystService(url).queryStop(params,function(result){
//doSomething
})
Extends
Events
-
inherited destroy
leaflet/services/ServiceBase.js, line 52 -
资源释放成功后触发。
Properties:
Name Type Description this
ServiceBase this 对象。
-
inherited initialized
leaflet/services/ServiceBase.js, line 39 -
构造函数构造成功后触发。
Properties:
Name Type Description this
ServiceBase this 对象。
Methods
-
analysisTransferPath(params, callback)
leaflet/services/TrafficTransferAnalystService.js, line 42 -
交通换乘线路查询服务。
Name Type Description params
TransferPathParameters 交通换乘线路查询参数类。
callback
RequestCallback 回调函数。
-
analysisTransferSolution(params, callback)
leaflet/services/TrafficTransferAnalystService.js, line 52 -
交通换乘方案查询服务。
Name Type Description params
TransferSolutionParameters 交通换乘方案查询参数类。
callback
RequestCallback 回调函数。
-
inherited destroy()
leaflet/services/ServiceBase.js, line 47 -
释放资源,将引用的资源属性置空。
-
queryStop(params, callback)
leaflet/services/TrafficTransferAnalystService.js, line 33 -
站点查询服务。
Name Type Description params
StopQueryParameters 站点查询参数类。
callback
RequestCallback 回调函数。