POST
|
Ask teacher to instruct, how should this solve?Thank you! (ArcGIS API for JavaScript 4.9 )
... View more
10-22-2018
08:08 AM
|
1
|
1
|
497
|
POST
|
question:Click Android device screen, the value is null ids variables, don't get data? Please help analyze possible causes! Thank you teacher! 1、develop environment: ArcGIS for Android 10.2.4 Eclipise + ArcGIS Map 10.3 share runtime GeoDatabase 2、Code public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mMapView = new MapView(this); mMapView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT)); String urltpk=Environment.getExternalStorageDirectory().getPath()+"/map/map2.tpk"; ArcGISLocalTiledLayer arm= new ArcGISLocalTiledLayer(urltpk); mMapView.addLayer(arm,0); String urldata= Environment.getExternalStorageDirectory().getPath()+"/map/map2.geodatabase"; try { db=new Geodatabase(urldata); } catch (FileNotFoundException e) { e.printStackTrace(); } featureTable= db.getGeodatabaseTables().get(0); featureLayer= new FeatureLayer(featureTable); mMapView.addLayer(featureLayer,1); mMapView.setOnSingleTapListener(new OnSingleTapListener() { public void onSingleTap(float x, float y) { long[] ids = featureLayer.getFeatureIDs(x,y,30); // ids is empty, get less data, please help Analysis reason? if (ids.length > 0 && ids != null) { Feature feature = featureLayer.getFeature(ids[0]); } } }); setContentView(mMapView);
... View more
11-09-2015
06:09 AM
|
0
|
1
|
3432
|
POST
|
I am a concerned fan of ArcGIS! This link, Code Attachment download the contents of the template with the introduction of the match. http://www.arcgis.com/home/item.html?id=eaa6e54219684ca0bef9f5056662f6d3 Where should download this template ? Email:165113@qq.com
... View more
10-16-2011
04:45 AM
|
0
|
2
|
3721
|
Title | Kudos | Posted |
---|---|---|
1 | 10-22-2018 08:08 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|