POST
|
Was the issue exclusive to the implicit brackets from the JavaDoc class description? We can remove them in the next release. Let me know if there is/was an issue beyond including the brackets with your Bing Maps Key.
... View more
10-08-2012
06:25 PM
|
0
|
0
|
1226
|
POST
|
Are you trying to set the visibility of the grid behind the map? That grid is the map background. The Grid returned from the MapView.getGrid() method is a Grid on the map itself not behind. Map Grids display index and geographic reference grids on a map, e.g. a degrees/minutes/seconds (DMS) grid label identifies the map grid using degrees, minutes, and seconds. By default the MapView Grid is set to NONE. The available grids can be viewed by the Enum Grid.GridType in the JavaDoc API. Currently we only support NONE (default) and Military Grid Reference System (MGRS). This may be a bit confusing as our generic Grid class isn't explicit in it's definition and there is a Grid present behind the map by default. We have addressed the error you were receiving and that will be fixed in our upcoming v2.0 release. But unfortunately, unless you were working with map grids, as shown in the code below, there is currently not a way to set the visibility to the background grid. //add a MGRS grid to the map MapView.getGrid().setGridType(GridType.MGRS); Visibility is set to true by default.
... View more
06-20-2012
03:30 PM
|
0
|
0
|
477
|
POST
|
You can populate the attributes of a graphic after it has been created using the GraphicsLayer.updateGraphic() method. Once a Graphic is added to a GraphicsLayer it is assigned a UID. This is currently by design so you cannot specify a UID on a new Graphic. The overloaded Graphic constructor that takes a UID parameter is an issue we are working on. As you have observed, when you assign a UID with that constructor it will not be honored with a returned Graphic from GraphicsLayer. We are looking to address this issue. If I understand your scenario correctly, you need to update a graphic with attributes based on user clicking on the graphic. You can use the screen coords x, y from the MapView listener to identify which Graphic you want to update. Below is an example:
mMapView.setOnLongPressListener(new OnLongPressListener() {
private static final long serialVersionUID = 1L;
@Override
public void onLongPress(float x, float y) {
int[] guids = gLayer.getGraphicIDs(x, y, 10);
if(guids.length != 0){
Graphic gr = gLayer.getGraphic(guids[0]);
int uid = gr.getUid();
Map<String,Object> attr = gr.getAttributes();
attr.put("name", "Test");
gLayer.updateGraphic(uid, attr);
Log.d("Test", "Graphic attr update name = "+ gr.getAttributeValue("name"));
}
}
... View more
05-11-2012
03:27 PM
|
0
|
0
|
421
|
POST
|
The fix is included with our recent v1.1.1 release. The API has not changed but the logo is now available in the SDK.
... View more
05-10-2012
11:25 PM
|
0
|
0
|
945
|
POST
|
Are you specifically wanting to use the Viewshed service? If so, it does not support asynchronous execution. Before you can use the Geoprocessing task you have to know whether the task is asynchronous or synchronous. This is described in the ArcGIS Services Directory.
... View more
05-10-2012
11:12 PM
|
1
|
0
|
1498
|
POST
|
We have addressed this issue with the plugin. Please download v1.1.1 released today to resolve this issue.
... View more
05-10-2012
08:43 PM
|
0
|
0
|
1356
|
POST
|
Is there a specific question on this thread? I understand you are frustrated, please explain the exact issue you are having and I seek some answers for you. BTW: We have been testing the updated emulator provided by Google and recently posted a workflow which works on all supported platforms > http://blogs.esri.com/esri/arcgis/2012/05/02/arcgis-runtime-sdk-for-android-v1-1-supports-android-emulator/.
... View more
05-03-2012
04:25 AM
|
0
|
0
|
469
|
POST
|
Good catch! Thanks for pointing this out. We have marked this as a bug and will have it addressed in our upcoming release.
... View more
03-01-2012
07:44 AM
|
0
|
0
|
229
|
POST
|
Are you interested in viewing the RPF (Raster Product Format) as a map service or as a local tile layer? Direct read of RPF data is not supported in the Android API but you can do one of the following to view the data on in your Android Application. 1. Map Service Create your map in ArcGIS Desktop and publish it as a MapService to ArcGIS Server. 2. Local Tile layer Create a map cache and store the data locally on your device. The data for this layer must be in an ArcGIS Compact Cache format. The path used in the constructor of the ArcGISLocalTiledLayer must point to the Layers folder e.g. ArcGISLocalTiledLayer local = new ArcGISLocalTiledLayer("file:///mnt/sdcard/<CacheName>/Layers");
... View more
02-14-2012
10:19 AM
|
0
|
0
|
315
|
POST
|
What's the proper way to recycle/destroy/free up resources for an ArcGIS Map? You should implement the following Activity methods in the class with your MapView
MapView map;
//*******
//********
@Override
protected void onDestroy() {
super.onDestroy();
map.recycle();
}
@Override
protected void onPause() {
super.onPause();
map.pause();
}
@Override
protected void onResume() {
super.onResume();
map.unpause();
}
We do not support multiple MapViews with this release of the SDK. This is a limitation of our current implementation and there is no workaround unfortunately. We are working to resolve this in the next release.
... View more
02-14-2012
08:51 AM
|
0
|
0
|
1032
|
POST
|
These classes were removed in the release API. By removing these classes we no longer support extending the base classes to create customized layers. You can override the 'getTile()' method on the TiledLayer class to create customized layers. Please share your use case if you continue to have issues refactoring your code to the release API.
... View more
01-26-2012
09:02 AM
|
0
|
0
|
295
|
POST
|
A lot has changed between beta SDK and release with respect to the MapView so you may need to refactor your code a bit. Can you share the code on how you are instantiating the MapView component?
... View more
01-25-2012
01:46 PM
|
0
|
0
|
1344
|
POST
|
Can you confirm whether you are using a device or emulator? We do not support the emulator so you must deploy to a device.
... View more
01-25-2012
01:43 PM
|
0
|
0
|
625
|
POST
|
Yes, this is supported in the SDK. To use a service that requires tokens, you must first obtain a token, and then embed the token in your application. Once you have a valid token you can add it to your application code using the ArcGISFeaturelayer constructor. In order to create a token based secure layer you must construct a UserCredential with a token and pass it into the ArcGISFeaturelayer constructor.
UserCredentials credentials =new UserCredentials();
credentials.setUserToken("PLACE_YOUR_TOKEN_HERE", "URL_REFERRER");
tokenLayer = new ArcGISFeatureLayer("SECURE FEATURE SERVICE URL", MODE.SNAPSHOT, credentials);
Replacing BOLD text with appropriate parameters. The same philosophy applies to WebMap. Do not put a token based URL as your web map layer�??s URL. The correct way to include a secure layer in webmap. 1. Include the layer�??s URL without a token 2. If layer initialization fails and it is a security exception, ask for user�??s credential 3. Re-initialize the layer with user credential.
... View more
01-25-2012
12:37 PM
|
0
|
0
|
226
|
POST
|
This workflow is unsupported as we only support one map running in an application at a time. This is a known issue with our current release of the SDK and we are looking into supporting this in the future.
... View more
01-25-2012
12:26 PM
|
0
|
0
|
1032
|
Title | Kudos | Posted |
---|---|---|
1 | 08-28-2014 11:13 AM | |
1 | 04-29-2015 06:36 PM | |
1 | 09-15-2014 12:01 PM | |
1 | 06-02-2017 04:43 PM | |
1 | 01-21-2015 07:00 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|