POST
|
We are still using ArcSDE 9.3.1 but ArcGIS Desktop 10. I wonder if anyone run into issues after installing ArcGIS Desktop 10 service pack 1. It sounds like we have to sync with sde product but we can't do it now. ArcIMS and ArcSDE users: If you use ArcIMS 10 or the ArcSDE 10 application server, you must also install ArcIMS 10 Service Pack 1 or ArcSDE 10 Service Pack 1. For example, if you use ArcIMS 10 and ArcGIS 10 Desktop, install both ArcIMS 10 Service Pack 1 and ArcGIS 10 Service Pack 1 . Since ArcIMS 10 Service Pack 1, ArcSDE 10 Service Pack 1 and the ArcGIS 10 Service Pack 1 products share common DLLs, it is important to keep the software release versions in sync to avoid any software conflicts.
... View more
03-24-2011
04:16 PM
|
0
|
0
|
649
|
POST
|
I downloaded identify features and zoom to query result sample code and put it together. Sample code simply gets rid of all graphics however I'd like to remove only infosymbol and red mark that pops out after clicking identify tool. private function mapClickHandler(event:MapMouseEvent):void { //clickGraphicsLayer.clear(); //var clickGraphic:Graphic = new Graphic(clickGraphic.symbol); clickGraphicsLayer.remove(clickGraphic); I put this but won't work. please help <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" pageTitle="Identify Features on the Map" xmlns:utils="com.esri.ags.utils.*"> <fx:Script> <![CDATA[ import com.esri.ags.Graphic; import com.esri.ags.events.MapMouseEvent; import com.esri.ags.geometry.Geometry; import com.esri.ags.symbols.InfoSymbol; import com.esri.ags.tasks.supportClasses.IdentifyParameters; import com.esri.ags.tasks.supportClasses.IdentifyResult; import mx.controls.Alert; import mx.rpc.AsyncResponder; [Bindable]private var lastIdentifyResultGraphic:Graphic; private function mapClickHandler(event:MapMouseEvent):void { //clickGraphicsLayer.clear(); //var clickGraphic:Graphic = new Graphic(clickGraphic.symbol); clickGraphicsLayer.remove(clickGraphic); var identifyParams:IdentifyParameters = new IdentifyParameters(); identifyParams.returnGeometry = true; identifyParams.tolerance = 3; identifyParams.width = myMap.width; identifyParams.height = myMap.height; identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = myMap.extent; identifyParams.spatialReference = myMap.spatialReference; var clickGraphic:Graphic = new Graphic(event.mapPoint, clickPtSym); clickGraphicsLayer.add(clickGraphic); identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic)); } private function myResultFunction(results:Array, clickGraphic:Graphic = null):void { if (results && results.length > 0) { var result:IdentifyResult = results[0]; var resultGraphic:Graphic = result.feature; switch (resultGraphic.geometry.type) { case Geometry.MAPPOINT: { resultGraphic.symbol = smsIdentify; break; } case Geometry.POLYLINE: { resultGraphic.symbol = slsIdentify; break; } case Geometry.POLYGON: { resultGraphic.symbol = sfsIdentify; break; } } lastIdentifyResultGraphic = resultGraphic; // update clickGraphic (from mouse click to returned feature) //clickGraphic.symbol = new com.esri.ags.symbol.InfoSymbol; //clickGraphic.symbol = new com.esri.ags.symbols.InfoSymbol(); clickGraphic.symbol = new InfoSymbol(); // use default renderer clickGraphic.attributes = resultGraphic.attributes; } } private function myFaultFunction(error:Object, clickGraphic:Graphic = null):void { Alert.show(String(error), "Identify Error"); } ]]> </fx:Script> <fx:Declarations> <!-- Symbol for where the user clicked --> <esri:SimpleMarkerSymbol id="clickPtSym" color="0xFF0000" size="12" style="x"/> <!-- Symbol for Identify Result as Polyline --> <esri:SimpleLineSymbol id="slsIdentify" width="2" alpha="1" color="0x00FF00" style="solid"/> <!-- Symbol for Identify Result as Point --> <esri:SimpleMarkerSymbol id="smsIdentify" color="0x00FF00" size="15" style="diamond"/> <!-- Symbol for Identify Result as Polygon --> <esri:SimpleFillSymbol id="sfsIdentify"/> <!-- Identify Task --> <esri:IdentifyTask id="identifyTask" concurrency="last" url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"/> </fx:Declarations> <esri:Map id="myMap" mapClick="mapClickHandler(event)" openHandCursorVisible="false"> <esri:extent> <esri:WebMercatorExtent minlon="-120" minlat="30" maxlon="-100" maxlat="50"/> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/> <esri:GraphicsLayer id="clickGraphicsLayer"/> </esri:Map> </s:Application>
... View more
03-16-2011
04:32 PM
|
0
|
1
|
525
|
POST
|
My overall goal is simple. If there is any differency between two feature classes includiing tabular and geomtry, then copy FC to other place. I found feature compare tool and it does what I need but it just creates the final result in text file. Is there any way I can write if there is any word called 'true' in the final result txt, then copy it. Or is there any other way to detect changes? Thanks, Result in text file; Has_error, Identifier, Message, Base_value, Test_value, ObjectID "true", "FeatureClass", "ObjectID 8 is different for Field TLID", "123455", "NEW RECORD", 8 "false", "Table", "Table row counts are the same", " ", " ", -1 # FeatureCompare.py # Description: Compare two feature classes and return comparison result. # Requirements: None # Author: ESRI # Date: 06/21/05 # Create the Geoprocessing Object import arcgisscripting, sys, os gp = arcgisscripting.create() try: # Set local variables base_features = "C:/Workspace/baseroads.shp" test_features = "C:/Workspace/newroads.shp" sort_field = "ROAD_ID" compare_type = "ALL" ignore_option = "IGNORE_M;IGNORE_Z" xy_tolerance = "0.001 METERS" m_tolerance = 0 z_tolerance = 0 attribute_tolerance = "Shape_Length 0.001" omit_field = "#" continue_compare = "CONTINUE_COMPARE" compare_file = "C:/Workspace/roadcompare.txt" # Process: FeatureCompare compare_result = gp.FeatureCompare_management(base_features, test_features, sort_field, compare_type, ignore_option, xy_tolerance, m_tolerance, z_tolerance, attribute_tolerance, omit_field, continue_compare, compare_file) print compare_result print gp.GetMessages() except: # Print error message if an error occurs print gp.GetMessages()
... View more
02-24-2011
08:24 AM
|
0
|
0
|
741
|
POST
|
Rene, thanks for the quick response. Robert, thanks a lot again. simple and work great as usual.
... View more
01-27-2011
09:55 AM
|
0
|
0
|
137
|
POST
|
I have query task to seach first name however users have to type first letter as upper case just like value in the attribute table. For example, they have to type like 'John' not 'john'. Is there way that users can type either upper or lower case? <esri:Query id="queryFname" text="%{qTextFname.text}%" where="FName like '%{qTextFname.text}%'">
... View more
01-27-2011
07:48 AM
|
0
|
3
|
3132
|
POST
|
In our ArcIMS web site, we have a button to fire up stored procedure executing batch file. What batch file does is download table from other server and create feature class in SDE. Anyhow, is there any ways to fire a stored procedure or batch file from flex button click? Below is a simple coldfusion code to fire a stored procedure. <cfquery datasource="#DSN#"> dbo.prcGISCallCERTProcess </cfquery>
... View more
12-30-2010
08:34 AM
|
0
|
1
|
560
|
POST
|
Thanks Mattias! I knew it would be simple like 'change' property. 😄
... View more
12-30-2010
06:43 AM
|
0
|
0
|
188
|
POST
|
I solved myself for the first part. Ye~~~. I need to put where clause in Query object so it can query specific field without adding another map service or changing display name field. I'll be glad if someone knows how to fire up the query right after selecting an item from combo box. Thanks, <esri:Query id="queryteam" text="{cbxTeam.text}" where="EOC_STATUS = '{cbxTeam.text}'" returnGeometry="true" outSpatialReference="{mainMap.spatialReference}"> <esri:outFields> <mx:String>EMPNO</mx:String> <mx:String>FNAME</mx:String> <mx:String>LNAME</mx:String> <mx:String>ADDRESS1</mx:String> <mx:String>CITY</mx:String> <mx:String>EOC_STATUS</mx:String> <mx:String>POSITIONTITLE</mx:String> <mx:String>TITLE</mx:String> <mx:String>HMPHONE</mx:String> </esri:outFields> </esri:Query> ++++++++++++++++++ <mx:ComboBox id="cbxTeam" prompt="select a team" selectedIndex="-1" dropdownWidth="150" horizontalCenter="0" top="20" > <mx:dataProvider> <mx:Array> <mx:String>A</mx:String> <mx:String>B</mx:String> <mx:String>C</mx:String> <mx:String>D</mx:String> <mx:String>Not Assigned</mx:String> <mx:String>Not Avail</mx:String> <mx:String>Not Avail-B</mx:String> <mx:String>Not Avail-D</mx:String> </mx:Array> </mx:dataProvider> </mx:ComboBox>
... View more
12-29-2010
03:21 PM
|
0
|
0
|
188
|
POST
|
Hi folks, I just downloaded 'zoom to query result' from sample code and try to modify for my app. I have one dynamic map service which is served as query task layer. first name field is set for query in rest which I set display field in ArcMap. I implemented successfully this query by firstname function however I don't know how to write code for another query using different field from the same map service. In tabnavigator, first tab for query by firstname and second tab for query by team using combo box. I also wonder if I can execute code right after selecting an item from combo box instead of clicking button. Thanks!! <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:esri="http://www.esri.com/2008/ags" styleName="plain" > <mx:Script> <![CDATA[ import com.esri.ags.controls.InfoWindow; import com.esri.ags.Graphic; import com.esri.ags.events.MapMouseEvent; import com.esri.ags.geometry.Geometry; import com.esri.ags.symbol.InfoSymbol; import com.esri.ags.tasks.IdentifyParameters; import com.esri.ags.tasks.IdentifyResult; import com.esri.ags.tasks.FeatureSet; import com.esri.ags.geometry.MapPoint; import mx.controls.Alert; import mx.rpc.AsyncResponder; import com.esri.ags.geometry.Multipoint; import com.esri.ags.tasks.FeatureSet; private function doTeamQuery():void { queryTask.execute(queryteam, new AsyncResponder(onResult, onFault)); function onResult(featureSet:FeatureSet, token:Object = null):void { if (featureSet.features.length == 0) { Alert.show("No name found. Please try again."); } else { var multiPoint:Multipoint = new Multipoint(); for each (var gra:Graphic in featureSet.features) multiPoint.addPoint(MapPoint(gra.geometry)); mainMap.extent = multiPoint.extent.expand(1.5); } } function onFault(info:Object, token:Object = null):void { Alert.show(info.toString()); } } private function doQuery():void { queryTask.execute(query, new AsyncResponder(onResult, onFault)); function onResult(featureSet:FeatureSet, token:Object = null):void { if (featureSet.features.length == 0) { Alert.show("No name found. Please try again."); } else { var multiPoint:Multipoint = new Multipoint(); for each (var gra:Graphic in featureSet.features) multiPoint.addPoint(MapPoint(gra.geometry)); mainMap.extent = multiPoint.extent.expand(1.5); } } function onFault(info:Object, token:Object = null):void { Alert.show(info.toString()); } } ]]> </mx:Script> <!-- start declarations --> <esri:SimpleMarkerSymbol id="sfs" style="circle" color="0xFF0000" size="40" alpha="0.5"/> <esri:QueryTask id="queryTask" showBusyCursor="false" url="http://xxxxxxags/ArcGIS/rest/services/EOC/MapServer/0" /> <esri:Query id="query" text="{qText.text}" returnGeometry="true" outSpatialReference="{mainMap.spatialReference}"> <esri:outFields> <mx:String>EMPNO</mx:String> <mx:String>FNAME</mx:String> <mx:String>LNAME</mx:String> <mx:String>ADDRESS1</mx:String> <mx:String>CITY</mx:String> <mx:String>EOC_STATUS</mx:String> <mx:String>POSITIONTITLE</mx:String> <mx:String>TITLE</mx:String> <mx:String>HMPHONE</mx:String> </esri:outFields> </esri:Query> <esri:Query id="queryteam" text="{cbxTeam.text}" returnGeometry="true" outSpatialReference="{mainMap.spatialReference}"> <esri:outFields> <mx:String>EMPNO</mx:String> <mx:String>FNAME</mx:String> <mx:String>LNAME</mx:String> <mx:String>ADDRESS1</mx:String> <mx:String>CITY</mx:String> <mx:String>EOC_STATUS</mx:String> <mx:String>POSITIONTITLE</mx:String> <mx:String>TITLE</mx:String> <mx:String>HMPHONE</mx:String> </esri:outFields> </esri:Query> <esri:Navigation id="navToolbar" map="{mainMap}"/> <mx:VBox height="100%" width="100%" verticalGap="0" > <mx:Canvas id="cvMain" horizontalScrollPolicy="off" verticalScrollPolicy="off" height="100%" width="100%" borderThickness="1" cornerRadius="10" > <esri:Map id="mainMap" openHandCursorVisible="false" logoVisible="false" > <esri:extent> <esri:Extent xmin="7567162" ymin="641343" xmax="7651652" ymax="703119"> <esri:SpatialReference wkid="2913"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://xxxxxxags/ArcGIS/rest/services/BaseMap/MapServer" /> <esri:ArcGISDynamicMapServiceLayer url="http://xxxxxxags/ArcGIS/rest/services/EOC/MapServer" /> <esri:GraphicsLayer id="clickGraphicsLayer" graphicProvider="{queryTask.executeLastResult.features}" symbol="{sfs}"/> </esri:Map> <mx:HBox horizontalAlign="left" width="100%" bottom="100" left="5"> <mx:DataGrid id="resultsGrid" dataProvider="{queryTask.executeLastResult.attributes}" visible="{queryTask.executeLastResult != null}" > <mx:columns> <mx:DataGridColumn headerText="ID" dataField="EMPNO"/> <mx:DataGridColumn headerText="first name" dataField="FNAME"/> <mx:DataGridColumn headerText="Last name" dataField="LNAME" /> <mx:DataGridColumn headerText="Address" dataField="ADDRESS1" /> <mx:DataGridColumn headerText="City" dataField="CITY" /> <mx:DataGridColumn headerText="Team" dataField="EOC_STATUS" /> <mx:DataGridColumn headerText="EOC TitleE" dataField="PositionTitle" /> <mx:DataGridColumn headerText="City Title" dataField="Title" /> <mx:DataGridColumn headerText="Hm Phone" dataField="HMPhone" /> </mx:columns> </mx:DataGrid> </mx:HBox> <mx:HBox horizontalAlign="left" width="100%" height="90" bottom="5" left="5" > <mx:TabNavigator id="tabNavigator" width="200" height="100%" tabHeight="30" backgroundColor="0xB2BFC6" > <mx:VBox label="Find Member" backgroundColor="0xB2BFC6"> <mx:Label text=" Enter First name" fontWeight="bold"/> <mx:HBox width="100%" height="100%"> <mx:TextInput width="100%" id="qText" enter="doQuery()" text="John"/> <mx:Button label="Query" click="doQuery()"/> </mx:HBox> </mx:VBox> <mx:VBox label="Find Team" backgroundColor="0xB2BFC6" horizontalAlign="center" verticalAlign="middle"> <mx:HBox> <mx:ComboBox id="cbxTeam" prompt="select a team" selectedIndex="-1" dropdownWidth="150" horizontalCenter="0" top="20" > <mx:dataProvider> <mx:Array> <mx:String>Team-A</mx:String> <mx:String>Team-B</mx:String> <mx:String>Team-C</mx:String> </mx:Array> </mx:dataProvider> </mx:ComboBox> <mx:Button label="Query" click="doTeamQuery()"/> </mx:HBox> </mx:VBox> </mx:TabNavigator> </mx:HBox> </mx:Canvas> </mx:VBox> </mx:Application>
... View more
12-29-2010
10:58 AM
|
0
|
3
|
2519
|
POST
|
Found Robert's code! Thanks again private function doQuery():void { queryTask.execute(query, new AsyncResponder(onResult, onFault)); function onResult(featureSet:FeatureSet, token:Object = null):void { var multiPoint:Multipoint = new Multipoint(); for each (var gra:Graphic in featureSet.features) multiPoint.addPoint(MapPoint(gra.geometry)); map.extent = multiPoint.extent.expand(1.5); } function onFault(info:Object, token:Object = null):void { Alert.show(info.toString()); } }
... View more
12-17-2010
02:39 PM
|
0
|
0
|
167
|
POST
|
When I query, it returns mutliple records in datagrid but it only shows first feature point as result on the map. How can I show multi points on the map as same as the result in datagrid? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:esri="http://www.esri.com/2008/ags" pageTitle="Query, then zoom to results" styleName="plain"> <mx:Script> <![CDATA[ import com.esri.ags.Graphic; import com.esri.ags.geometry.Polygon; import com.esri.ags.geometry.MapPoint; import com.esri.ags.geometry.Multipoint; import com.esri.ags.tasks.FeatureSet; import mx.controls.Alert; import mx.rpc.AsyncResponder; private function doQuery():void { queryTask.execute(query, new AsyncResponder(onResult, onFault)); function onResult(featureSet:FeatureSet, token:Object = null):void { // clear the graphics layer myGraphicsLayer.clear(); if (featureSet.features.length == 0) { Alert.show("No name found. Please try again."); } else { var myFirstGraphic:Graphic = featureSet.features[0]; MapPoint(myFirstGraphic.geometry).extent; for each (var myGraphic1:Graphic in featureSet.features) { myGraphicsLayer.add(myGraphic1); } map.centerAt(myGraphic1.geometry as MapPoint); map.scale = 18000; } } function onFault(info:Object, token:Object = null):void { Alert.show(info.toString()); } } ]]> </mx:Script> <!-- Start Declarations --> <esri:SimpleMarkerSymbol id="sfs" style="diamond" color="0x00FF00" size="40"/> <esri:QueryTask id="queryTask" url="http://cobgisags/ArcGIS/rest/services/Cert/MapServer/0"/> <esri:Query id="query" text="{fText.text}" returnGeometry="true" outSpatialReference="{map.spatialReference}"> <esri:outFields> <mx:String>Firstname</mx:String> <mx:String>Lastname</mx:String> </esri:outFields> </esri:Query> <!-- End Declarations --> <mx:HBox width="100%" height="40" backgroundColor="0xDDDDFF" paddingTop="10" horizontalAlign="center"> <mx:Text text="Enter First Name:"/> <mx:TextInput id="fText" enter="doQuery()" text="Bill"/> <mx:Button label="Query" click="doQuery()"/> </mx:HBox> <mx:Text id="resultSummary" height="15"/> <mx:VDividedBox height="100%" width="100%"> <esri:Map id="map"> <esri:extent> <esri:Extent xmin="7535004" ymin="609638" xmax="7742959" ymax="708989"> <esri:SpatialReference wkid="2913"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://cobgisags/ArcGIS/rest/services/BaseMap/MapServer" /> <esri:ArcGISDynamicMapServiceLayer url="http://cobgisags/ArcGIS/rest/services/Cert/MapServer"/> <esri:GraphicsLayer id="myGraphicsLayer" symbol="{sfs}"/> </esri:Map> <mx:DataGrid dataProvider="{queryTask.executeLastResult.attributes}" scroll="true" width="100%" height="40%"/> </mx:VDividedBox> </mx:Application>
... View more
12-17-2010
02:09 PM
|
0
|
1
|
639
|
POST
|
I have several dynamic map services and all of them are viewed fine through ArcCatalog, AGS manager and ArcGIS Javascript viewer. However when I compiled a simple flex code, it doesn't recognize any dynamic services. The existing flex app that consume dynamic services doesn't show its image either. <esri:Map id="mainMap" > <esri:ArcGISDynamicMapServiceLayer url="http://cobgisags/ArcGIS/rest/services/TreeMOL/MapServer" /> <esri:ArcGISTiledMapServiceLayer url="http://cobgisags/ArcGIS/rest/services/Basemap/MapServer" /> </esri:Map> I got 404 error message from fiddler like below <body> <div id="header"><h1>Server Error</h1></div> <div id="content"> <div class="content-container"><fieldset> <h2>404 - File or directory not found.</h2> <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> </fieldset></div> </div> </body> Any idea of this weird behavior?
... View more
12-16-2010
01:05 PM
|
0
|
1
|
443
|
POST
|
I figured it out! Thanks! private function mapClickHandler(event:MapMouseEvent):void { navToolbar.deactivate();
... View more
12-15-2010
01:20 PM
|
0
|
0
|
161
|
POST
|
Robert! Thank you for the quick response! It works great! One thing after another! What I try to do is make a simple toolbar including zoom in, out, pan, next, full view with identify tool. When I put these zoom tools that I got from sample code and identify tool together, I can't scroll the attribute table after using one of these zoom tool. It just do pan function. I think what I need is to clear any zoom tools funcation selected previous before firing up identify tool. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:esri="http://www.esri.com/2008/ags" styleName="plain" > <mx:Script> <![CDATA[ import com.esri.ags.controls.InfoWindow; import com.esri.ags.Graphic; import com.esri.ags.events.MapMouseEvent; import com.esri.ags.geometry.Geometry; import com.esri.ags.symbol.InfoSymbol; import com.esri.ags.tasks.IdentifyParameters; import com.esri.ags.tasks.IdentifyResult; import mx.controls.Alert; import mx.rpc.AsyncResponder; [Bindable] private var lastIdentifyResultGraphic:Graphic; private function mapClickHandler(event:MapMouseEvent):void { clickGraphicsLayer.clear(); var identifyParams:IdentifyParameters = new IdentifyParameters(); identifyParams.returnGeometry = true; identifyParams.tolerance = 3; identifyParams.width = mainMap.width; identifyParams.height = mainMap.height; identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = mainMap.extent; identifyParams.spatialReference = mainMap.spatialReference; var clickGraphic:Graphic = new Graphic(event.mapPoint, clickPtSym); identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic)); clickGraphicsLayer.add(clickGraphic); } private function myResultFunction(results:Array, clickGraphic:Graphic = null):void { if (results && results.length > 0) { var result:IdentifyResult = results[0]; var resultGraphic:Graphic = result.feature; switch (resultGraphic.geometry.type) { case Geometry.MAPPOINT: { resultGraphic.symbol = smsIdentify; break; } case Geometry.POLYLINE: { resultGraphic.symbol = slsIdentify; break; } case Geometry.POLYGON: { resultGraphic.symbol = sfsIdentify; break; } } lastIdentifyResultGraphic = resultGraphic; // update clickGraphic (from mouse click to returned feature) clickGraphic.symbol = new InfoSymbol(); // use default renderer clickGraphic.attributes = resultGraphic.attributes; } } private function myFaultFunction(error:Object, clickGraphic:Graphic = null):void { Alert.show(String(error), "Identify Error"); } ]]> </mx:Script> <!-- start declarations --> <!-- Symbol for where the user clicked --> <esri:SimpleMarkerSymbol id="clickPtSym" style="x" color="0xFF0000" size="12"/> <!-- Symbol for Identify Result as Polyline --> <esri:SimpleLineSymbol id="slsIdentify" style="solid" color="0x00FF00" width="2" alpha="1"/> <!-- Symbol for Identify Result as Point --> <esri:SimpleMarkerSymbol id="smsIdentify" style="diamond" color="0x00FF00" size="15"/> <!-- Symbol for Identify Result as Polygon --> <esri:SimpleFillSymbol id="sfsIdentify"/> <!-- Identify Task --> <esri:IdentifyTask id="identifyTask" concurrency="last" url="http://cobgisags/ArcGIS/rest/services/BaseMap/MapServer"/> <esri:Navigation id="navToolbar" map="{mainMap}"/> <mx:VBox height="100%" width="100%" verticalGap="0" > <mx:Canvas id="cvMain" horizontalScrollPolicy="off" verticalScrollPolicy="off" height="100%" width="100%" borderThickness="1" cornerRadius="10" > <esri:Map id="mainMap" openHandCursorVisible="false"> <esri:extent> <esri:Extent xmin="7335959" ymin="356193" xmax="8001213" ymax="979039"> <esri:SpatialReference wkid="2913"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://xxxags/ArcGIS/rest/services/BaseMap/MapServer"/> <esri:GraphicsLayer id="clickGraphicsLayer"/> </esri:Map> <!-- TOP TOOL BAR --> <mx:HBox id="topHBOX" horizontalAlign="center" width="100%" y="10"> <mx:Canvas id="topbar" left="5" right="5" height="55" horizontalScrollPolicy="off" backgroundColor="#3477C0" borderStyle="solid" backgroundAlpha=".6" cornerRadius="20"> <mx:filters> <mx:DropShadowFilter color="0x666666" angle="60" distance="4" /> </mx:filters> <mx:HBox id="toolBarBox" horizontalGap="5" verticalAlign="middle" width="100%"> <mx:Spacer width="10" /> <mx:Button toolTip="Zoom In" click="navToolbar.activate(Navigation.ZOOM_IN)" id="ZoominBtn" styleName="main" icon="@Embed(source='images/zoomin.png')" height="50" width="50"/> <mx:Button toolTip="Zoom Out" click="navToolbar.activate(Navigation.ZOOM_OUT)" id="ZoomoutBtn" styleName="main" icon="@Embed(source='images/zoomout1.png')" height="50" width="50" /> <mx:Button toolTip="Pan" click="navToolbar.activate(Navigation.PAN)" id="PanBtn" styleName="main" icon="@Embed(source='images/pan_hand.png')" height="50" width="50" /> <mx:Spacer width="5" /> <mx:Image source="images/Break_gray.png" /> <mx:Spacer width="5" /> <mx:Button toolTip="Previous Extent" click="navToolbar.zoomToPrevExtent()" enabled="{!navToolbar.isFirstExtent}" icon="@Embed(source='images/zoomprevious.png')" height="50" width="50" /> <mx:Button toolTip="Next Extent" click="navToolbar.zoomToNextExtent()" enabled="{!navToolbar.isLastExtent}" icon="@Embed(source='images/zoomnext.png')" height="50" width="50" /> <mx:Button toolTip="Full Extent" click="navToolbar.zoomToFullExtent()" icon="@Embed(source='images/zoomfull.png')" height="50" width="50" /> <mx:Image source="images/Break_gray.png" /> <mx:Spacer width="5" /> <mx:Button toolTip="Identify" click="{mainMap.addEventListener(MapMouseEvent.MAP_CLICK, mapClickHandler)}" icon="@Embed(source='images/identify.png')" height="50" width="50" /> <mx:Spacer width="5" /> </mx:HBox> </mx:Canvas> </mx:HBox> </mx:Canvas> </mx:VBox> </mx:Application>
... View more
12-15-2010
12:53 PM
|
0
|
0
|
161
|
Title | Kudos | Posted |
---|---|---|
1 | 03-27-2018 04:13 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|