|
POST
|
Melony, I never remember seeing a fix for this issue. Here is a thread that explains (sort of) why this happens. http://forums.esri.com/Thread.asp?c=158&f=2421&t=287234&mc=1#msgid892349
... View more
06-22-2010
03:44 PM
|
0
|
0
|
609
|
|
POST
|
Tracy, Here is a complete sample app that using find to get the state polygon and then uses that polygon in the spatial query to get the cities that intersect it. <?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="Find features in Map Layers"
styleName="plain">
<mx:Script>
<![CDATA[
import com.esri.ags.events.QueryEvent;
import com.esri.ags.Graphic;
import com.esri.ags.events.FindEvent;
import com.esri.ags.geometry.Geometry;
import com.esri.ags.tasks.Query;
import com.esri.ags.tasks.FeatureSet;
private function doFind():void
{
findTask.execute(myFindParams);
}
private function findCompleteHandler(event:FindEvent):void
{
myGraphicsLayer.clear();
var graphic:Graphic;
var query:Query = new Query();
resultSummary.text = event.findResults.length + " State Found using Find Task";
var resultCount:int = event.findResults.length;
for (var i:Number = 0; i < resultCount; i++)
{
query.returnGeometry = true;
query.outFields = ["CITY_NAME","POP1990"];
query.outSpatialReference = myMap.spatialReference;
graphic = event.findResults.feature;
query.geometry = graphic.geometry;
graphic.symbol = sfsFind;
myGraphicsLayer.add(graphic);
queryTask.execute(query);
}
}
private function queryCompleteHandler(event:QueryEvent):void
{
myGraphicsLayer.clear();
var fset:FeatureSet = event.featureSet;
resultSummary.text += " and " + fset.features.length + " cities found using spatial query."
for each (var graphic:Graphic in fset.features)
{
graphic.symbol = smsFind;
graphic.toolTip = graphic.attributes["CITY_NAME"] + " - Population: " + graphic.attributes["POP1990"]
myGraphicsLayer.add(graphic);
}
}
]]>
</mx:Script>
<!-- Symbol for Find Result as Point -->
<esri:SimpleMarkerSymbol id="smsFind" style="square" color="0xFFFF00" size="11" alpha="0.9">
<esri:SimpleLineSymbol color="0x000000"/>
</esri:SimpleMarkerSymbol>
<!-- Symbol for Find Result as Polygon -->
<esri:SimpleFillSymbol id="sfsFind" color="0xFFFF00" alpha="0.7"/>
<!-- Find Task -->
<esri:FindTask
id="findTask"
executeComplete="findCompleteHandler(event)"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"
/>
<!-- Query Task -->
<esri:QueryTask
id="queryTask"
executeComplete="queryCompleteHandler(event)"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0"
/>
<esri:FindParameters id="myFindParams"
returnGeometry="true"
contains="true"
searchText="{fText.text}"
layerIds="[2]"
searchFields="['STATE_NAME']"
/>
<mx:HBox width="100%" height="40" backgroundColor="0xDDDDFF" paddingTop="10" horizontalAlign="center">
<mx:Text text="Search for names of States:"/>
<mx:TextInput maxWidth="400" id="fText" enter="doFind()" text="Alabama"/>
<mx:Button label="Find" click="doFind()"/>
</mx:HBox>
<mx:Text id="resultSummary" height="15"/>
<esri:Map id="myMap">
<esri:extent>
<esri:Extent xmin="-126" ymin="24" xmax="-67" ymax="50">
<esri:SpatialReference wkid="4326"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISDynamicMapServiceLayer
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"/>
<esri:GraphicsLayer id="myGraphicsLayer"/>
</esri:Map>
</mx:Application>
... View more
06-22-2010
03:08 PM
|
0
|
0
|
2028
|
|
POST
|
Darryl, You have to set the width of both the banner.mxml and the controller.mxml 1. in the index.mxml change the existing line to this one <controller><Controller id="control" left="20" top="20" right="30" width="100%"/></controller> 2. in the Banner.mxml add width ="100%" to the top canvas.
... View more
06-22-2010
11:51 AM
|
0
|
0
|
1478
|
|
POST
|
Charlie, OK now I see what you are talking about. That is the new default behavior of the AGS Flex API 1.3. It allows you to pan the map while having a draw tool activated so you don't have to switch tools all the time. Yes, several people are upset about this new default.
... View more
06-22-2010
10:57 AM
|
0
|
0
|
639
|
|
POST
|
Brad, When you get the spinning clock that usually means that the swf the the config.xml has specified is not there, or you have some errors in the code. 1. check your bin-debug folder and see if the swf is there for that widget. 2. check the problems window in flex builder for error (not warnings).
... View more
06-22-2010
10:28 AM
|
0
|
0
|
1796
|
|
POST
|
Sandeep, The way I have the code setup you have to list the link field in the fields list as well linkfield list in the xml.
... View more
06-22-2010
08:56 AM
|
0
|
0
|
1761
|
|
POST
|
Charlie, Are you saying that you added the additional lines to the enableMapAction in your MapManager.mxml and it is still not working?
... View more
06-22-2010
08:18 AM
|
0
|
0
|
2557
|
|
POST
|
sofoo, The issue is that the CIRGIS parcel map service is not a tiled map service like you are try to use it as. If you enter http://www.cirgis.org/ArcGIS/rest/services/County_ParcelsWGS84/MapServer to your browsers address bar you will notice the service directory page list the Single Fused Map Cache = false. For a tiled map service it would be Single Fused Map Cache = true and there would be a list of Levels of Detail. Use ArcGISDynamicMapServiceLayer instead.
... View more
06-21-2010
05:03 PM
|
0
|
0
|
1104
|
|
POST
|
Shawn, The setup needs to be run on the server. The line number might not be 402 but it will be in the LiveMapsWidget.mxml.
... View more
06-21-2010
03:05 PM
|
0
|
0
|
2618
|
|
POST
|
Lee, Here is the thread http://forums.esri.com/Thread.asp?c=158&f=2421&t=286116&mc=13#890591
... View more
06-21-2010
02:05 PM
|
0
|
0
|
913
|
|
POST
|
Brad, So is it safe to assume you ran clean again after you deleted the swfs from your src folder? Is the widget that is producing the spinning clock listed in the Flex Projects modules list? If so try removing it and then re-adding it to the list.
... View more
06-21-2010
12:27 PM
|
0
|
0
|
1796
|
|
POST
|
Richard, Nothing much to figure out that you have not already... Domains values are not returned from REST in ArcGIS Server 9.3.1 and below. The domain values will be available in ArcGIS Server 10. There is no workaround for ArcGIS Server 9.3.
... View more
06-21-2010
10:30 AM
|
0
|
0
|
460
|
|
POST
|
Holly, Yes cached map services have to have the same tiling scheme.
... View more
06-21-2010
10:25 AM
|
0
|
0
|
1145
|
|
POST
|
Shawn, Not Exactly... The LODs are only used if you are using a cached map service, as your map service is not cached there is no LODs (which is good). So if you get rid of ESRI's ccached map services then you will no longer have any issue of be confined to a certain scale limit.
... View more
06-21-2010
08:01 AM
|
0
|
0
|
884
|
|
POST
|
Shawn, So if your aerials are displaying correctly with the other base maps then all you have to do is add more LODs to the map. Because you are using cached ESRI map services the map is constrained to those Levels of Display (LODs). If you want to zoom in beyond those than you have to add more LODs beyound what the cached map service has. There is several threads on this http://forums.esri.com/Thread.asp?c=158&f=2421&t=280475&mc=34#869373
... View more
06-21-2010
06:57 AM
|
0
|
0
|
884
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|