POST
|
Hi Ahmet, Basically yes, one is a new ID and one is an old ID - the info in this article has more detail - FAQ: Why does ArcGIS Online use a deprecated spatial reference (102100) for hosted services? Hope this helps, Shelly
... View more
03-16-2018
07:50 AM
|
1
|
1
|
27277
|
POST
|
Hi Cora, I'm afraid there's currently no way in the Runtime SDK to create new FeatureLayers from scratch. If you're displaying the same layer again, and want to reselect the same features as were selected last time, then you could try persisting the ObjectIDs of the features returned from `FeatureLayer.getSelectedFeaturesAsync`, and then re-select them when the app restarts with `FeatureLayer.selectFeaturesAsync` (you'd have to build a query containing all the IDs). Hope this helps some, Shelly
... View more
02-27-2018
01:46 AM
|
2
|
1
|
508
|
POST
|
Yes, if you're not bothered about the KML aspect at all, then I agree it makes more senses to serialize more directly. You'd have to serialise attributes separately, but that should be fairly straightforward.
... View more
01-29-2018
02:13 AM
|
1
|
0
|
1306
|
POST
|
No problem. Sounds like perhaps what you're asking for is similar to click-dragging a rectangle with a mouse - a rectangle in screen coordinates, the sides being aligned with the sides of the screen? The SketchEditor doesnt have anything that can draw a rectangle like that - it works with geometries in map coordinates, so a rectangle aligned with the screen would not always be the same as an Envelope geometry in map coords aligned with spatial reference. If this indeed what you were wanting to do, I'd suggest writing a custom touch listener for the MapView, and working screen coordinates there. You'd have to draw the rectangle shape yourself - I've used very simple solution before of resizing a child View on top of the MapView to represent a user touch location, but there's various ways to achieve something similar I think, I'd probably start on StackOverflow! Alternatively if you want something simple and can be flexible on the search geometry, using the standard or freehand polygon sketch modes in the SketchEditor for users to sketch a rough map area they want to search can be a good idea. Another approach is just to prompt the user to resize the map to show the area they want to use for the search. Hope this helps somewhat, Shelly
... View more
01-26-2018
03:50 AM
|
0
|
0
|
854
|
POST
|
Hi Ahmet, Yes, that sounds feasible to me to loop through all the Graphics in a GraphicsOverlay and save out each one. I'm not a KML expert, but I think you'd look at creating a KML Placemark for each Graphic, and create a single KML Geometry onto each Placemark based on the Geometry of the Runtime Graphic. A Point geometry will be relatively straightforward, but a Polygon or Polyline would be more complex, and the KML spec for Geometries (KML Reference | Keyhole Markup Language | Google Developers ) is not exactly the same as the Runtime geometries, so you'd have to do more work for those. My guess is you'd put the Attributes of the Runtime Graphic into the ExtendedData of the Placemark (although again, the models are different). I think one key point is that if you are in control of writing out exactly the KML that you read back in, you're probably OK. But if you want to be able to read in any KML from any source and try and translate that into Runtime graphics, that would be much less feasible, because of what the KML spec contains. Let us know how you get on with this if you try it! Regards Shelly
... View more
01-26-2018
02:20 AM
|
1
|
0
|
1306
|
POST
|
Hi Charles - I have just submitted an issue for us to update a number of things in the documentation for the samples - Updates required to readmes and wiki · Issue #443 · Esri/arcgis-runtime-samples-android · GitHub . Apologies for any time you've wasted here. You were on the right lines when you mentioned the `java` and `kotlin` subfolders - now we have both types of samples, you need to do the Import on either the `java` or the `kotlin` subfolder, depending on which language samples you want to use. (We're working on adding more of both, but currently, the Java samples have a much broader range of samples available). Let me know how you get on. Regards Shelly
... View more
01-25-2018
03:28 AM
|
0
|
0
|
978
|
POST
|
Hi Esther - you might find some of the Dev Labs useful - we have a Dev Lab which covers displaying a web map in a simple Android app - Display a web map | ArcGIS for Developers (this builds on a basic app where you create a map directly in code - just like the initial tutorial you followed). You can find all of the Android-specific Dev Labs here - Browse ArcGIS DevLabs | ArcGIS for Developers - there's also Dev Labs for users new to ArcGIS, covering importing and preparing data, and designing and configuring maps, so possibly you'll find these useful as well? (Not sure if you're also new to ArcGIS generally, or just the ArcGIS Runtime SDK for Android) - Get Started with ArcGIS DevLabs | ArcGIS for Developers . Cheers, Shelly
... View more
01-25-2018
03:24 AM
|
0
|
0
|
496
|
POST
|
Hi Ahmet - if you are using classes called GraphicsLayer and KmlLayer, then it looks like you are using the older 10.2.x version of the Runtime SDK - GraphicsLayer | ArcGIS Android 10.2.9 API - is that correct? This version will not be updated, so will not gain any more functionality. As Eric says above, the current release of the SDK - 100.2 - ArcGIS Runtime SDK for Android | ArcGIS for Developers does not have Kml read or write, but is in active development so more and more functionality will be added over time - I'd recommend you take a look at this latest version. There is no functionality in the SDK to specifically support writing out KML (and as far as I know, it is not planned functionality), so nothing 'simple and quick', no. However you could write your own xml serializing code to write out whatever files you need from a GraphicsOverlay (similar functionality to GraphicsLayer used in 100.2). For very simple KML, I've never done this, but I imagine this would be pretty feasible. KML can get quite complex though, and the model does not map directly to Graphics, so there would definitely be challenges here depending on what you need. Shelly
... View more
01-25-2018
03:18 AM
|
1
|
2
|
1306
|
POST
|
Hi - I'm afraid that sketching Envelopes with the sketch editor is not currently supported. (Envelopes are always aligned with the axes of the spatial reference, so works well on web mercator and similar systems, but can have some pretty weird effects in some cases.) Let us know what your use case is for sketching envelopes - you can't store them in geodatabases, so are you creating envelope graphics, or something else? Or are you interested in creating shapes that are not actually the GeometryType.ENVELOPE? You might want to head over to ArcGIS Ideas and post your suggestion there along with information about how you'd want to use this.
... View more
01-23-2018
01:32 AM
|
1
|
2
|
854
|
POST
|
Hi Nathan, If you're able to access your map via the ArcGIS.com URL, but not through your organization URL, I'd check your organizations settings. For example, settings like "Allow anonymous access to your organization". Possibly the ArcGIS Online documentation here may help - Configure security settings—ArcGIS Online Help | ArcGIS - this indicates: > "If you've disabled anonymous access to your organization, you can share maps, apps, and groups by sharing the item with everyone (public) and changing the URL of the item from your organization's private URL to the public ArcGIS Online URL (www.arcgis.com). For example, you could share one of your organization's maps with anonymous users by changing the URL from https://samplegis.maps.arcgis.com/home/webmap/viewer.html?webmap=fb39737f95a74b009e94d2274d44fd55 to https://www.arcgis.com/home/webmap/viewer.html?webmap=fb39737f95a74b009e94d2274d44fd55." Sounds like it could be the issue you're seeing. Hope this helps, Shelly
... View more
01-23-2018
01:23 AM
|
0
|
0
|
823
|
POST
|
Hi Prashanth, I would recommend starting with this topic in our Guide conceptual help system - Offline—ArcGIS Runtime SDK for Android | ArcGIS for Developers - this Fundamentals topic gives you an overview of how Offline works in the ArcGIS Runtime SDKs. It links to a lot of other information, including these two further Offline-specific topics: - Create an offline map—ArcGIS Runtime SDK for Android | ArcGIS for Developers - Create an offline layer—ArcGIS Runtime SDK for Android | ArcGIS for Developers You can follow up with more detailed info in the API reference for the specifically mentioned classes, for example OfflineMapTask| arcgis-android . You can take tiled map services offline, and this is described in the help topics. Also those topics describe taking feature services offline - you can also edit feature services offline, and then sync back the changes when you're online again. However you can't take dynamically-produced map image layers offline - the nature of those services is that a specific single image is produced each time a request is made, and the image covers the whole map extent - e.g. each time the user pans the map or changes the layers that are visible, a new image is returned from the server. Other offline functionality is available, such as offline geocoding and routing, and we'll be adding more offline functionality over time and future releases. Hope this helps get you started - post back if you have more questions. If you have specific questions, it would be great if you can start a new thread for each different question. Regards, Shelly
... View more
01-12-2018
02:25 AM
|
0
|
0
|
325
|
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
|
372
|
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
|
557
|
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
|
520
|
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
|
1033
|
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 |