| UpdateTurnNodeWeightService.js | |
| Constants | |
| EVENT_TYPES | {Array(String)} 此类支持的事件类型。 |
| Properties | |
| eventListeners | {Object} 监听*processCompleted*和*processFailed*事件的回调函数 |
| events | {SuperMap.Events} 更新转向耗费权重服务的事件处理器 |
| Constructor | |
| SuperMap. |
转向耗费权重更新服务类构造函数。 |
| Functions | |
| destroy | 释放资源,将引用资源的属性置空。 |
| processAsync | 开始异步执行转向耗费权重的更新 Parameters: params - {SuperMap.REST.UpdateTurnNodeWeightParameters} 更新服务参数 |
转向耗费权重更新服务类构造函数。
例如:
var UpdateTurnNodeWeightService = new SuperMap.REST.UpdateTurnNodeWeightService(url, {
eventListeners: {
"processCompleted": UpdateTurnNodeWeightCompleted, //参数为SuperMap.REST.UpdateTurnNodeWeightEventArgs
"processFailed": UpdateTurnNodeWeightError //参数为SuperMap.ServiceFailedEventArgs
}
});
| url | {String} 服务的访问地址。如 http://localhost:8090 |
| options | {Object} 参数。 |
| eventListeners | {Object} 需要被注册的监听器对象。 |
processAsync: function( params )
开始异步执行转向耗费权重的更新 Parameters: params - {SuperMap.REST.UpdateTurnNodeWeightParameters} 更新服务参数
var updateTurnNodeWeightParam=new SuperMap.REST.UpdateTurnNodeWeightParameters({
nodeId:"106",
fromEdgeId:"6508",
toEdgeId:"6504",
weightField:"TurnCost",
turnNodeWeight:"50"
});
updateTurnNodeWeightService.processAsync(updateTurnNodeWeightParam);
释放资源,将引用资源的属性置空。
destroy: function()
开始异步执行转向耗费权重的更新 Parameters: params - {SuperMap.REST.UpdateTurnNodeWeightParameters} 更新服务参数
processAsync: function( params )