|
POST
|
See: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/Layer.html#event:updateEnd
... View more
12-09-2010
10:36 AM
|
0
|
0
|
335
|
|
POST
|
This works for me too: <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags">
<esri:Map id="map">
<esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi">
<esri:visibleLayers>
<s:ArrayList>
<fx:String>nexrad-n0r</fx:String>
</s:ArrayList>
</esri:visibleLayers>
</esri:WMSLayer>
</esri:Map>
</s:Application> Can you show more of your Map code like what is the base layer and what is the Map's extent and spatial reference?
... View more
12-08-2010
12:47 PM
|
0
|
0
|
635
|
|
POST
|
If you put them outside of a widgetcontainer, then they won't appear in the HeaderController.
... View more
12-08-2010
10:53 AM
|
0
|
0
|
592
|
|
POST
|
In my sample I'm putting the Graphics into the dataProvider. You're creating new Objects with a data property that points to the Graphic, so in your change handler try: var extent2:Extent = Graphic(cmb.selectedItem.data).geometry.extent;
... View more
12-08-2010
10:29 AM
|
0
|
0
|
2204
|
|
POST
|
Here's a sample too: <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags">
<fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.events.MapEvent;
import com.esri.ags.events.QueryEvent;
import com.esri.ags.geometry.Extent;
import com.esri.ags.tasks.supportClasses.Query;
import mx.collections.ArrayList;
import spark.events.IndexChangeEvent;
protected function map_loadHandler(event:MapEvent):void
{
var query:Query = new Query();
query.outFields = [ "STATE_NAME" ];
query.outSpatialReference = map.spatialReference;
query.returnGeometry = true;
query.where = "1=1";
queryTask.execute(query);
}
protected function queryTask_executeCompleteHandler(event:QueryEvent):void
{
ddList.dataProvider = new ArrayList(event.featureSet.features);
}
protected function ddListLabelFunction(item:Graphic):String
{
return item.attributes["STATE_NAME"];
}
protected function ddList_changeHandler(event:IndexChangeEvent):void
{
var stateExtent:Extent = Graphic(ddList.selectedItem).geometry.extent;
map.extent = stateExtent
// make sure the whole extent is visible
if (!map.extent.contains(stateExtent))
{
map.level--;
}
}
]]>
</fx:Script>
<fx:Declarations>
<esri:QueryTask id="queryTask"
executeComplete="queryTask_executeCompleteHandler(event)"
showBusyCursor="true"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5"
useAMF="false"/>
</fx:Declarations>
<s:controlBarContent>
<s:DropDownList id="ddList"
width="200"
change="ddList_changeHandler(event)"
labelFunction="ddListLabelFunction"
prompt="Choose a state to zoom to"/>
</s:controlBarContent>
<esri:Map id="map" load="map_loadHandler(event)">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
</esri:Map>
</s:Application>
... View more
12-08-2010
09:16 AM
|
0
|
0
|
2204
|
|
POST
|
What is your <layer> tag? Is your Viewer url on the same host and domain as your ArcGIS Server? If not, you'll need to add a crossdomain.xml file to your ArcGIS Server. Also, you can use a tool like HttpFox to see what requests are being make and if any of them are failing.
... View more
12-08-2010
08:41 AM
|
0
|
0
|
668
|
|
POST
|
Unfortunately we have not yet found a workaround for the Design Mode errors.
... View more
12-08-2010
08:31 AM
|
0
|
0
|
3429
|
|
POST
|
Does this help? http://help.arcgis.com/en/webapps/flexviewer/help/widgets/layerlist_widget.htm
... View more
12-07-2010
01:07 PM
|
0
|
0
|
668
|
|
POST
|
The initial warnings will be fixed in the next release but the Design Mode errors will still be an outstanding issue. You can download the 4.0 SDK from: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
... View more
12-07-2010
09:30 AM
|
0
|
0
|
3429
|
|
POST
|
LayerTOC extends DataGrid and set's its dataProvider in its setDataProvider() function. It's set to an Array of LayerInfo classes. You could extend LayerInfo to add another property to it.
... View more
12-06-2010
01:22 PM
|
0
|
0
|
2418
|
|
POST
|
This looks OK. Is it calling onResult or onFault? Have you tried using a tool like HttpFox to verify the request and response?
... View more
12-06-2010
08:58 AM
|
0
|
0
|
529
|
|
POST
|
gLayer.remove(myGraphicMarker) requires the passed in Graphic to be the same instance as a Graphic already inside the GraphicsLayer otherwise it doesn't know which one to remove. It looks like you're creating a new instance which won't work. You could instead loop through the graphicsProvider to find the instance you want to remove and then pass that to gLayer.remove().
... View more
12-06-2010
08:50 AM
|
0
|
0
|
524
|
|
POST
|
You may be calling it too early. Is myFeatureLayer loaded? What is the line of code where the error occurs?
... View more
12-03-2010
11:00 AM
|
0
|
0
|
6263
|
|
POST
|
Yes, it should be working with Flash Builder 4. What part isn't working for you?
... View more
12-01-2010
03:35 PM
|
0
|
0
|
449
|
|
POST
|
You can also just use this after the map loads: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#reorderLayer()
... View more
12-01-2010
12:41 PM
|
0
|
0
|
932
|
| 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
|