您好,参考范例http://iclient.supermap.io/examples/classic/editor.html#analysis_findPath和http://iclient.supermap.io/examples/classic/editor.html#analysis_trafficTransfer
请参考sql查询范例http://iclient.supermap.io/examples/classic/editor.html#query_queryBySQL,参数这块改成传参的形式,例如
var getFeatureParam, getFeatureBySQLService, getFeatureBySQLParams; var mc = document.getElementById("myInput").value; getFeatureParam = new SuperMap.REST.FilterParameter({ name: "Capitals@World", attributeFilter: "COUNTRY = '" + mc + "' or CAPITAL = '" + mc + "'" });