传送门 ☞ 轮子的专栏 ☞ 转载请注明 ☞ http://blog.csdn.net/leverage_1229
1数据流图
2FlexViewer
2.1Navigation.mxml
路径:src/widgets/Navigation/Navigation.mxml
全景小人按钮,当鼠标点击时回调ShowQuanJing函数。
<s:Button id="QuanJing" mouseDown="ShowQuanJing()" …>
添加鼠标弹起事件的监听,获取该事件交由onGetQuanJing函数处理。
private function ShowQuanJing():void
{
this.map.addEventListener(MouseEvent.MOUSE_UP, onGetQuanJing);
…
}
private function onGetQuanJing(event:MouseEvent):void
{
…
doQuery(m_center);
}
从ArcGIS Server检索出地图FeatureSet,解析其属性分派给QuanJingEvt.QUANJINGCHANGE事件处理。
private function doQuery(m_center:MapPoint):void
{
…
queryTask.execute(query, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet