无法通过flex获取esri请求的结果

时间:2017-07-16 16:17:38

标签: json actionscript-3 flex arcgis esri

我发送了一个获取邮政编码的请求,但它会自动添加到发送的网址中:

geometry = {"ymin":-56716.2749875736,"xmax":91877.30799873594,"ymax":56716.2749875736,"xmin":-91877.30799873966}

当我从URL中删除上述文本时,它会得到正确的结果。

问题:我想知道如何将其从代码中删除,因为我没有将其添加到任何地方

我的代码:

mainUIComponent.promisingLocationsMap.zipCodeLayer.definitionExpression=buildMapQuery(false);
mainUIComponent.promisingLocationsMap.zipCodeLayer.url="https://services.arcgis.com/zmLUiqh7X11gGV2d/arcgis/rest/services/Canada_FSA_2014/FeatureServer/0";

发送内容:

https://services.arcgis.com/zmLUiqh7X11gGV2d/arcgis/rest/services/Canada_FSA_2014/FeatureServer/0/query?returnGeometry=true&outSR=102100&where=CFSAUID IN ('G9A' )&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&outFields=*&inSR=102100&returnDistinctValues=false&f=json&geometry={"ymin":-56716.2749875736,"xmax":91877.30799873594,"ymax":56716.2749875736,"xmin":-91877.30799873966}

它应该发送什么:

https://services.arcgis.com/zmLUiqh7X11gGV2d/arcgis/rest/services/Canada_FSA_2014/FeatureServer/0/query?returnGeometry=true&outSR=102100&where=CFSAUID IN ('G9A' )&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&outFields=*&inSR=102100&returnDistinctValues=false&f=json

0 个答案:

没有答案