POST
|
Robert, Can you please point to me that where I can download Weather Underground widget v 2.5? Thanks, Xiaoyi Zhang
... View more
06-04-2013
07:51 AM
|
0
|
0
|
324
|
POST
|
All, I'm working on offline editing in android. I created a map service with feature access on arcGis server 10.1. I go my layer definition from JSON of my featureserver layer. I created a featurelayer based on my layer definition in my config.xml. The offline data layer opens OK but I got inccorect field order. Does anyone have similar issues and solutions? Thanks, Xiaoyi Zhang Dewberry Here's how I check the fields are in incorrect order, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ projectDataFeatureLayer = new ArcGISFeatureLayer(projectDataLayerDefinition, null, layerOptions); Field[] pField = projectDataFeatureLayer.getFields(); for (int i = 0; i < pField.length;i++) { Log.d(TAG,"Seq = " + Integer.toString(i) + " FieldName = " + pField.getAlias()); } projectDataFeatureLayer.setName(projectDataName); loadDataFromSDCard(false); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ here's layer definition in my config.xml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <string name="config.projectData.layer.definition"> { \"currentVersion\": 10.1, \"id\": 0, \"name\": \"electrical\", \"type\": \"Feature Layer\", \"description\": \"The feature class consists of the surveyed electrical transformers and panel point locations, required attribution, and digital photographs.\", \"copyrightText\": \"Dewberry\", \"defaultVisibility\": true, \"editFieldsInfo\": null, \"ownershipBasedAccessControlForFeatures\": null, \"syncCanReturnChanges\": false, \"relationships\": [], \"isDataVersioned\": true, \"supportsRollbackOnFailureParameter\": false, \"supportsStatistics\": true, \"supportsAdvancedQueries\": true, \"geometryType\": \"esriGeometryPoint\", \"minScale\": 0, \"maxScale\": 0, \"extent\": { \"xmin\": 2605295.8095349073, \"ymin\": 382963.4198536724, \"xmax\": 2607622.8711894006, \"ymax\": 386063.8142192513, \"spatialReference\": { \"wkid\": 102728, \"latestWkid\": 2271 } }, \"drawingInfo\": { \"renderer\": { \"type\": \"simple\", \"symbol\": { \"type\": \"esriPMS\", \"url\": \"6174d66fd830441a571ea7db733c0116\", \"imageData\": \"iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAW9JREFUKJGd0r0vQ1EYx/Hvpbc3N6lWrpfkeiliMoiBUSISCQsWf4IwaywY7CIIg7CLwWIQbwshYkCiQgxMqj0R6U21Go63Y6AoTYlnO8Pnye88+bn457jSXsPKJEYPT8ku7hPluM1r3L4lFFNMak5mGFBVXIQ2eIhVoOeB2wsPiQrioQZ0I2D0qTY5ru2mw25lED3dxCjw4639stcCTxk83nrlVXCdgKphTLv8gIY8HZKGz49ZnPlDugfyqz1EDqaB9g8oZbwDqyb7NXQP5OQ2pkfVzfzs6n3MQh+0lsJa+A2q5/ifYK55Y9tHlhC8w2Q0SBG1vzBIRg6EEOHPqNuzG1S2NAOlWdg954srgPMJnYVVKzjjdep6B4BMp72zxP4gZxM7qRakChDhaHCH2Hm/0TRSL5XWiUYJECVHrXM8t5zc6o5LKff4BnEcZw9nNCwPR5+ALeAF0AC3bdsnQsqTrxHSuwoRYP57TiHEj+yvy5KBRXegRPYAAAAASUVORK5CYII=\", \"contentType\": \"image/png\", \"width\": 10, \"height\": 10, \"angle\": 0, \"xoffset\": 0, \"yoffset\": 0 }, \"label\": \"\", \"description\": \"\" }, \"transparency\": 0, \"labelingInfo\": null }, \"hasM\": false, \"hasZ\": true, \"enableZDefaults\": false, \"allowGeometryUpdates\": true, \"hasAttachments\": false, \"htmlPopupType\": \"esriServerHTMLPopupTypeAsHTMLText\", \"objectIdField\": \"OBJECTID\", \"globalIdField\": \"\", \"displayField\": \"panel_id\", \"typeIdField\": \"\", \"fields\": [ { \"name\": \"OBJECTID\", \"type\": \"esriFieldTypeOID\", \"alias\": \"OBJECTID\", \"domain\": null, \"editable\": false, \"nullable\": false }, { \"name\": \"panel_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"panel_id\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"existing_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"existing_id\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"orig_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"orig_id\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"manuf_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"FKManufID\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 50 }, { \"name\": \"mounting\", \"type\": \"esriFieldTypeString\", \"alias\": \"mounting\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"facil_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"FKFacilID\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"floor_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"floor_id\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"room_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"room_id\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"feat_desc\", \"type\": \"esriFieldTypeString\", \"alias\": \"feat_desc\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 60 }, { \"name\": \"lt_desc\", \"type\": \"esriFieldTypeString\", \"alias\": \"lt_desc\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 10 }, { \"name\": \"panel_dim\", \"type\": \"esriFieldTypeString\", \"alias\": \"panel_dim\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"width\", \"type\": \"esriFieldTypeString\", \"alias\": \"width\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 16 }, { \"name\": \"depth\", \"type\": \"esriFieldTypeString\", \"alias\": \"depth\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 16 }, { \"name\": \"height\", \"type\": \"esriFieldTypeString\", \"alias\": \"height\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 16 }, { \"name\": \"no_phases\", \"type\": \"esriFieldTypeString\", \"alias\": \"NoPhases\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"main_breaker\", \"type\": \"esriFieldTypeString\", \"alias\": \"main_breaker\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 }, { \"name\": \"amp_rate\", \"type\": \"esriFieldTypeSmallInteger\", \"alias\": \"AmpRate\", \"domain\": null, \"editable\": true, \"nullable\": true }, { \"name\": \"voltage_d\", \"type\": \"esriFieldTypeString\", \"alias\": \"VoltageDOM\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 16 }, { \"name\": \"hertz_d\", \"type\": \"esriFieldTypeString\", \"alias\": \"HertzDOM\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 16 }, { \"name\": \"no_circuit\", \"type\": \"esriFieldTypeInteger\", \"alias\": \"no_circuit\", \"domain\": null, \"editable\": true, \"nullable\": true }, { \"name\": \"use_circuit\", \"type\": \"esriFieldTypeString\", \"alias\": \"use_circuit\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 5 }, { \"name\": \"serial_no\", \"type\": \"esriFieldTypeString\", \"alias\": \"SerialNo\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 15 }, { \"name\": \"coord_id\", \"type\": \"esriFieldTypeString\", \"alias\": \"FKCoordID\", \"domain\": null, \"editable\": true, \"nullable\": true, \"length\": 20 } ], \"types\": [], \"templates\": [ { \"name\": \"electrical\", \"description\": \"\", \"prototype\": { \"attributes\": { \"coord_id\": null, \"panel_id\": null, \"existing_id\": null, \"orig_id\": null, \"manuf_id\": null, \"mounting\": null, \"facil_id\": null, \"floor_id\": null, \"room_id\": null, \"feat_desc\": null, \"lt_desc\": null, \"panel_dim\": null, \"width\": null, \"depth\": null, \"height\": null, \"no_phases\": null, \"main_breaker\": null, \"amp_rate\": null, \"voltage_d\": null, \"hertz_d\": null, \"no_circuit\": null, \"use_circuit\": null, \"serial_no\": null } }, \"drawingTool\": \"esriFeatureEditToolPoint\" } ], \"maxRecordCount\": 1000, \"supportedQueryFormats\": \"JSON, AMF\", \"capabilities\": \"Create,Delete,Query,Update,Uploads,Editing\" } </string> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
... View more
10-15-2012
11:57 AM
|
0
|
0
|
1887
|
POST
|
I'm looking for the way to draw a line similar idea in arcobject rubberline.
... View more
09-28-2012
11:58 AM
|
0
|
0
|
181
|
POST
|
All, Does anyone know how to create a measure tool? Or is anthing like rubberband(concept in arcObject) to create a line? Thanks, Xiaoyi
... View more
09-27-2012
10:34 AM
|
0
|
2
|
2291
|
POST
|
You could update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls. dpaddock, Can you tell me how to update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls? Thanks xzhang
... View more
05-26-2011
04:38 AM
|
0
|
0
|
493
|
POST
|
Did you ever resolve the SWF cache issue? What the method you use? Thanks
... View more
05-25-2011
10:26 AM
|
0
|
0
|
493
|
POST
|
All, I can only zoom in to the level 18 for Bing Map Aerial and the level 19 for Bing Map Streets. But according to the Bing Map API(http://msdn.microsoft.com/en-us/library/bb259689.aspx), we should be able to see the data upto level 23. The Bing VeTileLayer in the flex viewer also resturns 23 levels. Does antone know why we cannnot see data below the level 18 and 19? Thanks, xzhang
... View more
05-24-2011
10:44 AM
|
0
|
2
|
2687
|
POST
|
Does anyone know why my blackberry curve cannot load map from my html page with arcGIS API for Javascript? It works on my iphone. Thanks
... View more
03-14-2011
06:54 AM
|
0
|
2
|
676
|
POST
|
Hi Sarthak, Can you point to me where I need to make a change to set field order? I tried 1. private function basewidget_creationCompleteHandler(event:FlexEvent):void { editor.attributeInspector.setStyle("skinClass", EditWidgetAttributeInspectorSkin); editor.attributeInspector.formItemsOrder = "none"; // The order of the form items. Possible values are "none" (no order), "label" (order by label value) and "fieldInspector" (order by the field inspector definition sequence). map.infoWindow.label = attributesLabel; editor.attributeInspector.addEventListener("attachmentGroupClicked", attachmentGroupClickedHandler); editor.attributeInspector.addEventListener("okButtonClicked", okButtonClickHandler); } 2. private function populateEditor(array:Array):void { featureLayers = []; if (oplList && oplList.length > 0) { for (var j:int = 0; j < oplList.length; j++) { var opLayerType:String = oplList .type var doNotAddFeatureLayer:Boolean = false; if (opLayerType.toLowerCase() == "feature") { // loop through all the excludeLayers for (var n:int = 0; n < excludeLayers.length; ) { if (oplList .layer.name == excludeLayers ) { doNotAddFeatureLayer = true; break; } else { n++; } } if (!doNotAddFeatureLayer) { // always turn the layer on by default oplList .visible = true; ViewerContainer.dispatchEvent(new AppEvent(AppEvent.MAP_LAYER_VISIBLE, oplList )); oplList .layer.removeEventListener(FeatureLayerEvent.SELECTION_COMPLETE, featureLayer_selectionComplete); oplList .layer.addEventListener(FeatureLayerEvent.SELECTION_COMPLETE, featureLayer_selectionComplete, false, 1); //store the infoWindowRendere foe each feature layer dictionary[oplList .layer] = oplList .layer.infoWindowRenderer; oplList .layer.infoWindowRenderer = null; // assign it to null, as editor overtakes now featureLayers.push(oplList .layer); } } } } // always call deactive first deactivateEditor(); if (featureLayers.length > 0) { editor.map = map; editor.featureLayers = featureLayers; editor.attributeInspector.formItemsOrder = "none"; // The order of the form items. Possible values are "none" (no order), "label" (order by label value) and "fieldInspector" (order by the field inspector definition sequence). } } Both places did not change the field order. Thank you in advance xiaoyi zhang Hey Jason, The Edit Widget is using the out-of-box Editor component. The Editor component uses AttributeInspector(http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/Editor.html#attributeInspector) to show/edit the attribute fields. You can order the fields by using AttributeInspectot.formItemsOrder(http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/AttributeInspector.html#formItemsOrder) property Here's a sample of how it is done using the API(you could do something similar in the Edit Widget's code, In this case the fields are ordered using the fieldInspector) : http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=AttributeInspectorOutsideMap As far as snapping is concerned, it is not there right now, but we still have plans to add it sometime in a future release. Hope that helps.
... View more
12-06-2010
04:19 AM
|
0
|
0
|
517
|
POST
|
Hi, Does anyone have sample code to implement the geometry service for intersect in Flex Application? Thanks in advance. xiaoyi zhang
... View more
11-23-2010
06:05 AM
|
0
|
0
|
371
|
POST
|
Hi, I'm trying to remove or disable a widget from flex code in another widget. For example, remove or disable editor widget from splash widget. It has to be done from code not config.xml. Thanks in advance, xiaoyi zhang
... View more
11-22-2010
08:04 AM
|
0
|
1
|
536
|
POST
|
Hi Datt, Is there anyway we can make the attributeInspector as floating widget. Right now, If I add a point and the attribute window extented to the outside of buttom map and I cannot move it. Thanks, xiaoyi zhang Hey Jason, The Edit Widget is using the out-of-box Editor component. The Editor component uses AttributeInspector(http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/Editor.html#attributeInspector) to show/edit the attribute fields. You can order the fields by using AttributeInspectot.formItemsOrder(http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/AttributeInspector.html#formItemsOrder) property Here's a sample of how it is done using the API(you could do something similar in the Edit Widget's code, In this case the fields are ordered using the fieldInspector) : http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=AttributeInspectorOutsideMap As far as snapping is concerned, it is not there right now, but we still have plans to add it sometime in a future release. Hope that helps.
... View more
11-10-2010
10:38 AM
|
0
|
0
|
517
|
POST
|
All, I cannot set a form caption in code. The subroutine is called from the page onLoad/onSetactive event. But the form caption does not change. Sub getPageNum(pageNum) Dim numPages numPages = 0 Dim mForm Set mForm = ThisEvent.Object.Parent Dim pPage For Each pPage In mForm.Pages numPages = numPages + 1 Next mForm.Caption = Application.Map.EditLayer.Name + " 1 of " + cStr(numPages) End Sub
... View more
07-14-2010
07:42 AM
|
0
|
1
|
442
|
POST
|
All, Is there anyway the domainfield not sorted in AXF file. IN the MXD, the field with domain displays correctly but not in AXF file. The domainfield in AXF seems sorting description automatically.
... View more
07-14-2010
05:37 AM
|
0
|
0
|
326
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|