|
POST
|
Hy guys i have more difficult to writie code for call a gp service in a widget of FV2.2. I published my GP service (Async.) and if i run the gp in REST i have a result. I saw a sample of geoprocessing service here, but are more different. My model have 2 imput parameter that are featureset and another imput is a table. Who can help me or give me some advice? Thanks
... View more
03-10-2011
06:39 AM
|
0
|
1
|
728
|
|
POST
|
Hi guys, i have a question. Is it possible to use a Bing Maps in Flex Viewer 2.2? Where is a link that i can see for this case? Thanks
... View more
03-08-2011
12:05 AM
|
0
|
6
|
1280
|
|
POST
|
Robert but if i would like to keep the user name and pass?
... View more
03-02-2011
04:26 AM
|
0
|
0
|
534
|
|
POST
|
thanks Robert. yes i have a user name and pass. i will change it thanks
... View more
03-02-2011
04:09 AM
|
0
|
0
|
534
|
|
POST
|
Hi guys, i developed a widget to export my map in a cutom application in flex 4. this is the script that i used: public function PrintPDFx():void { var sURL:String; sURL = "http://193.204.163.134/ArcGIS/rest/services/Roma/Carg_Roma/MapServer/export"; sURL += "?bbox="+myMap.extent.xmin+","+myMap.extent.ymin+","+myMap.extent.xmax+","+myMap.extent.ymax; //sURL+="&layers="; sURL+="&size="+myMap.width+","+myMap.height; sURL+="&format=pdf"; sURL+="&trasparent=false"; //sURL+="&dpi"; sURL+="&f=image"; sURL+="&width"+myMap.width; sURL+="&height"+myMap.height; navigateToURL(new URLRequest(sURL),'_blank'); } now i have a problem. this script in another application it's ok. now i my custom application i added a geocoding service and when i click my print function i have a server error. this is the error: Exception from HRESULT: 0x800706BE code 500 help me
... View more
03-01-2011
06:05 AM
|
0
|
5
|
871
|
|
POST
|
Sorry. Clear the symbol on the basemap, that is the results of geocoding
... View more
02-28-2011
05:30 AM
|
0
|
0
|
405
|
|
POST
|
hello, i used the geocoding service in my custom application and it's all ok! But i would like to clear any results; it's possible? and how? Thanks
... View more
02-28-2011
04:02 AM
|
0
|
4
|
1329
|
|
POST
|
I'm sorry i said bad, i used the wrong words! I mean the 4 different widgets menù wich Are in sample Flex viewer 1.x and that i can modify in config.XML But it's ok! Thanks robert
... View more
02-01-2011
06:26 AM
|
0
|
0
|
605
|
|
POST
|
I would like to use the box menù of 1.3 in sfv 2.2 because i have more widgets to develop and put in SFV.....only this
... View more
02-01-2011
05:52 AM
|
0
|
0
|
605
|
|
POST
|
Thanks Robert. I have a curiosity to ask. I'd like to change the GUI of SFV 2.2 with 1.3. is it possible? you have a link to target or some articles that I read?
... View more
01-31-2011
11:58 PM
|
0
|
0
|
605
|
|
POST
|
Hi guys i have to use a widget search (not SFV) of Robert in a custom flex application with flex 3, and it's very nice. But now i'm searching to use that widget in a flex 4. i change more tags and i added new class, but after all i have a problem with record data. it's possible to use this widget in flex 4?
... View more
01-31-2011
11:43 AM
|
0
|
8
|
863
|
|
POST
|
Hello guys. I have created my application, I created a mxml TitleWindow that recall in my application with a button. This is the code of mxml TitleWindow. But with this flex 3. <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns="assets.*" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:esri="http://www.esri.com/2008/ags" xmlns:samples="com.esri.ags.samples.*" width="320" height="306" paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10" x="0" y="82" title="Table of Contents" dropShadowEnabled="true" dropShadowColor="Black" shadowDirection="right" shadowDistance="5" showCloseButton="true" xmlns:ns1="*"> <mx:Script> <![CDATA[ import com.esri.ags.layers.ArcGISDynamicMapServiceLayer; import mx.controls.Alert; import com.esri.ags.samples.LayerTOC; import com.esri.ags.samples.LayerVizRenderer; import mx.collections.*; import mx.managers.PopUpManager; import mx.core.Application; import com.esri.ags.layers.Layer; import com.esri.ags.Map; [Bindable] public var layers:ArcGISDynamicMapServiceLayer; private var _layer:Layer; //set layer alpha private function setLayerAlpha():void { layers.alpha = slider.value; } private function sldrDataTipFormatter(value:Number):String { return int(value * 100) + "%"; } //Maximize/Minimize Window using Control Bar private function changeState():void { switch( currentState ) { case "": case null: currentState = "collapsedState"; break; case "collapsedState": currentState = ""; break; } } ]]> </mx:Script> <mx:states> <mx:State name="collapsedState"> <mx:SetProperty name="height" value="58"/> <mx:SetProperty target="{controlbar1}" name="toolTip" value="Click to maximize window"/> <mx:AddChild relativeTo="{controlbar1}" position="lastChild"> <mx:Image id="expanderDn" source="assets/img/ScrollArrowDown_upSkin.png" alpha="1.0" /> </mx:AddChild> <mx:RemoveChild target="{expanderUp}"/> </mx:State> </mx:states> <mx:transitions> <mx:Transition fromState="*" toState="collapsedState"> <mx:Sequence targets="{[this]}"> <mx:Resize target="{this}" duration="500"/> </mx:Sequence> </mx:Transition> <mx:Transition fromState="collapsedState" toState="*"> <mx:Resize target="{this}" duration="500"/> </mx:Transition> </mx:transitions> <mx:NumberFormatter id="numFormatter" useThousandsSeparator="true" precision="2"/> <mx:VBox verticalGap="0" width="100%" paddingLeft="6" paddingRight="6" paddingBottom="3" paddingTop="3"> <mx:HSlider id="slider" minimum="0" maximum="1" width="100%" change="setLayerAlpha()" dataTipFormatFunction="sldrDataTipFormatter" liveDragging="true" value="{layers.alpha}"/> </mx:VBox> <samples:LayerTOC id="toc" layer="{layers}" width="280" height="81"/> <mx:ControlBar id="controlbar1" height="30" click="changeState()" toolTip="Click to minimize window" styleName="darkControlBar" verticalAlign="center" horizontalAlign="center" y="505" width="378"> <mx:Image id="expanderUp" source="assets/img/ScrollArrowUp_upSkin.png" alpha="1.0" /> </mx:ControlBar> </mx:TitleWindow> Now i'm working in flash builder 4 and in my mxml application i have worked in this way for open a titlewindow <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1000" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags" xmlns:layers="com.esri.ags.layers.*" viewSourceURL="Source/index.html"> <s:layout> <s:BasicLayout/> </s:layout> <s:BorderContainer height="84" right="0" left="0" top="0" horizontalCenter="0"> </s:BorderContainer> <s:BorderContainer top="83" right="0" bottom="0" left="0" verticalCenter="41" horizontalCenter="0"> <esri:Map> <esri:extent> <esri:Extent xmin="12.3498673933049" ymin="41.7449211462468" xmax="12.6468247200555" ymax="42.0530143727505"> <esri:SpatialReference wkid="4326"/> <!-- WGS84 --> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer"/> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" alpha="{layerAlpha1.value}"/> </esri:Map> <s:BorderContainer height="41" width="145" right="10" top="10" backgroundColor="#000000" backgroundAlpha="0.5"> <s:ToggleButton id="Toc" label="Layer" click="tocPanel.visible ? tocPanel.visible=false: tocPanel.visible=true" selected="{tocPanel.visible}" x="67" y="9"/> </s:BorderContainer> <s:TitleWindow id="tocPanel" mouseDown="tocPanel.startDrag()" mouseUp="tocPanel.stopDrag()" title="Layer" visible="false" close="tocPanel.visible=false" x="932" y="76" width="270" height="264" backgroundColor="#000000" backgroundAlpha="0.5"> <s:states> <s:State name="collapsedState"> </s:State> </s:states> </s:TitleWindow> </s:BorderContainer> but when i write the script for the resizable as well as in the flex 3 i have a error for tag "states"(initializer for prperty states is not allowed here ) Why i have this error? any solutions?
... View more
01-30-2011
06:26 AM
|
0
|
0
|
845
|
|
POST
|
Hi Robert First to create ITitle Window i worked in different way!I created a new class and then I loaded several individual services in this way. Do you think this script that I wrote in class superpanel <esri:Map id="myMap"> <esri:extent> <esri:Extent xmin="12.0674850574739" ymin="41.5918637972499" xmax="13.1110231653314" ymax="42.3812560928617"> <esri:SpatialReference wkid="4326"/> <!-- WGS84 --> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" alpha="{layerAlpha.value}"/> <esri:ArcGISDynamicMapServiceLayer id="myDynamicService" url="http://193.204.163.134/ArcGIS/rest/services/Roma/Carg_Roma/MapServer" load="myDynamicService.defaultVisibleLayers()" alpha="{layer1.value}"/> <esri:ArcGISDynamicMapServiceLayer id="myDynamicService1" url="http://193.204.163.134/ArcGIS/rest/services/Roma/DEM/MapServer" load="myDynamicService1.defaultVisibleLayers()" alpha="{layer2.value}"/> <esri:ArcGISDynamicMapServiceLayer id="myDynamicService2" url="http://193.204.163.134/ArcGIS/rest/services/Roma/Circoscrizioni/MapServer" load="myDynamicService2.defaultVisibleLayers()" alpha="{layer3.value}"/> <esri:ArcGISDynamicMapServiceLayer id="myDynamicService3" url="http://193.204.163.134/ArcGIS/rest/services/Roma/Sondaggi/MapServer" load="myDynamicService3.defaultVisibleLayers()"/> <esri:ArcGISDynamicMapServiceLayer id="myDynamicService4" url="http://193.204.163.134/ArcGIS/rest/services/nuovi_servizi/carta_tecnica/MapServer" load="myDynamicService4.defaultVisibleLayers()" alpha="{layer4.value}"/> <esri:GraphicsLayer id="myGraphicsLayer"/> </esri:Map> <panel:SuperPanel x="63" y="10" width="221" height="469" backgroundColor="#000000" backgroundAlpha="0.4" headerHeight="20" title="Live Maps" layout="absolute" showControls="true" enableResize="true" fontFamily="Arial" fontWeight="bold" fontSize="12" color="#000000"> <mx:ComboBox x="10" y="10" width="195" height="15" id="myURL" fontSize="10" color="#FFFFFF"> <mx:Array> <mx:String>Carg Roma</mx:String> </mx:Array> </mx:ComboBox> <samples:LayerTOC x="10" y="25" height="46" width="195" fontSize="10" layer="{myDynamicService}"/> <mx:HSlider x="45" y="68" id="layer1" minimum="0" maximum="1" value="0" snapInterval=".01" liveDragging="true"/> <mx:Image x="10" y="70" source="assets/alpha.png"/> <mx:Image x="10" y="158" source="assets/alpha.png"/> <mx:Image x="10" y="246" source="assets/alpha.png"/> <mx:ComboBox x="10" y="89" width="195" height="15" fontSize="10" color="#FFFFFF" id="myURL1"> <mx:Array> <mx:String>Digital Elevation Model</mx:String> </mx:Array> </mx:ComboBox> <samples:LayerTOC x="10" y="104" height="54" width="195" fontSize="10" layer="{myDynamicService1}"/> <mx:HSlider x="45" y="156" id="layer2" minimum="0" maximum="1" value="0" snapInterval=".01" liveDragging="true"/> <mx:ComboBox x="10" y="177" width="195" height="15" fontSize="10" color="#FFFFFF" id="myURL2"> <mx:Array> <mx:String>Circoscrizioni</mx:String> </mx:Array> </mx:ComboBox> <samples:LayerTOC x="10" y="192" height="54" width="195" fontSize="10" layer="{myDynamicService2}"/> <mx:HSlider x="45" y="244" id="layer3" minimum="0" maximum="1" value="0.3" snapInterval=".01" liveDragging="true"/> <mx:ComboBox x="10" y="263" width="195" height="15" color="#FFFFFF" id="myURL3" fontSize="10"> <mx:Array> <mx:String>Sondaggi</mx:String> </mx:Array> </mx:ComboBox> <samples:LayerTOC x="10" y="279" height="78" width="195" layer="{myDynamicService3}" fontSize="10" themeColor="#009DFF"/> <mx:Image x="10" y="426" source="assets/alpha.png"/> <mx:ComboBox x="10" y="365" width="195" height="15" fontSize="10" color="#FFFFFF" id="myURL4"> <mx:Array> <mx:String>CTR</mx:String> </mx:Array> </mx:ComboBox> <samples:LayerTOC x="10" y="381" width="195" fontSize="10" layer="{myDynamicService4}" height="46"/> <mx:HSlider x="45" y="424" id="layer4" minimum="0" maximum="1" value="0" snapInterval=".01" liveDragging="true"/> </panel:SuperPanel> That is a panel with a script for resizable. But i would like to use title window. What do you think?
... View more
01-24-2011
10:10 AM
|
0
|
0
|
240
|
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|