|
POST
|
Hi Daniel - can you add more information about the exception - the AddtionalMessage, ErrorCode, ErrorDomain, and also all the details from the Cause if that's set. Also post more information about your custom location data source class - what happens in your startup code? I tried calling the method with an Exception object but then the LocationDataSource wouldn't start at all. You'd pass in an exception to the start completed if your own code caught an exception and then wanted to pass that back to the location listeners to indicate to consumers that the startup failed.
... View more
01-09-2018
01:57 AM
|
0
|
0
|
680
|
|
POST
|
Hi Jason, There's no explicit way to set the maximum visible extent of a Map - that is taken automatically from the Basemap when it loads, as you state above. You're talking about having the maximum extent as -180-180, -90-90, so I'm assuming that your TPK might be in WGS84, or some other similar global spatial reference? You could create the Map from the same SpatialReference as your TPK (as tiles are not reprojected, then you'd need to do this so the layer displays). At that point the map has the full extent you wanted. Then set your Basemap after that. (Bear in mind that TPKs might have min/max scales and extents that mean the layer is not visible by default, so you might want to consider the map tools you provide to bring the layers back into view for your users.) Hope this helps, Shelly
... View more
11-21-2017
02:50 AM
|
0
|
1
|
914
|
|
POST
|
Hi Marcus, The LayerList you get back from getOperationalLayers contains all sorts of layers, so it uses the high-level Layer class. Try casting to FeatureLayer - that class exposes the getFeatureTable method - FeatureLayer| arcgis-android . e.g. for (Layer layer : mMapView.getMap().getOperationalLayers()) {
if (layer instanceof FeatureLayer) {
FeatureLayer featureLayer = (FeatureLayer) layer;
FeatureTable featureTable = featureLayer.getFeatureTable();
// use FeatureTable...
} Hope this helps, Shelly
... View more
11-21-2017
02:07 AM
|
0
|
1
|
984
|
|
POST
|
To futher Alexanders reply above, there's a great example of using this method to build a TOC in the Offline Mapbook example app. The app is described here - Offline Mapbook for Android | ArcGIS for Developers - this topic also includes a link to the source code on GitHub so you can use this as a starting point if this helps.
... View more
10-30-2017
03:54 AM
|
1
|
0
|
1603
|
|
POST
|
An update to this questions - with the latest release of the ArcGIS Runtime, you can now create custom tiled layers, using the WebTiledLayer class. This sample demonstrates how to do this - arcgis-runtime-samples-android/web-tiledlayer at master · Esri/arcgis-runtime-samples-android · GitHub
... View more
06-30-2017
02:05 AM
|
2
|
5
|
2121
|
|
POST
|
Sorry ANohe-esristaff, I dont have any public info available on that - it will be announced on the blogs though!
... View more
06-26-2017
08:24 AM
|
1
|
0
|
1220
|
|
POST
|
Also look out for a new method in the next release - `GeometryEngine.combineExtents` is aimed at this sort of use - you will be able to pass in any type of geometry, either two single geometries, or an Iterable, and get back an Envelope that's the extent of all the geometries passed in. Until then Alexanders way works well!
... View more
06-23-2017
01:59 AM
|
2
|
2
|
1220
|
|
POST
|
Just to add to Alexanders reply, you can add the TPK files as layers in a map by using ArcGISTiledLayer and TileCache. Create a TileCache by passing in the path to the TPK file, and then pass this to the constructor of the ArcGISTiled Layer, as shown here: TileCache| arcgis-android For editing - correct that you cant really edit an MMPK (you could try by accessing the FeatureLayer methods, but you wouldnt be able to save or sync any changes) - as Alexander says, we're working on this workflow for an upcoming release. So if you need to develop something now - go ahead and use the existing tasks that Alexander linked to - you'll be able to update and simplify your code later on to use the new task - code will have a lot of similarities). Hope this helps, Shelly
... View more
06-16-2017
09:20 AM
|
1
|
0
|
2223
|
|
POST
|
Thanks Tércyo Storck. If this is specifically a problem on 64-bit devices (same project runs fine on Armv7-A devices), then the advice in this stackoverflow post may be useful: How to use 32-bit native libraries on 64-bit Android device - Stack Overflow . Our 100.0 release doesn't include 64-bit native libraries, but 64-bit devices run 32-bit libraries OK. However, if the OS loads another dependency that does have 64-bit libraries, prior to loading our SDK, then the OS will be looking for 64-bit libraries for all other dependencies, which means loading our 32-bit native library (libruntimecore_java.so) will fail at runtime. Hence Alexander Nohe asking about dependencies, above. A solution to this general problem is to filter out 64-bit native libraries from the APK, so the OS is then expecting all libraries to be 32-bit. We're considering including 64-bit specific libraries in future releases. Let us know if you try this solution and it doesn't help.
... View more
04-28-2017
02:32 AM
|
1
|
0
|
858
|
|
POST
|
Also Tércyo Storck , could you post exactly what model phone you're having problems with? Looks like there's a few variants of a Zenfone 2, some are x86 chips and others are x64.
... View more
04-21-2017
04:17 AM
|
1
|
1
|
858
|
|
POST
|
Maybe you already found this info, but you can find out how to serve time-aware services here: - Serving time-aware layers—Documentation | ArcGIS Enterprise This links to the desktop information as well, on how to configure the time-aware data in ArcMap that you then use to publish your service. Once that's set up you can then look at the API in Android that Alexander pointed out.
... View more
04-21-2017
04:01 AM
|
1
|
0
|
1235
|
|
POST
|
Hi Antonio - you might want to look at using the AuthenticationManager - this can take care of authenticating at runtime - it's pretty simple to set up and described here - Access the ArcGIS platform: Authentication Manager—ArcGIS Runtime SDK for Android | ArcGIS for Developers .
... View more
04-12-2017
02:33 AM
|
0
|
0
|
848
|
|
POST
|
Hi Brian - thanks for the extra info - unfortunately I'm still not able to repro your issue. My device has location services turned off, the app has been granted Location permissions (as I'm running Android API 25), the LocationDisplay has been started as per your code, I've not got any calls to the LocationChangedListener yet, and I can set AutoPanMode without getting any crashes - when I do set it I get a location changed call, the Location position is null (expected) at that point. Does your app already have Location permissions? What version of Android API are you running against? Shelly
... View more
03-17-2017
05:08 AM
|
0
|
1
|
1166
|
|
POST
|
Hi Brian, Can you give some more details on exactly what's happening in your code? I cant reproduce the crash with the v100.0.0 release currently. I have tried starting the LocationDisplay while location services are turned on, then turning them off, and then setting AutoPanMode; also tried with location services turned off to start with, and a few other workflows, but got no crash. Do you have any listeners (LocationDisplay.DataSourceStatusChangedListener| arcgis-android , LocationDisplay.AutoPanModeChangedListener| arcgis-android , LocationDisplay.LocationChangedListener| arcgis-android ) set up? Does your app already have Location permissions? What version of Android API are you running against? Thanks Shelly
... View more
03-15-2017
08:22 AM
|
0
|
4
|
1166
|
|
POST
|
As far as I know, spaces were never allowed in shapefile filenames, according to the spec - filenames should really be 8.3 format, with no spaces, only using alphanumerics, underscore or hyphen. I would not consider it a bug if spaces in the file name don't work. I think you can have a space in the file path (e.g. directory), but not the actual filename. Hope this helps, Shelly
... View more
03-10-2017
06:40 AM
|
1
|
0
|
733
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-03-2024 10:08 AM | |
| 1 | 01-02-2024 08:09 AM | |
| 1 | 11-07-2023 01:44 AM | |
| 1 | 08-03-2018 03:54 AM | |
| 1 | 03-07-2017 02:12 AM |