|
POST
|
Jeremy, I you want anything other than general advice like, look at the Renderer.getSymbol and then the Symbol.createSwatch methods than you really need to provide specific details like what code are you using to get access to the renderer, or even better a stripped down sample of what you are attempting with the multiple renderers.
... View more
08-30-2010
02:32 PM
|
0
|
0
|
3620
|
|
POST
|
Carmen, If you are querying a 9.3 server and not a 10 server than ensure you set useAMF = false; on the queryTask.
... View more
08-30-2010
01:30 PM
|
0
|
0
|
795
|
|
POST
|
Richard, If you what to know how to do it without using adobes autogenerated code than all you have to do is this
private function getproject_result(evt:ResultEvent):void {
var pRslt:Object = evt.result;
}
<mx:WebService id="webService" wsdl="http://data.cmap.illinois.gov/ws/tip/tipservice.asmx?wsdl" showBusyCursor="true">
<mx:operation name="getproject"
resultFormat="object"
fault="getproject_fault(event);"
result="getproject_result(event);">
<mx:request><projectid>{sProjectId}</projectid></mx:request>
</mx:operation>
</mx:WebService>
... View more
08-30-2010
12:13 PM
|
0
|
0
|
1978
|
|
POST
|
Jesse, InfoCanvas, InfoTitle and InfoText are the only things in the CSS that are controlling the info popup.
... View more
08-30-2010
11:16 AM
|
0
|
0
|
579
|
|
POST
|
Davide, OK, helps to be specific. Add this //Loop though the map layers to find one that matches the searchwidgets selected layer
for each(var layer:* in map.layers)
{
//Check to see if this particular map service layer has the same url as
//the one selected by the searchWidget, minus the layer designator
//If the urls match then use the layer designator to get the appropriate
//layerDefinition and add it to the querys where clause
if(layer is ArcGISDynamicMapServiceLayer || layer is ArcGISTiledMapServiceLayer)
if(layer.url == queryLayer.substring(0,queryLayer.lastIndexOf("/"))){
if(layer.layerDefinitions)
{
query.where = layer.layerDefinitions[parseInt(queryLayer.substring(queryLayer.lastIndexOf("/")+ 1))];
trace(query.where);
}
}
}
... View more
08-29-2010
06:17 PM
|
0
|
0
|
1253
|
|
POST
|
Davide, Yes you can use existing layerDefinitions and just append them to your query as I demonstrate in this sample. <?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="Example - adding a layerDefinition to a query">
<esri:QueryTask id="queryTask"
showBusyCursor="true"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5" />
<esri:Query id="query" returnGeometry="true" outSpatialReference="{map.spatialReference}">
<esri:outFields>
<mx:String>*</mx:String>
</esri:outFields>
</esri:Query>
<mx:Script>
<![CDATA[
private function execQuery():void
{
//dyn.layerDefinitions[5] number five is the states layer that we are using in the queryTask.
query.where = "UPPER(STATE_NAME) = '" + txtInput.text.toUpperCase() + "' AND " + dyn.layerDefinitions[5];
queryTask.execute(query);
}
]]>
</mx:Script>
<mx:HBox width="100%" height="28" backgroundAlpha="1" backgroundColor="#B6B7C0"
verticalAlign="middle" paddingLeft="10" paddingRight="10" borderStyle="solid" borderThickness="1">
<mx:Label text="Query with definition expression" color="#000000"/>
<mx:TextInput id="txtInput" text="Mississippi" enter="execQuery()" color="#000000"/>
<!-- Use Spacer to push Button control to the right. -->
<mx:Spacer width="100%"/>
<mx:Button label="Search" click="execQuery()" color="#000000"/>
</mx:HBox>
<esri:Map id="map">
<esri:extent>
<esri:Extent xmin="-150" ymin="5" xmax="-50" ymax="68">
<esri:SpatialReference wkid="4326"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer
url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:ArcGISDynamicMapServiceLayer id="dyn"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer">
<esri:layerDefinitions>
<!-- Layers in the order 0..x of the map service -->
<mx:Array>
<mx:String></mx:String> <!-- Census block points -->
<mx:String></mx:String> <!-- Census block groups -->
<mx:String></mx:String> <!-- Counties -->
<mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String> <!-- Coarse Counties -->
<mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String> <!-- Detailed Counties -->
<mx:String><![CDATA[ AGE_UNDER5 + AGE_5_17 > AGE_50_64 + AGE_65_UP ]]></mx:String> <!-- States -->
</mx:Array>
</esri:layerDefinitions>
</esri:ArcGISDynamicMapServiceLayer>
<esri:GraphicsLayer id="myGraphicsLayer" graphicProvider="{queryTask.executeLastResult.features}"/>
</esri:Map>
</mx:Application>
... View more
08-29-2010
10:28 AM
|
0
|
0
|
1253
|
|
POST
|
Sangeetha, By default if the map is in a geographic coordinate system, then measurement will be in Meters. Look here for more details http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/LengthsParameters.html
... View more
08-29-2010
03:52 AM
|
0
|
0
|
760
|
|
POST
|
Tyrone, Yep definitely doable. I did this in .Net a long time ago. I don't know Java but I know you should be able to if I could do it in .Net http://forums.esri.com/thread.asp?c=158&f=2421&t=299116&mc=137#934254
... View more
08-28-2010
05:51 PM
|
0
|
0
|
448
|
|
POST
|
Todd, No Flash Builder is not required you can use Flex Builder 3 as long as you use the Flex 4.0 SDK and the AGS Flex 2.0 API. As far a documentation yes there is it is a little lacking as the Viewer is still in beta but here is the link. http://help.arcgis.com/en/webapps/flexviewer/help/index.html There are no tutorial videos that I am aware of.
... View more
08-28-2010
08:50 AM
|
0
|
0
|
539
|
|
POST
|
Phillip, my code already does that is indicated in the code below: private function widgetClosedHandler(event:Event):void
{
map.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
map.panEnabled = true;
map.cursorManager.removeCursor(map.cursorManager.currentCursorID);
setMapNavigation(null, null);
}
... View more
08-27-2010
03:46 AM
|
0
|
0
|
1488
|
|
POST
|
Jan, I have to correct what Alexander said in his post you CAN use Flex Builder 3 with the FlexViewer2.0 source as long as you are using the AGS Flex 2.0 API and the Flex 4.0 SDK in your Flex Builder environment. Of course you will want to upgrade to Flash Builder 4 eventually to take advantage of of it's great features.
... View more
08-27-2010
03:41 AM
|
0
|
0
|
1098
|
|
POST
|
Ian, Here is what I use for FlexViewer 2.0.
<basemaps>
<mapservice label="Streets" type="Bing" key="xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="true" alpha="1" style="road" culture="en-US"/>
<mapservice label="Aerial" type="Bing" key="Axxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="false" alpha="1" style="aerial" culture="en-US"/>
<mapservice label="Mixed" type="Bing" key="xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="false" alpha="1" style="aerialwithlabels" culture="en-US"/>
</basemaps>
and for non viewer app
<esri:VETiledLayer id="Streets" name="Streets" key="xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="true" alpha="1" culture="en-US" mapStyle="road"/>
<esri:VETiledLayer id="Aerial" name="Aerial" key="xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="false" alpha="1" culture="en-US" mapStyle="aerial"/>
<esri:VETiledLayer id="Mixed" name="Mixed" key="xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx" visible="false" alpha="1" culture="en-US" mapStyle="aerialWithLabels"/>
... View more
08-27-2010
03:35 AM
|
0
|
0
|
673
|
|
POST
|
Bjorn, Yep FlexViewer 2.0 is using DataGroup so it does not have an issue so TreeNinja you must be using 1.3 also right?
... View more
08-26-2010
01:48 PM
|
0
|
0
|
1807
|
|
POST
|
Jaclyn, Apache do not use a folder named inetpub that is for MS IIS you need to use htdocs folder instead.
... View more
08-26-2010
01:45 PM
|
0
|
0
|
1138
|
|
POST
|
Shawn, The samples are for users to learn how to doing things in code from scratch and are for instructional purposes. You should study the code and see what it is actually doing and then you can determine what portions of the code are necessary for inclusion in the FlexViewer.
... View more
08-26-2010
01:31 PM
|
0
|
0
|
1225
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 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 |
06-08-2026
06:27 AM
|