Oneway字段更新后,arcgis NAserver服务为什么需要重启前端调用才能生效

Oneway字段控制道路单双向规则,我手动更新了道路数据中的Oneway字段,并重新构建了网络数据集。
但是前端调用的时候,更改的规则不能生效。
只有重启服务才能生效,怎么才能不重启服务就生效呢?
前端我用的arcgis api for js,这是我的参数代码
let routeParams = new RouteParameters({
stops: new FeatureSet(),
// pointBarriers: new FeatureSet(), // 抗阻点位
outSpatialReference: {
// autocasts as new SpatialReference()
wkid: 3857
},
// 为true时10.1版本的server会报错,10.0的server没有问题
returnDirections: true,
// returnStops: true
returnZ: false,
// f返回结果为中文 英文 en
// directionsLanguage: "zh_CN",
doNotLocateOnRestrictedElements: false, // 指定为false 则 restrictionAttributes才起作用
restrictionAttributes: ["Oneway"],
});
已邀请:

许丹石

赞同来自:

正如你的判断,这个问题跟前端基本不相关。
如果想要前端编写代码解决,可以调用此服务的启动接口和停止接口。接口地址为server的admin下的services

要回复问题请先登录注册