|
POST
|
Jaime, What you need to do is in Flash Builder 4 so to the project menu and choose "Export Release Build..." That will create a bin-release folder the contents of that folder is what you copy to your web server. Quick IIS tutorial: open IIS on the server expand the websites node and right click Default Web Site and choose new Virtual Directory. Click next in the dialog and give it an alias like FlexViewer and click next and browse to the folder that you copied the bin-release folders contents to. Click next and then ensure that Read and Run scripts (such as ASP) are both checked. Click next and then Finish. That's it your ready to run from the server.
... View more
09-02-2010
04:20 PM
|
0
|
0
|
2140
|
|
POST
|
Frank, I personally have just been commenting my lines or blocks of code that I have changed. At least trying to remember to do so 😉
... View more
09-02-2010
12:21 PM
|
0
|
0
|
1821
|
|
POST
|
Jason, So the label of the map service in the config.xml that has the rasters that is what you use to replace in that line of code then.
... View more
09-02-2010
11:36 AM
|
0
|
0
|
2042
|
|
POST
|
Josh, I would say to test and see if this is an issues with your services or just the widget, you should remove your map services from the operational layers and add in one of ESRI to see if it acts identically.
... View more
09-02-2010
11:10 AM
|
0
|
0
|
2705
|
|
POST
|
Josh, Maptips from the MXD/MSD are not available in Flex. There is a great amount of overhead that is involved in having an attribute shown for a particular geometry when the mouse is over it and a desktop client is meant to handle this, but a web client like flex is not intended to have this level of complexity. Now before someone else pipes up and say that yes you can have maptips in flex let me reiterate what I am saying. Maptips are possible in flex with some pretty intensive development code, but the web client was not intended to be an online ArcMap and there for you should steer away from this type of development so that your users can have a fast web experience.
... View more
09-02-2010
10:57 AM
|
0
|
0
|
617
|
|
POST
|
Jason, Didn't you say you have one MAP SERVICE that has your rasters in it?
... View more
09-02-2010
09:12 AM
|
0
|
0
|
2042
|
|
POST
|
Richard, Good, as I am not in that list I can not test to see if it works but everything in the code looks good so give it a test.
... View more
09-02-2010
08:53 AM
|
0
|
0
|
1428
|
|
POST
|
Jason, Look for this line in your LiveMapsWidget.mxml if (ArcGISDynamicMapServiceLayer(liveLayers).id != "Aerial Photography") and change "Aerial Photography" to the id of your raster map service.
... View more
09-02-2010
08:51 AM
|
0
|
0
|
2042
|
|
POST
|
Richard, Here is Rene's code downgraded for Flex Builder 3 The real question is are you part of the domains that has access to this web service look at the http://data.cmap.illinois.gov/crossdomain.xml is your machine part of one of these? <allow-http-request-headers-from domain="*.pathfinder-development.com" headers="*"/>
<allow-http-request-headers-from domain="*.greatarc.com" headers="*"/>
<allow-http-request-headers-from domain="208.70.17.37" headers="*"/>
<allow-http-request-headers-from domain="localhost" headers="*"/> If so then Rene's code should work. <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.mxml.WebService;
protected var service:WebService;
protected function init():void {
service = new WebService();
service.showBusyCursor = true;
service.wsdl = "http://data.cmap.illinois.gov/ws/tip/tipservice.asmx?wsdl";
service.addEventListener(ResultEvent.RESULT, onResultsLoaded_handler);
service.addEventListener(FaultEvent.FAULT, onFault_handler);
service.loadWSDL();
}
protected function onFault_handler(event:FaultEvent):void {
Alert.show("Error in calling service: " + event.message, "Error");
}
protected function onResultsLoaded_handler(event:ResultEvent):void {
try {
dgResults.dataProvider = event.result as ArrayCollection;
}
catch (e:Error) {
Alert.show("An error occurred loading results: " + e.message, "Results error");
}
}
protected function btnRequest_clickHandler(event:MouseEvent):void {
service.getproject(input.text);
}
]]>
</mx:Script>
<mx:TextInput id="input"
width="200" />
<mx:Button id="btnRequest"
label="Send Request"
width="200"
click="btnRequest_clickHandler(event)" />
<mx:DataGrid id="dgResults"
width="800"
height="300" />
</mx:Application>
... View more
09-02-2010
08:34 AM
|
0
|
0
|
1428
|
|
POST
|
Joshua, If you have the SearchWidget.mxml in the src folder than when you run or debug your project it will rebuild the swf.
... View more
09-02-2010
08:09 AM
|
0
|
0
|
861
|
|
POST
|
Melissa, If you have the FlexViewer2.0 source code than you just have to add some code to the LayerListWidget.mxml.
<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions. See use restrictions in the file:
// <install location>/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:viewer="com.esri.viewer.*"
xmlns:toccomp="com.esri.viewer.components.toc.*"
widgetConfigLoaded="init()"
x="600"
y="400">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import com.esri.viewer.components.toc.tocClasses.TocMapLayerItem;
private function init():void
{
toc.map = map;
toc.isMapServiceOnly = false; //gotta get this from the config file
toc.excludeLayers = getExcludeLayers();
toc.excludeGraphicsLayers = true;
callLater(expandTOC);
}
private function expandTOC():void
{
toc.openItems = toc.dataProvider.source;
for each(var item:TocMapLayerItem in toc.openItems) {
if (item.isTopLevel()){
toc.expandItem(item, true);
}
}
}
private function getExcludeLayers():ArrayCollection
{
var result:ArrayCollection = new ArrayCollection();
if (configData && configData.basemaps)
{
// exclude basemaps
for (var i:int = 0; i < configData.basemaps.length; i++)
{
result.addItem(configData.basemaps.label);
}
}
if (configXML)
{
// exclude these layers
var layers:XMLList = configXML.excludelayer as XMLList;
for (var j:Number = 0; j < layers.length(); j++)
{
result.addItem(layers .toString());
}
}
return result;
}
]]>
</fx:Script>
<viewer:WidgetTemplate id="wTemplate"
height="300"
width="300">
<viewer:layout>
<s:VerticalLayout gap="8" paddingTop="4"/>
</viewer:layout>
<s:Label text="Layer Visibility"/>
<toccomp:TOC id="toc"
height="100%"
width="100%"/>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
... View more
09-02-2010
07:47 AM
|
0
|
0
|
2036
|
|
POST
|
Joshua, Swfs are compiled versions of the mxml code so you should never see swfs in the src directory. Look in the bin-debug or bin-release folder to find the compiled swfs.
... View more
09-02-2010
07:36 AM
|
0
|
0
|
861
|
|
POST
|
Joshua, That's just the way it is without some good modification to the widget to handle this.
... View more
09-02-2010
04:45 AM
|
0
|
0
|
660
|
|
POST
|
Gaurav, Try this map.removeAllLayers and then map.lods=[]; and then add the new layers.
... View more
09-02-2010
04:11 AM
|
0
|
0
|
866
|
|
POST
|
Dira, In your first two query expressions you are missing the operator <expression>AIN '%[value]%'</expression> you need to add LIKE <expression>AIN LIKE '%[value]%'</expression> <expression>C_OWNERS LIKE '%[value]%'</expression>
... View more
09-02-2010
04:05 AM
|
0
|
0
|
1208
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|