|
POST
|
Tony, Are you saying you want to draw the graphics from the flex map onto a print your generate from a .NET web service? Drew
... View more
07-02-2010
03:04 AM
|
0
|
0
|
724
|
|
POST
|
Probably. We are thinking to probably split it into - Flex Viewer (people working with configuration files) - Flex API (including people using Flash Builder to work with the source code for the viewer) What do you (and others) think? I think this is a good idea!
... View more
06-30-2010
01:00 PM
|
0
|
0
|
1169
|
|
POST
|
FYI: window.showModelessDialog will only work in IE.
... View more
06-15-2010
03:36 PM
|
0
|
0
|
1051
|
|
POST
|
Its a little different than I originally explained. Below is a sample app that accepts a url param..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="init()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:esri="http://www.esri.com/2008/ags">
<mx:Script>
<![CDATA[
import com.esri.ags.events.MapEvent;
import mx.controls.Alert;
[Bindable]
private var mapURL:String;
private function init():void
{
var search:String = ExternalInterface.call("location.search.substring", 1);
var urlVars:URLVariables = new URLVariables();
if (search && search.length > 0)
{
urlVars.decode(search);
mapURL = urlVars.MAP
myMapLayer.url = mapURL;
}
}
]]>
</mx:Script>
<esri:Map id="map" x="10" y="78" height="682">
<esri:ArcGISDynamicMapServiceLayer id="myMapLayer" x="254" y="294"/>
</esri:Map>
</mx:Application>
You call this with a URL containing... .... ?MAP=http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer Hope this helps. Drew
... View more
06-15-2010
10:03 AM
|
0
|
0
|
859
|
|
POST
|
I have seen this before. To fix it simply remove the DOCTYPE markup out of your page... REMOVE THIS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hopefully that solves it. Drew
... View more
06-14-2010
07:40 AM
|
0
|
0
|
3010
|
|
POST
|
Graham, You can use the ExternalInterface mentioned but maybe a simpler way would to pass the URL as a query string instead. ASP.NET sample Response.Redirect("CAWDAPT_FLEXAPP/FlexApp.aspx?MAP=http://www.abc.com/ArcGIS/rest/services/XYZ/MapServer") Then on the Flex side I believe you can get the query string parameter (MAP) like so..
var mapURL:String = Application.application.parameters.MAP;
..Or just pass the Map Service name as a query string and format it to a proper AGS map URL on the Flex side... i.e. Response.Redirect("CAWDAPT_FLEXAPP/FlexApp.aspx?MAP=XYZService") Drew
... View more
06-10-2010
06:10 AM
|
0
|
0
|
859
|
|
POST
|
You were very close. In your sample you had a syntax error and the date format was a little off from what you wanted. Below is the code that should get you the correct value. (Replace my hard coded date with your data.)
<mx:DateFormatter id="time" formatString="MMM DD,YYYY H:NN"/>
<mx:Label text="Date:"/>
<mx:Label text="{time.format('Thu Jun 03 18:13:12 CDT 2010')}" fontWeight="bold" y="10" width="318"/>
You can find more info on the Flex 3.5 DateFormatter here: http://livedocs.adobe.com/flex/3/langref/mx/formatters/DateFormatter.html Drew
... View more
06-10-2010
04:32 AM
|
0
|
0
|
697
|
|
POST
|
Tony, Here is a sample that shows the google code to get a street view object. View source to see the little JS needed. http://code.google.com/apis/maps/documentation/javascript/v2/examples/streetview-simple.html The API and more information can be found here http://code.google.com/apis/maps/documentation/javascript/v2/services.html#Streetview Drew
... View more
06-09-2010
04:54 AM
|
0
|
0
|
995
|
|
POST
|
Mohamed, Even before you start your flex application I would verify that your service is started and works. You can do this by navigating to the REST services folder in your browser and selecting your newly created service. From the above threads it looks like the URL to your REST services would be: http://orcl/ArcGIS/rest/services/ If your rest service is NOT listed, you may have to clear your REST Cache. The URL to your REST admin would probably be: http://orcl/ArcGIS/rest/admin (Use your AGS user to login) One you have verified your service is created and is listed as a REST Service, click it then verify it works by clicking the " View In - ArcGIS JavaScript" link. Once you have verified the REST service is up and going, then read the documents linked by Robert. After all that I would suggest working with the Flex code samples that have been listed on this thread. Drew
... View more
06-07-2010
08:50 AM
|
0
|
0
|
302
|
|
POST
|
I don't believe the Find task can do that. You should probably look into Geocoding the address. You can see a sample here (version 1.3): http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=LocatorTask
... View more
06-04-2010
08:51 AM
|
0
|
0
|
319
|
|
POST
|
can you zip up the project and attached it to a message
... View more
05-21-2010
06:36 AM
|
0
|
0
|
889
|
|
POST
|
It looks like your application is using the first build because the error is preventing it to build a new copy. Therefore its not building a new version with the map code you added. Be sure you have the ESRI Flex API referenced in your application as shown in the getting started video around slide 7/26
... View more
05-20-2010
02:38 PM
|
0
|
0
|
889
|
|
POST
|
The code you have posted works so its not that. So i guess there are some more questions that need to be answered. Are you using Flex Builder to test & develop the application? I downloaded the lastest version of Flash Player and I copy all the structure into the Server When you say you "copied" all the files to the server, did you first build a release build to create the SWF file? Is the AGS Flex API (swc) file added to the project? Do you get any errors when debugging? Drew
... View more
05-20-2010
09:40 AM
|
0
|
0
|
889
|
|
POST
|
You will have to project the MapPoint to WGS84 then send it do the google street view component. You can learn more about projecting a point in the online sample linked below. http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ProjectPoint You will have to create your own Geometry Service in your ArcGIS server or use the ESRI on as demonstrated in the sample. Drew
... View more
05-18-2010
03:12 PM
|
0
|
0
|
411
|
|
POST
|
You will want to set the min and max scale on the layer to do this. See minScale and maxScale in the docs. http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/layers/Layer.html
... View more
05-18-2010
09:43 AM
|
0
|
0
|
708
|
| 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
|