1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| /**
| * TransferParameter
| * @author haoml
| * @date 2015/11/23
| */
| define([
| "dojo/_base/declare",
| "dojo/_base/array",
| "dojo/_base/lang",
| "dojo/query",
| "dojo/request",
| "dojo/dom",
| "dojo/dom-style",
| "dojo/dom-class",
| "dojo/dom-attr",
| "dojo/dom-construct",
| "dojo/request/script",
| "dojo/on",
| "dojo/domReady!"
| ], function (
| declare,
| arrayUtil,
| lang,
| query,
| request,
| dom,
| domStyle,
| domClass,
| domAttr,
| domConstruct,
| script,
| on
| ){
| var TransferParameter = declare("TransferParameter",null,{
| f:"json",
| departure:null,//出发地
| destination:null,//目的地
| prior:"time",//优先考虑的因素,默认时间最短
| exclusive:"mixed",//交通工具类型,默认组合的
| inSR:"",//输入的空间参考,默认值为服务中数据集的坐标系统
| constructor:function(){
|
| },
| toJSON:function(){
| var json = {
| f:this.f,
| departure:this.departure,
| destination:this.destination,
| prior:this.prior,
| exclusive:this.exclusive,
| inSR:this.inSR
| };
| return json;
| }
| });
| return TransferParameter;
| });
|
|