Skip to content

Commit

Permalink
Merge branch 'Esri#51/update-geocoder-event-handlers' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Feb 27, 2013
2 parents 2c9ea46 + 1704a20 commit b97ee0b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/com/esri/viewer/components/SingleLineSearch.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:components="com.esri.ags.components.*">
xmlns:esri="http://www.esri.com/2008/ags">
<fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.Map;
import com.esri.ags.components.Geocoder;
import com.esri.ags.components.supportClasses.GeocoderLocatorService;
import com.esri.ags.components.supportClasses.GeocoderMapService;
import com.esri.ags.components.supportClasses.GeocoderSearchResult;
Expand Down Expand Up @@ -501,9 +500,9 @@
map.infoWindow.show(point);
}
protected function geocoder_searchCompleteHandler(event:GeocoderEvent):void
protected function geocoder_resultSelectedHandler(event:GeocoderEvent):void
{
projectToMapSpatialReferenceAndShowResultOnMap(event.searchResult);
projectToMapSpatialReferenceAndShowResultOnMap(event.result);
}
private function projectToMapSpatialReferenceAndShowResultOnMap(searchResult:GeocoderSearchResult):void
Expand Down Expand Up @@ -729,11 +728,11 @@
]]>
</fx:Script>

<components:Geocoder id="geocoder"
left="0" right="0" top="0" bottom="0"
fault="geocoder_faultHandler(event)"
map="{map}"
searchComplete="geocoder_searchCompleteHandler(event)"
skinClass="com.esri.ags.skins.GeocoderSkin"
useDefaultLocator="false"/>
<esri:Geocoder id="geocoder"
left="0" right="0" top="0" bottom="0"
fault="geocoder_faultHandler(event)"
map="{map}"
resultAutoSelected="geocoder_resultSelectedHandler(event)"
resultSelected="geocoder_resultSelectedHandler(event)"
useDefaultLocator="false"/>
</s:Group>

0 comments on commit b97ee0b

Please sign in to comment.