我像SQL查询的demo一样引入上述Js文件发现此文件包含很多其他js文件的引入,写法是js引入,我要怎样才能替换成本地路径呢???还有就是SQL查询的一些变量问题,都是定义在外部文件中的,我如果实现本地SQL查询该如何是好呢?
buttonSearch.onclick = function doSqlQuery(searchCarid){
var getFeatureParam, getFeatureBySQLService, getFeatureBySQLParams;
getFeatureParam = new SuperMap.REST.FilterParameter({
attributeFilter: searchCarid
});
getFeatureBySQLParams = new SuperMap.REST.GetFeaturesBySQLParameters({
queryParameter: getFeatureParam,
toIndex : -1,
datasetNames: ["二维数据:" + "Building"]
});
var url = 'http://192.168.100.95:8090/iserver/services/data-LanDaErYuanTingCheChang22/rest/data';
getFeatureBySQLService = new SuperMap.REST.GetFeaturesBySQLService(url, {
eventListeners: {
"processCompleted": onQueryComplete,
"processFailed": processFailed
}
});
getFeatureBySQLService.processAsync(getFeatureBySQLParams);
}
function processFailed(queryEventArgs){
alert('查询失败!');
}