|
POST
|
How to add WMS servis to arcgis api for flex? see esri samples http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ExtendDynamicLayer_WMS
... View more
03-19-2011
10:47 AM
|
0
|
0
|
525
|
|
POST
|
Sounds like a data problem... Have you checked your MXD to ensure the datasources are valid ? Are you using SDE, FGDB, PGDB ? Drew
... View more
03-09-2011
04:08 PM
|
0
|
0
|
772
|
|
POST
|
There are many samples on how to use a gp service provided by ESRI. Below is the link to the ESRI Flex API samples. Take a look at the "Geoprocessor Task" category in the link below. ESRI Flex Samples. http://help.arcgis.com/en/webapi/flex/samples/index.html Andrew
... View more
03-09-2011
02:30 PM
|
0
|
0
|
322
|
|
POST
|
I need to create a widget to show all the data of a ArcGIS map server; need to create a comboBox so that all the city's population information can show up in it. Should i use <mx WebService>, or should I use ESRI:query? If I use query, each time I have query according to city name, that means I can only get one city's population info each time. But I need all of them. Thanks! You can use the ESRI query. If you set the where clause to equal 1=1 it will always be true and send you all the data back. Here is a sample
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:s="library://ns.adobe.com/flex/spark"
pageTitle="Query Task Sample">
<s:layout>
<s:VerticalLayout horizontalAlign="center" paddingTop="25"/>
</s:layout>
<fx:Declarations>
<esri:QueryTask id="queryTask"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5"
useAMF="false"/>
<esri:Query id="query"
outFields="[STATE_NAME,STATE_FIPS,SUB_REGION,STATE_ABBR,POP2000,POP2007]"
returnGeometry="false"
where="1=1"/>
</fx:Declarations>
<s:Panel title="Get All Results">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:HGroup verticalAlign="middle">
<s:Button click="queryTask.execute(query);" label="Get All"/>
</s:HGroup>
<mx:DataGrid id="resultsGrid"
dataProvider="{queryTask.executeLastResult.attributes}"
visible="{queryTask.executeLastResult != null}">
<mx:columns>
<mx:DataGridColumn dataField="STATE_NAME" headerText="State Name"/>
<mx:DataGridColumn dataField="SUB_REGION" headerText="Region"/>
<mx:DataGridColumn dataField="STATE_FIPS" headerText="FIPS"/>
<mx:DataGridColumn dataField="STATE_ABBR" headerText="Abbreviation"/>
<mx:DataGridColumn dataField="POP2000" headerText="Population 2000"/>
<mx:DataGridColumn dataField="POP2007" headerText="Population 2007"/>
</mx:columns>
</mx:DataGrid>
</s:Panel>
</s:Application>
Drew
... View more
03-09-2011
02:26 PM
|
0
|
0
|
636
|
|
POST
|
I have code that displays an ESRI tiles map service correct but when I try to display a dynamic map which is published locally it won't display. I've tested that the map does indeed display when I use a simple statement as follows. <esri:Map> <esri:ArcGISDynamicMapServiceLayer url="http://sarserver/MapSAR_Server/rest/services/ANF/MapServer"/> </esri:Map> However when I try the following I get a blank screen, might this be as I'm attempting to display multiple dynamic services? <esri:Map id="myMap" level="14" load="myMap_loadHandler(event)" width="100%" height="100%"> <esri:ArcGISDynamicMapServiceLayer url="http://sarserver/MapSAR_Server/rest/services/ANF/MapServer"/> <esri:ArcGISDynamicMapServiceLayer id="assignmentsLayer" visible="{toggleAssignments.selected}" alpha=".7" url="http://sarserver/MapSAR_Server/rest/services/MapSAR_Assignments_Server/MapServer" /> </esri:Map> Thanks in advance Jon First I would check if the service is viewable in the rest services JavaScript viewer. You can do so at the below URL: http://sarserver/MapSAR_Server/rest/services Second, I would check if the layers are visible at level="14". Do you have min or max scale levels set in the mxd (or msd). Try removing level="14" and see what comes up. Finally, I would check to see whats coming back from the server using FireBug or Fiddler. Drew
... View more
03-09-2011
02:18 PM
|
0
|
0
|
772
|
|
POST
|
What do you mean by "not using any services"? If you are using ArcGIS Server, I suggest using the geometry service to buffer a location by 50 KM. Buffer sample: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=BufferSample
... View more
03-06-2011
12:18 PM
|
0
|
0
|
2023
|
|
POST
|
Steven, ESRI has quite a few samples on how to query data from a map service. Below is the URL to all their samples. I suggest looking at the "Query Task" sample specifically. All Samples - (Query Task samples listed in the left panel): http://help.arcgis.com/en/webapi/flex/samples/index.html Andrew
... View more
03-06-2011
12:02 PM
|
0
|
0
|
374
|
|
POST
|
Drew, Any way to work with degrees minutes seconds in your widget? Thanks, ~ Dan Daniel, That might be possible. I will look into it if I do another release. Thanks for the suggestion! Drew
... View more
02-28-2011
05:35 PM
|
0
|
0
|
3702
|
|
POST
|
I would not try and move the InfoWindow, but try and pan the map up instead. This should move the InfoWindow too. The map component has some decent methods that might help detect the screen coordinates. See the below map methods to help with your code. toMap(screenPoint:Point):MapPoint Converts a screen point to a map point. toMapFromStage(stageX:Number, stageY:Number):MapPoint Converts the global stage coordinates to a map point. toScreen(mapPoint:MapPoint):Point Converts a map point to a screen point. Map Component URL: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html Drew
... View more
02-28-2011
02:58 PM
|
0
|
0
|
468
|
|
POST
|
If you are using the ESRI Flex Viewer, my widget should be able to help you out. If you are not using the ESRI FLex Viewer you can use the source as an example. Widget Link (source included) http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e Drew
... View more
02-28-2011
02:53 PM
|
0
|
0
|
1415
|
|
POST
|
Hi Drew, I've found out what it's happening. The data frame is ED50, but my service is ETRS89, and when you load my service in Arcmap, it doesn't apply any transformation by default (see attached screenshot1). However if I select the correct transformation method the location is fine (see attached screenshot2, we have a customized transformation that is more accurate, but you can test with ED_1950_To_ETRS_1989_7). I don't know how difficult is you include that in your widget, but I think it should be able to specify a coordinate system transformation method. What do you think of about? Thanks very much, Pedro. Pedro , Unfortunately the ESRI Flex API does not allow me to define a transformation method. So I don't know if its possible to fix this using the Flex API. I will dig around a little more to see whats possible, but I am doubtful right now. Drew
... View more
02-27-2011
06:25 PM
|
0
|
0
|
3702
|
|
POST
|
Hi Drew, I'm totally sure about the coordinates I've provided you. Because the original orto (aerial image) is in ED50 and I've got the coordinates with ArcMap. Besides, even the location in ETRS89 that your widget provides is not totally accurate because the coordinates are the center of the traffic circle and your widget in ETRS89 displays the icon a little displaced (about 3 meters). Thanks. Pedro, I tested your numbers with your service in ArcMap and I think the widget is working fine. I would double check to make sure the numbers are correct. Here is how I tested your numbers. - Create a new map document. - Set the data frame to be ED_1950_Zone_30N - Add your map service in - Go to Edit->Go to XY - Set the Units to Meters from the small drop down menu - Enter your numbers : x=664269, y=4206813 - Zoom to point. The attached shows my result (same as widget) Let me know what happens. Drew
... View more
02-24-2011
05:58 PM
|
0
|
0
|
4262
|
|
POST
|
Hi Drew, I'm facing a weird bug with your widget. It work fine until yesterday, when suddenly the option "Go to XY coordinates" shows always this message "Error projecting coordinates". The other tools included like copy to clipboard an project coordinates work well, the trouble in only with the Go to option. I use my own geometry service, then i switch for the ESRI geometry service but nothing happens. In addition the viewshed widget don't work since yesterday either. Could be an Flex upgrade that cause the bug?, my other widgets work fine and like said before the only tool broken is Go To XY. Thanks in advance for any help PD. Sorry for my bad english. Esteban Koch Esteban, It sounds like something else has broken outside of the widget. If you have an external version of your application I can assist with debugging it. If not, I suggest using Firebug or some other network traffic tool to see whats failing. The error you see is when the geometry service fails. If you switched it to the ESRI geometry service I suggest making sure your browsers cache is clear. Sometimes the browser caches the config files and will still load your old config. Are you familiar on how to clear your browsers cache ? Let me know if you get it going. Thanks, Drew
... View more
02-24-2011
04:22 PM
|
0
|
0
|
4262
|
|
POST
|
Hi Drew, I've created a sample for you can test it, in http://iderm.imida.es/drew The following coordinate (x=664157, y=4206606) in coordinate system name="ETRS89 UTM Zona 30" wkid="25830", is the center of a traffic circle that you can see. And the following coordinate (x=664269, y=4206813) in coordinate system name="ED50 UTM Zona 30" wkid="23030" is the same location, however your widget displays it moved. Regards. Pedro, I tested the numbers you supplied and you are correct, but the program is not fudging the location at all. The geometry service is providing the projected coordinate and the code is placing the result on the map. How certain are you that the numbers you supplied are the exact location ? According to my widget the location in ED50 (23030) would be X: 664163.36 Y: 4206677.56 which is a little different than yours ED50 location. What software supplied you with the original coordinates ? Drew
... View more
02-23-2011
03:54 PM
|
0
|
0
|
4262
|
|
POST
|
Great widget. However I've found a problem using Goto XY Custom, I hope you can clarify me. In my place I've the following lines in xml file: ... <coordinateSystem name="ETRS89 UTM Zona 30" wkid="25830" decimals="2"/> <coordinateSystem name="ED50 UTM Zona 30" wkid="23030" decimals="2"/> ... But I've noticed that coordinates in wkid=25830 works fine (that is, the location is accurate), however coordinates in wkid=23030 are moved about 170 meters, so that isn't suitable. Any idea? Pedro, Do you have a sample running online I can test with? Drew
... View more
02-22-2011
04:11 AM
|
0
|
0
|
4262
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|