POST
|
Dear All, I am using Bing maps as a base map in flex viewer.my operation layer have the coordinate system WGS 84.it is covering the extent of saudi arabia.But when i put this in flex viewer and run the application it zoom to the some where in algeria.As per my understanding the coordinate system difference.Please let me know who to zoom to the my required extent. thanks in advance.
... View more
09-01-2013
11:35 PM
|
0
|
1
|
3799
|
POST
|
Dear All, i am working on application in visual studio 2010.my application is running and map display.But when i add dojo.require("esri.dijit.Popup"); my map stop displaying nothing show on map.my settings for java script api is my local computer not online.please help whats the problem.
... View more
03-31-2013
09:31 AM
|
0
|
0
|
521
|
POST
|
i have a combobox in which checkbox are rendered with the name of layers on the map.the user wants to on off one layer are many layers on or off at one time.problem is that i cannot listen the event of checkbox in calling main class my code is there. my renderer############## <s:ItemRenderer> <fx:Metadata> [Event(name="checkBoxClicked")] </fx:Metadata> <fx:Script> <![CDATA[ import LayerNameClass; import mx.controls.Alert; import mx.events.FlexEvent; protected function checkbox1_clickHandler(event:MouseEvent):void { dispatchEvent(new Event("checkBoxClicked", true,true)); // bubbles } ]]> </fx:Script> <s:CheckBox id="chkLayerNames" x="5" selected="{data.selected}" label="{data.LayerName}" click="checkbox1_clickHandler(event)" /> </s:ItemRenderer> ###########Calling Class############## <s:DropDownList id="cmbLayerNames" x="80" height="30" width="120" y="112" layoutDirection="rtl" itemRenderer="chkBoxRenderer" fontWeight="bold" /> private function oninit():void { cmbLayersName.addEventListener("checkBoxClicked",regularListener); // This handler will never work } private function regularListener ( event:Event ) : void { Alert.show("gggg"); } But no Effect i am not getting result of clicked checkbox.not name of layer of render item.please help.
... View more
06-13-2012
01:49 AM
|
0
|
0
|
219
|
POST
|
Dear all I am working on arabic page.my customer want when i go to widget close or minimize button the tool tip should be in arabic.not the close and minimize text there should be some arabic text there.how can i do this.please help. Thanks.
... View more
04-24-2012
05:07 AM
|
0
|
1
|
481
|
POST
|
Dear All, i want to implement group layers in TOc.where i can handle layer visibility.For this i make a tree control with customitemrenderer.when normal renderer(no customrenderer) tree control shows me layer but as i try to update custom renderer it shows me tree parent but as i click the folder icon open but nothing visible.the code is below. <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:esri="http://www.esri.com/2008/ags" width="400" height="406" direction="inherit" fontFamily="Times New Roman" fontStyle="italic" verticalAlign="middle" widgetConfigLoaded="init()"> <fx:Script> private function init():void { var strLayer:String; if (configXML) // checking for valid content in the configuration file { CursorManager.removeBusyCursor(); if(map.loaded) { tree1.itemRenderer=new ClassFactory(widgets.myTOC.myCustomTreeRenderer); } } } <viewer:WidgetTemplate id="TOC" y="82" height="350" layoutDirection="rtl" symbolColor="#000000"> <viewer:layout> <s:VerticalLayout/> </viewer:layout> <s:BorderContainer height="98%" width="98%" x="0" backgroundAlpha="0.34" backgroundColor="#000000" borderColor="#FFFFFF" borderWeight="3" color="#FFFFFF" cornerRadius="5" dropShadowVisible="true"> <mx:Tree id="tree1" labelField="@label" showRoot="true" width="100%" height="100%"> <mx:XMLListCollection id="MailBox"> <fx:XMLList> <node label="Map Layers"> <GroupLayer label="Vector Layer"> <Vlayer label="V1" checked="0" /> <Vlayer label="V2" checked="0" /> <Vlayer label="V3" checked="0" /> <Vlayer label="V4" checked="0" /> </GroupLayer> <GroupLayer label="Raster Layer"> <Rlayer label="R1" checked="0" /> <Rlayer label="R2" checked="0" /> <Rlayer label="R3" checked="0" /> <Rlayer label="R4" checked="0" /> </GroupLayer> <GroupLayer label="Satelite Images"> <Slayer label="S1" checked="0" /> <Slayer label="S2" checked="0" /> <Slayer label="S3" checked="0" /> <Slayer label="S4" checked="0" /> </GroupLayer> </node> </fx:XMLList> </mx:XMLListCollection> </mx:Tree> </s:BorderContainer> </viewer:WidgetTemplate> </viewer:BaseWidget> Custom itemrender is this package widgets.myTOC { import com.esri.viewer.layouts.A5_Landscape; import flash.events.Event; import flash.events.MouseEvent; import mx.controls.CheckBox; import mx.controls.treeClasses.*; import mx.controls.treeClasses.TreeItemRenderer; import mx.controls.treeClasses.TreeListData; import mx.states.AddChild; import mx.controls.Alert; public class myCustomTreeRenderer extends TreeItemRenderer { public var chkBox:CheckBox; public var itemXml:XML; public function myCustomTreeRenderer() { super(); this.mouseEnabled =false; } override public function set data(value:Object):void { if(value!=null) super.data=value; this.itemXml=XML(value); if(this.itemXml.@checked=="1") this.chkBox.selected=true; else this.chkBox.selected=false; } override protected function createChildren():void { super.createChildren(); chkBox=new CheckBox(); chkBox.addEventListener(MouseEvent.CLICK,handleCheckBoxEvent); AddChild(chkBox); } override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth,unscaledHeight); if(super.data) { var treeListData:TreeListData=TreeListData(super.listData); if(treeListData.hasChildren) { chkBox.visible=false; } else { chkBox.visible=true; } } if(chkBox.visible) { this.chkBox.x=super.label.x; super.label.x=this.chkBox.x+17; this.chkBox.y=super.label.y+8; } } private function handleCheckBoxEvent(evt:MouseEvent):void { if(this.chkBox.selected) this.itemXml.@checked="1" Alert.show(this.itemXml.@label+""); } } } please help espesially @Mr Robert.i will be thankful to you.Thanks again to all.
... View more
03-28-2012
12:25 AM
|
0
|
1
|
782
|
POST
|
Dear All My service coordinate system is Projected Coordinate System:WGS_1984_UTM_Zone_38N and Projection:Transverse_Mercator and wkid === 32638.i want to change this in geographic DMS.please help me.i dont know the algorithum of changing projected to geographic. All layers are in zone 38. Thanks All.
... View more
03-20-2012
07:58 AM
|
0
|
0
|
279
|
POST
|
Dear Robert, Thanks for your reply.but According to your answer it effects the widget title bar and image.I want to change the main menubar of index page.i want to place big menu images on index menubar. Thanks Again
... View more
03-19-2012
10:08 PM
|
0
|
0
|
244
|
POST
|
How to increase the height and width oh title bar button in flex viewer.i want to put the big logo on these buttons image. Thanks in advance.
... View more
03-18-2012
06:26 AM
|
0
|
6
|
2045
|
POST
|
Dear All i have question.if i implement zoom visible scale range in mxd document for some layers.this functionality will be shown in rest service or not. if this is not in rest service how can i implement zoom visible scale functionality in flex application for layers. Thanks in advance.
... View more
03-14-2012
11:23 PM
|
0
|
1
|
428
|
POST
|
Dear All i have question.if i implement zoom visible scale range in mxd document for some layers.this functionality will be shown in rest service or not. if this is not in rest service how can i implement zoom visible scale functionality in flex application for layers. Thanks in advance.
... View more
03-14-2012
11:21 PM
|
0
|
2
|
292
|
POST
|
<?xml version="1.0" encoding="utf-8"?> <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009" width="290" height="300" creationComplete="titlewindow1_creationCompleteHandler(event)"> <s:layout> <s:VerticalLayout/> </s:layout> <fx:Script> <![CDATA[ private var lastDrawnGraphic:Graphic; private var graphicsLayer:GraphicsLayer; [Bindable] public var map:Map [Bindable] public var strPointStyledp:ArrayList=new ArrayList(['Circle','Crosss','Diomand','Square','Triangle','X']); [Bindable] public var strLineStyledp:ArrayList=new ArrayList(['Solid','Dash','Dot','Dash Dot','Dash Dot Dot']); [Bindable] public var strRectStyledp:ArrayList=new ArrayList(['Solid','Backword Diagonal','Cross','Forward Diagonal','Horizontal','Vertical']); [Bindable] private var configDistancedp:ArrayList = new ArrayList([ {name:'Kilometers',abbr:'km',conversion:0.001}, {name:"Miles",abbr:"mi",conversion:0.000621}, {name:"Meters",abbr:"m",conversion:1}, {name:"Feet",abbr:"ft",conversion:3.2808}, {name:"Yards",abbr:"yd",conversion:1.0936133} ]); [Bindable] private var configAreadp:ArrayList = new ArrayList([ {name:"Acers",aAbbr:"ac",aConversion:0.00024710538147}, {name:"Hectares",aAbbr:"ha",aConversion:0.0001}, {name:"Square feet",aAbbr:"sq ft",aConversion:10.763910417}, {name:"Square kilometer",aAbbr:"sq km",aConversion:0.000001}, {name:"Square miles",abbr:"sq mi",aConversion:1}, {name:"Square meters",aAbbr:"sq m",aConversion:0.000001}, {name:"Square Yards",aAbbr:"sq yd",aConversion:1.19599005} ]); public var sms:SimpleMarkerSymbol; //public var sls:SimpleLineSymbol; protected function buttonbar1_clickHandler(event:MouseEvent):void { try { var drawType:String = event.currentTarget.dataProvider[event.currentTarget.selectedIndex].action; if(drawType=="Point") { myViewStack.selectedChild=PointStack as INavigatorContent; myDrawTool.activate(DrawTool.MAPPOINT); } }//try catch(Err:Error) { Alert.show(Err.message); } } private function map_drawEndHandler(event:DrawEvent):void { try { var geom:Geometry = event.graphic.geometry lastDrawnGraphic =new Graphic(geom); lastDrawnGraphic.autoMoveToTop = false; myGraphicsLayer=new GraphicsLayer(); switch (geom.type) { case Geometry.MAPPOINT: { var hexColorString:String=cp.selectedColor.toString(16); while( hexColorString.length < 6 ) { hexColorString = '0' + hexColorString; } var hexoutLineColorString:String=PointoutLineClr.selectedColor.toString(16); while(hexoutLineColorString.length < 6 ) { hexoutLineColorString = '0' + hexoutLineColorString; } sms=new SimpleMarkerSymbol(); sms.style=cmbStyle.selectedItem; sms.size=PointSizeStepper.value; sms.color=0x33ff55; sms.alpha=PointAlphaStepper.value; sms.outline=new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,0x334455,05,5); myDrawTool.graphicsLayer=myGraphicsLayer; lastDrawnGraphic.symbol=sms; myGraphicsLayer.add(lastDrawnGraphic); myMap.addLayer(myGraphicsLayer); } } } catch(Err:Error) { } } protected function polygonChkMeasureUnits_clickHandler(event:MouseEvent):void { var chk:CheckBox; chk=event.currentTarget as CheckBox; if (chk.selected) { polygonDu.visible=true; polygonDistUnits.visible=true; polygonAu.visible=true; polygonAreaUnits.visible=true; } else { polygonDu.visible=false; polygonDistUnits.visible=false; polygonAu.visible=false; polygonAreaUnits.visible=false; } } protected function titlewindow1_creationCompleteHandler(event:FlexEvent):void { // TODO Auto-generated method stub myViewStack.selectedChild=initStack as INavigatorContent } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> <!-- <esri:DrawTool id="myDrawTool" map="{myMap}" showDrawTips="false" drawEnd="map_drawEndHandler(event)" /> <esri:Map id="myMap" level="3" wrapAround180="true"> </esri:Map> </fx:Declarations> <s:BorderContainer width="100%" height="32"> <s:layout> <s:HorizontalLayout/> </s:layout> <s:ButtonBar id="buttonbar1" width="100%" height="100%" click="buttonbar1_clickHandler(event)" skinClass="myComponents.buttonbarskin"> <!--valueCommit="if (buttonbar1.selectedIndex == -1) { drawToolbar.deactivate() }"> --> <s:ArrayCollection> <fx:Object action="Point" icon="@Embed('assets/images/i_draw_point.png')" label="" visible="true" toolTip="Point"/> <fx:Object action="Line" icon="@Embed('assets/images/i_draw_line.png')" label="" visible="true" toolTip="Line"/> <fx:Object action="Free Line" icon="@Embed('assets/images/i_draw_freeline.png')" label="" visible="true" toolTip="Free Hand Line"/> <fx:Object action="Rectangle" icon="@Embed('assets/images/i_draw_rect.png')" label="" visible="true" toolTip="Rectangle"/> <fx:Object action="Circle" icon="@Embed('assets/images/i_draw_circle.png')" label="" visible="true" toolTip="Circle"/> <fx:Object action="Ellipse" icon="@Embed('assets/images/i_draw_ellipse.png')" label="" visible="true" toolTip="Ellipse"/> <fx:Object action="Polygon" icon="@Embed('assets/images/i_draw_poly.png')" label="" visible="true" toolTip="Polygon"/> <fx:Object action="Free hand Polygon" icon="@Embed('assets/images/i_draw_freepoly.png')" label="" visible="true" toolTip="Free Hand Polygon"/> <fx:Object action="Text" icon="@Embed('assets/images/i_draw_text.png')" label="" visible="true" toolTip="Text"/> </s:ArrayCollection> </s:ButtonBar> </s:BorderContainer> <s:BorderContainer width="100%" height="229"> <mx:ViewStack id="myViewStack" width="287" height="227" > <s:NavigatorContent id="initStack"> <s:layout> <s:FormItemLayout/> </s:layout> </s:NavigatorContent> </mx:ViewStack> </s:BorderContainer> </s:TitleWindow> ////////////////////////// the above code is my custom drawing component.if i dont set my custom symbol a black point visible on my map after selecting point from my draw toolbar.if set custom symbology dont visible anything.pls help.waiting for reply. Thanks in advance.
... View more
02-14-2012
06:34 AM
|
0
|
2
|
556
|
POST
|
Dear All, I am stick with the position of my navigation toolbar.i want to place my navigation toolbar vertically exactly on the top of map.i try to put toolbar on skinnable container but it takes area of my map container.i dont want this.Thanks Advance
... View more
02-07-2012
07:56 AM
|
0
|
0
|
685
|
POST
|
Dear All i want to pass map control from my main file to other mxml file.where i can get the all layers and on off from that component. Thanks in advance.
... View more
02-05-2012
11:07 AM
|
0
|
1
|
309
|
POST
|
thanks @kdiabate64 I have solved my issue with help of geometry service and spatial Query.but i am still wonder why it is not worked the geoprocessing service.Thanks Again
... View more
07-03-2011
01:27 AM
|
0
|
0
|
150
|
POST
|
Dear All thanks in advance. i am using buffer and clip Geoporcesing service.i have check this service works fine in arcmap.and i publish this service in arcgis server.here the service creats and runs.The problem is that i have no idea how to check this service is creating output or not.from flex client i try to get the result.but it is throwing error #1009.here it is my code. <esri:Map id="myMap" width="100%" height="100%" logoVisible="false" openHandCursorVisible="false" mapClick="onMapClick(event)"> <esri:extent> <esri:Extent xmin="30" ymin="10" xmax="60" ymax="35"/> </esri:extent> <esri:ArcGISDynamicMapServiceLayer visible="true" url="http://home/ArcGIS/rest/services/myGPService/MapServer/"/> <esri:GraphicsLayer id="graphicsLayer"/> </esri:Map> <esri:Geoprocessor id="gp" concurrency="last" executeComplete="onGPExecuteComplete(event)" fault="onGpError(event)" outSpatialReference="{myMap.spatialReference}" showBusyCursor="true" url="http://home/ArcGIS/services/myGPService/GPServer" /> private function onGpError(event:FaultEvent):void { try { Alert.show("There was a problem","Error"); Alert.show(event.message.toString()); } catch(errObj:Error) {Alert.show(errObj.message.toString());} } private function onGPExecuteComplete(event:GeoprocessorEvent):void { try { gpPending = false; Alert.show("In GP Execute") Alert.show(event.executeResult.results.length.toString()); } catch(errObj:Error) {Alert.show(errObj.message.toString());} } private function onMapClick(event:MapMouseEvent):void { try { graphicsLayer.clear(); var mapPoint:MapPoint = event.mapPoint; var graphic:Graphic = new Graphic(mapPoint); var featureSet:FeatureSet = new FeatureSet(); featureSet.features = [ { geometry: mapPoint } ]; var params:Object = new Object(); params.Input_Features= featureSet; params.Distance = 100; //var params:Object = {"Input_Features": featureSet,"Distance": 300}; gp.execute(params); gpPending = true; Alert.show("map click"); } catch(errObj:Error) {Alert.show(errObj.message.toString());} } I am stuck here from last three days. thanks one again.waiting for reply. Thanks
... View more
06-24-2011
09:24 PM
|
0
|
3
|
613
|
Title | Kudos | Posted |
---|---|---|
1 | 07-04-2020 12:17 PM |
Online Status |
Offline
|
Date Last Visited |
05-30-2023
10:23 PM
|