|
POST
|
If you do want the help of a 3rd party framework, I'd recommend looking at the Swiz Framework: http://swizframework.org/
... View more
12-14-2010
07:22 AM
|
0
|
0
|
1911
|
|
POST
|
Many of the classes are designed to be extensible. You can create your own layers, symbols, renderers, clusterers, tasks, etc. There's two samples of custom layers under "Extend API" at: http://help.arcgis.com/en/webapi/flex/samples/index.html The code is written in ActionScript and it can just go into your own src tree.
... View more
12-14-2010
07:18 AM
|
0
|
0
|
973
|
|
POST
|
The Security error is being thrown because they don't have a crossdomain.xml file on their server. You can either configure the layer to use a proxy or have it skip getting the capabilities. e.g. <layer label="Contours" type="wms" visible="true" visiblelayers="hypsography" url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" skipgetcapabilities="true" version="1.1.1"/> The skipgetcapabilities and version attributes have been added to the layer tag doc. The WMSLayer uses the map's SpatialRefernce so you can set wkid="900913" on the map tag.
... View more
12-13-2010
01:37 PM
|
0
|
0
|
2564
|
|
POST
|
Yes, you can display layers in any projection but you can't mix cached layers that are in different projections.
... View more
12-13-2010
11:50 AM
|
0
|
0
|
576
|
|
POST
|
I was thinking you could change your submitComplete to be like this: function submitComplete(gpResult:JobInfo, token:Object = null):void { if (!requestCancelled) { serviceAreaService.getResultData(gpResult.jobId, "serviceArea_shp", new AsyncResponder(submitResult, onFault)); } }
... View more
12-13-2010
11:49 AM
|
0
|
0
|
966
|
|
POST
|
Glad you like it 🙂 Unfortunately the server doesn't have any options on what it returns to us: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/mslegend.html
... View more
12-13-2010
11:43 AM
|
0
|
0
|
714
|
|
POST
|
A couple of other options are: 1. Create a custom renderer by extending the Renderer base class and overwriting the getSymbol() function. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html 2. Listen for extentChange events on the Map and update the symbology based on the Map's current scale.
... View more
12-13-2010
11:39 AM
|
0
|
0
|
973
|
|
POST
|
Here's an example: <layer label="US" type="wms" visible="true" visiblelayers="0,2" url="http://sampleserver1.arcgisonline.com/arcgis/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer"/> There's more options available. See: http://help.arcgis.com/en/webapps/flexviewer/help/layer_tag.htm
... View more
12-13-2010
11:26 AM
|
0
|
0
|
2564
|
|
POST
|
The ArcGIS API for Flex 2.x requires the Adobe Flex SDK 4.x.
... View more
12-13-2010
11:20 AM
|
0
|
0
|
1182
|
|
POST
|
There isn't a cancel method in the API, but one approach could be to use event listeners instead of responders and then you could remove the listener and it wouldn't be called. Another approach could be to keep using responders but create a class member like private var requestCancelled:Boolean that you check in your submitComplete().
... View more
12-10-2010
07:58 AM
|
0
|
0
|
966
|
|
POST
|
The API now includes a WMSLayer so the sample serves more to show how to extend the DynamicMapServiceLayer. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/WMSLayer.html http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=WMS If you still want to compile it, then you would use mxmlc since that's what you need to use to build a swf. You may find the ant tasks easier to work with. Here's some links to Adobe's doc: Flex compilers: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ffd.html Ant tasks: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf678b2-8000.html
... View more
12-10-2010
07:48 AM
|
0
|
0
|
532
|
|
POST
|
You can use the FeatureLayer with ArcGIS Server 9.3. It won't get its renderer from the server so you'll need to configure that in your app. Here's one sample showing a renderer set on a GraphicsLayer which you can switch for a FeatureLayer: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=Renderer Here's another sample showing a FeatureLayer using a 9.3 service and a renderer: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayer_InfoWindow You can modify the renderer at runtime and then have the FeatureLayer redraw by resetting its renderer property.
... View more
12-10-2010
07:35 AM
|
0
|
0
|
2043
|
|
POST
|
Maybe on the next extentChange event you could reset the selectedIndex of the ComboBox since it's no longer "valid".
... View more
12-09-2010
01:25 PM
|
0
|
0
|
1131
|
|
POST
|
What do you get if you just use: <map top="40"> <basemaps> <layer label="Pre-Quake Imagery" type="dynamic" visible="true" alpha="1" url="http://MyServer/ArcGIS/rest/services/CCC_PreQuake_Imagery/MapServer" /> </basemaps> Is your Viewer also at http://MyServer/...
... View more
12-09-2010
12:13 PM
|
0
|
0
|
1219
|
|
POST
|
Here's a couple of samples: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=RouteBarriers http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=TextAttribute
... View more
12-09-2010
10:56 AM
|
0
|
0
|
527
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 01:13 PM | |
| 2 | 03-06-2017 02:12 PM | |
| 1 | 06-22-2010 12:01 PM | |
| 1 | 08-06-2012 09:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2025
04:18 PM
|