|
POST
|
Kenneth, Are your layers on a different server from which you are serving the Flex application? If so, you will need a crossdomain file on the web server, see: http://help.arcgis.com/en/webapi/flex/help/index.html#/Using_crossdomain_xml/017p0000001w000000/ Regards Anthony
... View more
10-22-2012
11:11 AM
|
0
|
0
|
873
|
|
POST
|
Philip, You have to create a graphic from a point and a text symbol then add it to a graphics layer, see below which adds the text "some Text" to a point at 64,31:
var PointAMarker:MapPoint = new MapPoint(64,31,map.spatialReference);
var graphicsLayer:GraphicsLayer = new GraphicsLayer();
var txtSymA:TextSymbol = new TextSymbol();
txtSymA = new TextSymbol("Some Text",null,0x000000,true,0x000000,true,0xffffff,"middle",0,0,0);
txtSymA.textFormat = txtFormat;
var graphicPointA:Graphic = new Graphic(PointAMarker, txtSymA);
graphicsLayer.add(graphicPointA);
map.addLayer(graphicsLayer);
Hope this helps Anthony
... View more
10-22-2012
10:47 AM
|
0
|
0
|
1638
|
|
POST
|
Philip, What happens if you add the graphic this way: var g:Graphic = new Graphic(new MapPoint(new MapPoint(38.0594, 81.1121,wgs))); Regards Anthony
... View more
10-22-2012
10:33 AM
|
0
|
0
|
2344
|
|
POST
|
Philip, Assign the lat/long coords to two separate variables or to an array then use these variables when creating your mappoint, ie if you have a string called coordstring set to "38.0594,81.1121" var coords:Array = coordstring.split(","); var g:Graphic = new Graphic(new MapPoint(new MapPoint(coords[0],coords[1],wgs))); grLayer.add(g); Regards Anthony
... View more
10-21-2012
09:43 AM
|
0
|
0
|
2344
|
|
POST
|
Tim, Just to let you know out of interest, I have just tried both your sites on the IPad 2 and they both work fine, including the movie. Regards Anthony
... View more
10-19-2012
06:52 AM
|
0
|
0
|
1284
|
|
POST
|
Ming, You can use the Haversine formula to calculate the distance, here is a site that has the code in various languages: http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe You will find that the haversine formula can have an error of nearly 3%. A better formula to use is the Vincenty formula which is more accurate, there are loads of examples out there: http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/ regards Anthony
... View more
10-17-2012
11:15 AM
|
0
|
0
|
1066
|
|
POST
|
Nasif, Ok I see what you are trying to do my misunderstanding. The problem your are going to have is I don't think you can use scripting (i.e. JavaScript) inside the CDATA in the config file so you have no way creating a conditional statement on the value of the name field. I would say this cannot be achieved using the popup config files, unless anyone out there can has got scripting to work in the popup config? Sorry Anthony
... View more
10-17-2012
10:48 AM
|
0
|
0
|
922
|
|
POST
|
Winston, Glad you got it working sorry about the quotes, that will teach me for posting from my iPad Regards Anthony
... View more
10-16-2012
11:06 AM
|
0
|
0
|
3034
|
|
POST
|
Nasif, Remove one of your CDATA tags and place name in the href area: <?xml version="1.0" ?> <configuration> <title>{NAME}</title> <precision> </precision> <description> <![CDATA[<a href='{NAME}' target='_blank'>Click Here</a>]]> </description> <fields> <field name="NAME"/> <field name="TYPE"/> </fields> <showattachments>true</showattachments> </configuration> Regards Anthony
... View more
10-16-2012
10:28 AM
|
0
|
0
|
922
|
|
POST
|
Ming, In the Nautical Solution Extension you can use the Production Feature Builder to create great circle distances: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0106000001rr000000 Link to the extension site, not sure how much it is but you can download a 60 day trial: http://www.esri.com/software/arcgis/extensions/nautical-solution/what-you-get Regards Anthony
... View more
10-16-2012
10:09 AM
|
0
|
0
|
1066
|
|
POST
|
xintaoliu The full source code for the viewer can be found here: https://github.com/ArcGIS/ArcGISViewerForFlex/tags Regards Anthony
... View more
10-15-2012
12:33 PM
|
0
|
0
|
467
|
|
POST
|
All, With Roberts help an updated version for use with 3.0 has been uploaded to the resource center. The update also has a few additions and bug fixes: [INDENT]�?�Bug fixes for one more graphic being added to the graphics layer with 0,0 coordinates and the first point not having a click handler. �?�Esri popup used to display attributes. �?�Ability to specify a link field and alias. �?�Zoom to extent of features when feature panel clicked [/INDENT] http://www.arcgis.com/home/item.html?id=b8d2f6a9063e44669eddfdd2d32244e8 Regards Anthony
... View more
10-15-2012
11:50 AM
|
0
|
0
|
2486
|
|
POST
|
Andrew, The help states the following: SELECT * FROM forms the first part of the SQL expression and is automatically supplied for you. Because you are selecting columns as a whole, you cannot restrict the SELECT to return only some of the columns in the corresponding table; thus, the hard-coded SELECT * syntax. For this reason, keywords like DISTINCT, ORDER BY, GROUP BY, and so on, cannot be used readily in a SQL query except when using subqueries. So what you could try and do (I must warn I have not tried this) is create a sub query that performs the limit then use the IN command to select out the records that you need, I.e: objectID IN (select objectID from (select objectID, column from 'table' where 'expression' order by 'column' limit 100)) I say don't know if this will work but you never know Regards Anthony
... View more
10-14-2012
09:21 AM
|
0
|
0
|
1773
|
|
POST
|
Peter, Are you wanting to try and use Dropbox to host your application, if so, this is possible just copy your application up to the public area on Dropbox then share the public address to your index.html. I have uploaded the sample flex viewer to my Dropbox account to show it working: http://dl.dropbox.com/u/25829160/Flexviewer/index.html Regards Anthony
... View more
10-13-2012
12:00 PM
|
0
|
0
|
873
|
|
POST
|
Angie, This presentation from the User Conference suggests that 3.1 will be out in the Fall (so any time now). It suggests some enhancements but not much detail: http://proceedings.esri.com/library/userconf/proc12/tech-workshops/tw_335.pdf Bjorn can you release any more detail? Regards Anthony
... View more
10-13-2012
09:40 AM
|
0
|
0
|
644
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-01-2016 01:57 PM | |
| 1 | 02-04-2013 01:05 AM | |
| 1 | 04-11-2013 09:53 PM | |
| 1 | 04-03-2013 09:42 AM | |
| 1 | 07-25-2014 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|