POST
|
Dear Yusuf, Thanx for reply, i am using the same example as given in the MapLegend. i have attaching the Java code . Please have a look . Thanks
... View more
04-08-2015
07:06 AM
|
0
|
0
|
242
|
POST
|
Hi, I am trying to create dynamic legend with ArcGISLocalTiledLayer but its not returning any layer inside it. private ArcGISLocalTiledLayer localTiledLayer; String basemap = landDataFile + File.separator + offlineDataSDCardDirName + File.separator + filename; localTiledLayer = new ArcGISLocalTiledLayer(basemap); for (ArcGISLayerInfo layerInfo : localTiledLayer .getLayers()) { } I am following the example of MapLegend which is done with ArcGISDynamicMapServiceLayer. Please assist me where i am getting wrong . Thanks
... View more
04-08-2015
12:24 AM
|
0
|
2
|
2698
|
POST
|
Hello, I am trying to make query with Local geodatabase, Using ArcGIS Android API 10.2.5 When i am trying to get the records it through the exception as i am new in android development for java, Can any one please review my code and solve the problem. I have attached the attachment for exception and code below. mMapView.setOnSingleTapListener(new OnSingleTapListener() { @Override public void onSingleTap(final float x, float y) { QueryParameters q = new QueryParameters(); // optional q.setWhere("1=1"); q.setOutSpatialReference(mMapView.getSpatialReference()); q.setReturnGeometry(true); q.setOutFields(new String[]{"*"}); q.setInSpatialReference(mMapView.getSpatialReference()); { Future<FeatureResult> resultFuture= geodatabaseFeatureTable.queryFeatures(q, new CallbackListener<FeatureResult>() { @Override public void onError(Throwable ex) { // Highlight errors to the user. showToast("Error querying FeatureServiceTable"); } @Override public void onCallback(FeatureResult objs) { // If there are no query results, inform user. if (objs.featureCount() < 1) { showToast("No results"); return; } else { // Report number of results to user. showToast("Found features."); for (Object objFeature : objs) { showToast("Feature found inside for loop"); } } } }); try { for (Object element : resultFuture.get()) { if (element instanceof Feature) { // element is of type Feature for queries without out-statistics Feature f = (Feature) element; showToast("Feature found inside for loop2"); } } } catch (InterruptedException e) { e.printStackTrace(); } catch (ExecutionException e) { e.printStackTrace(); } } }); }
... View more
03-24-2015
04:46 AM
|
0
|
0
|
2855
|
POST
|
Hi , I am new in Android Development so i am not able to figure out the problem, trying to get the result on singletab using offline geodatabase. Following are the code Its not returning the result and control is not going inside the onCallback method. Please help me in resolving this . @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // create the path to local tpk landDataFile = Environment.getExternalStorageDirectory(); offlineDataSDCardDirName = this.getResources().getString(R.string.offline_dir); filename = this.getResources().getString(R.string.local_tpk); fileNameGeoDatabase = this.getResources().getString(R.string.local_geodatabase); // create the url String basemap = landDataFile + File.separator + offlineDataSDCardDirName + File.separator + filename; String geodatabasepath = landDataFile + File.separator + offlineDataSDCardDirName + File.separator + fileNameGeoDatabase; // for accessing the featurelayer using geodatabase try { geodatabase = new Geodatabase(geodatabasepath); } catch (FileNotFoundException e) { e.printStackTrace(); } geodatabaseFeatureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(1); // Create feature layer and add the map into it. featureLayer = new FeatureLayer(geodatabaseFeatureTable); // featureLayer.getSelectedFeatures(); featureLayer.setSelectionColor(12828800); // added for identity featureLayer.setSelectionColorWidth(30); //added for identity // create the mapview mMapView = (MapView) findViewById(R.id.map); // create the local tpk localTiledLayer = new ArcGISLocalTiledLayer(basemap); // add the layer mMapView.addLayer(localTiledLayer); mMapView.addLayer(featureLayer); Envelope env = new Envelope(398646.635989773, 2941161.63084675, 399056.211808925, 2941234.25911701); mMapView.setExtent(env); // enable panning over date line mMapView.enableWrapAround(true); // set Esri logo mMapView.setEsriLogoVisible(false); mMapView.setOnStatusChangedListener(new OnStatusChangedListener() { public void onStatusChanged(Object source, STATUS status) { // Check to see if map has successfully loaded if ((source == mMapView) && (status == STATUS.INITIALIZED)) { // Set the flag to true mIsMapLoaded = true; } } }); mMapView.setOnSingleTapListener(new OnSingleTapListener() { @Override public void onSingleTap(float x, float y) { // geoDataBaseQuery(); // convert event into screen click featureLayer.clearSelection(); pointClicked = mMapView.toMapPoint(x, y); QueryParameters q = new QueryParameters(); // optional q.setWhere("1=1"); q.setOutSpatialReference(mMapView.getSpatialReference()); q.setReturnGeometry(true); q.setSpatialRelationship(SpatialRelationship.INTERSECTS); q.setGeometry(pointClicked); q.setInSpatialReference(mMapView.getSpatialReference()); // q.setSpatialRelationship(SpatialRelationship.INTERSECTS); // featureLayer.selectFeatures(q,SelectionMode.NEW,callback); featureLayer.selectFeatures(q,SelectionMode.NEW, new CallbackListener<FeatureResult>() { @Override public void onError(Throwable ex) { // Highlight errors to the user. showToast("Error querying FeatureServiceTable"); } @Override public void onCallback(FeatureResult objs) { // If there are no query results, inform user. if (objs.featureCount() < 1) { showToast("No results"); return; } else { // Report number of results to user. showToast("Found " + objs.featureCount() + " features."); // Iterate the results and select each feature. for (Object objFeature : objs) { Feature feature = (Feature) objFeature; featureLayer.selectFeature(feature.getId()); } } } }); } }); }
... View more
03-16-2015
08:07 AM
|
0
|
0
|
2717
|
POST
|
Hi, How can we make the Identify task and query task on the geodatabase. Please provide me with any example or link. Thanks,
... View more
03-11-2015
11:15 AM
|
0
|
0
|
3593
|
POST
|
Hi, i have issue in exporting the Arabic data into excel file, can any one explain me the issue to resolve it. I have attached the sample project for the reference.
... View more
09-04-2014
04:58 AM
|
0
|
0
|
2393
|
POST
|
Dear Rober, Please try to look into this issue once again i tried to follow all yours instruction but the delete button is still visible there is no any effect on it. Thanks. Dear Robert, I tried this before but it was not working so i posted this issue in the forum to get the solution. Thanks, siddiqui
... View more
02-27-2014
08:47 AM
|
0
|
0
|
82
|
POST
|
Dear Robert, I tried this before but it was not working so i posted this issue in the forum to get the solution. Thanks, siddiqui Siddiqui, If you are sure you made my suggested change in the EditWidgetRelationshipInspectorSkin.mxml then there is nothing else I can help you with.
... View more
02-24-2014
09:45 AM
|
0
|
0
|
566
|
POST
|
Robert, I am sorry but my question was same that after passing false its not getting disable. Please refer my starting question with attachment. Regards, Siddiqui siddiqui, Wow today is my day for everyone wanting me to do all the work for them... If you look in the edit widgets folder you will find the EditWidgetRelationshipInspectorSkin.mxml in there you will find this: <esri:AttributeInspector id="attributeInspector"
width="100%" height="100%"
deleteButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorCancel')}"
deleteButtonVisible="{hostComponent.editEnabled}"
excludeFrom="queryRelatedRecords,noRelationships,noRelatedRecords"
okButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorAdd')}"
okButtonVisible="{hostComponent.editEnabled}"
skinClass="com.esri.ags.skins.RelationshipInspectorAttributeInspectorSkin"
updateEnabled="{hostComponent.editEnabled && hostComponent.featureLayer.isEditable}"/> I guess you could just change that to false.
... View more
02-24-2014
09:09 AM
|
0
|
0
|
566
|
POST
|
Robert, I don't want to disable the edit feature, just i want to disable the delete button from the relational table. Thanks, siddiqui Siddiqui, In the EditWidget change these lines of code: <esri:RelationshipInspector id="relationshipInspector"
width="{Math.max(map.infoWindowContent.width, 300)}" height="{Math.max(map.infoWindowContent.height, 300)}"
editEnabled="false"
infoWindowLabel="{relatedRecordsLabel}"
skinClass="widgets.Edit.EditWidgetRelationshipInspectorSkin"/>
... View more
02-24-2014
07:45 AM
|
0
|
0
|
566
|
POST
|
Hi Robert, Please try to give me the solution, i tried all the possibilities to pass the value as false but there is no changes in the deleteButtonVisible, although okButtonVisible is working fine when i am passing false. If i have to changes in the skin then could you please provide me the skinClass so that i can apply it. Thanks, Siddiqui Dear Robert, I tried the code but there is no any effect in the relational table , it still appears.
... View more
02-24-2014
06:39 AM
|
0
|
0
|
566
|
POST
|
Dear Robert, I tried the code but there is no any effect in the relational table , it still appears. Siddiqui, In the EditWidget.mxml try adding this line in the basewidget_WidgetConfigLoaded function: editor.attributeInspector.deleteButtonVisible = false; When you are asking a question about a widget please post the question in the Flex Viewer forum and not the Flex API forum. This will save me the step of moving your post to the proper forum.
... View more
02-21-2014
06:38 PM
|
0
|
0
|
566
|
POST
|
Hi, I am using Edit Widget, I need to disable or remove the deleteButton from the AttributeInspector which its showing the records of relationship table. I tried to do the changes here but no luck. <esri:AttributeInspector id="attributeInspector" width="100%" height="100%" deleteButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorCancel')}" deleteButtonVisible="false" excludeFrom="queryRelatedRecords,noRelationships,noRelatedRecords" okButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorAdd')}" okButtonVisible="{hostComponent.editEnabled}" skinClass="com.esri.ags.skins.RelationshipInspectorAttributeInspectorSkin" updateEnabled="{hostComponent.editEnabled && hostComponent.featureLayer.isEditable}"/> Any Idea how can i do it. Thanks and Regards, Siddiqui
... View more
02-20-2014
02:54 AM
|
0
|
10
|
905
|
POST
|
Thank you very much it done. Shabbir, Here is what you can do. You will have to create a skin for the directions component and set the skinClass to your new skin on the Directions component in the DirectionsWidget.mxml. You will need to change the path to two of the assets in the DirectionsSkin.mxml (that comes in the API download). I have done all of this in the attached file. Copy the DirectionsSkin.mxml and the assets/images folder into your Directions widget folder. Be sure to make this change in the DirectionsWidget.mxml: <viewer:WidgetTemplate id="wTemplate" closed="widgetClosedHandler(event)"> <esri:Directions id="directions" skinClass="widgets.Directions.DirectionsSkin" width="100%" height="100%" directionsComplete="{map.infoWindow.hide()}" map="{map}"/> </viewer:WidgetTemplate>
... View more
02-16-2014
08:12 PM
|
0
|
0
|
219
|
POST
|
Hi , I want to put clear Button in Directions widget parallel to Get Direction Button, So that it should not get disturb when we are adding more Destination. Any Idea. Regard, siddiqui
... View more
02-15-2014
09:10 PM
|
0
|
2
|
633
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|