POST
|
Hello. The 200.x ArcGIS Native SDKs for Native Apps (and 100.x ArcGIS Runtime SDKs) do not include any form of encryption; you don't need to submit any export compliance documentation because of the SDKs. Hope that helps. I'll see if we can include this information in the deployment pages. It doesn't come up often but I think it's a reasonable question.
... View more
10-24-2023
02:47 PM
|
1
|
0
|
713
|
POST
|
You need to create a AGSMobileMapPackage pointing at the folder you downloaded the offline map to. Load the AGSMobileMapPackage, then get the map from the maps collection. You can see that covered here. Unfortunately the iOS SDK code snippet has been removed, but you can get the gist from the Swift SDK snippet. https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/working-with-offline-maps/#access This doc is admittedly a little hard to find. We're working on revised and improved offline doc that should make this easier to discover.
... View more
10-05-2023
08:01 AM
|
1
|
1
|
1009
|
POST
|
Hi, To take a custom area of a map offline, you will need to use the On-Demand workflow. Each area that you download will be a separate offline map. So, for example, if you download two overlapping areas, they will be separate offline maps on your device and are not merged. You can learn more about the overall offline capabilities here.
... View more
08-21-2023
08:04 AM
|
0
|
0
|
487
|
POST
|
What's the crash once you have the correct signature for showSublayersDialog()? It should be different to the one in your original posting.
... View more
08-17-2023
08:36 AM
|
0
|
0
|
3693
|
POST
|
Hi Jonas! You can do this by setting the reference scale on the ArcGISMap, and then specifying that your feature layer should scale symbols. You might need to do some experimenting to get the behavior you want. Let us know how this works for you.
... View more
08-16-2023
09:53 AM
|
0
|
0
|
435
|
POST
|
The EstimateTileCacheSizeJob only works on image tile services. Vector Tile Services do not support an estimate operation. Are you sure you are calling EstimateTileCacheSizeJob on the vector tile service to get your number of 3180866? That should fail.
... View more
08-16-2023
08:56 AM
|
0
|
0
|
418
|
POST
|
I'm not an Android/Kotlin developer, but it looks like your signature for showSublayersDialog() is wrong. It looks like you need it to accept a View parameter (e.g. showSublayersDialog(View v)). See this documentation on the android:onClick attribute. The doc indicates that method should be public, but it looks like that's the default visibility for Kotlin, so you could be OK there.
... View more
08-16-2023
08:49 AM
|
0
|
0
|
3704
|
POST
|
As I mentioned in my response to your other question, there are many things to consider when taking data offline. What extent do you need (sounds like you want all of India, but often you only need areas where there is no network coverage for accessing services), what zoom levels do you need (it seems you want all zoom levels), and which basemap (Imagery? Streets?). For your requirements, just downloading the basemap from a service will not be practical, and may not even be possible (a basemap for all of India with full zoom levels will result in a very large file). But there are other ways to get this data, like with a product such as StreetMap Premium. I would suggest you contact your local Esri distributor to discuss options. If you're in India, that would be Esri India: https://www.esri.in/ They will be able to help you determine the best approach for your application, and provide the support you need to implement your solution.
... View more
08-11-2023
07:47 AM
|
0
|
4
|
2212
|
POST
|
You can find an example here: https://developers.arcgis.com/java/sample-code/export-tiles/ In that code, an area of the basemap is downloaded (exported) as a TPK (you can learn more about that here), and used to create a new basemap and a new map. Once it's downloaded to your device, you can just use it whenever you create a new map. If you need more help with this, please ask a new question as requested previously.
... View more
08-08-2023
08:26 AM
|
0
|
1
|
808
|
POST
|
Hi @PRAVEENPATNANA, As Colin mentioned, offline is a complex topic and there are a few ways you approach it. There is a diagram on this page which helps summarize where data comes from for offline work. You're already working with "Data files" with your shape file. What you have noticed is that you will also need to get a basemap to use offline. So far, you have been using our basemap service to use the basemap over the internet. There is no magic button that suddenly makes a basemap work offline. You have to deliberately download it first (either from our basemap service, or from a file you create using ArcGIS Pro). You will need to think about the requirements of your app to decide the best approach. Things to consider are zoom levels and overall extent. A basemap for all of India at all zoom levels will be huge and would take a long time to download. If you don't need to zoom in far, then you could create a basemap that is only used when zoomed out and that could be a lot smaller. Ultimately, you will have to think about how you need to use your data and the basemap offline. This video could also help: https://www.youtube.com/watch?v=VTD2omhGVdI I would also suggest that if you have further questions on this topic that you start a new thread so that other developers can find the discussion more easily (this thread started out as a question about Shapefiles in JavaFX). Hope that helps.
... View more
08-07-2023
10:08 AM
|
0
|
4
|
843
|
POST
|
Declaring map as optional means that it can be nil at some point. Your crash was because by using "!" you had said "I know it will never be nil when I use it", but it turned out it was nil. If you declare it as optional with "?", then Swift will check if the map is nil. You won't get a crash, but your code might be skipped. And you must include logic to acknowledge that it could be nil when you're using it. One common approach is optional binding using an "if let" block. So your code above could be included in an "if let" block: func Load_Municipality_Boundary() {
if let map = map {
self.munFeatureTable = AGSServiceFeatureTable(url: munCensus)
let munFeatureLayer = AGSFeatureLayer(featureTable: self.munFeatureTable)
map.operationalLayers.add(munFeatureLayer)
let censusFeatureTable = AGSServiceFeatureTable(url: URL(string: "https://services.gisqatar.org.qa/server/rest/services/Vector/Census_Municipality/FeatureServer/1")!)
map.tables.addObjects(from: [censusFeatureTable])
mapView.selectionProperties.color = .yellow
self.munFeatureLayer = munFeatureLayer
} else {
print("Map is not set!!")
}
} That "if {}" block will only execute if map is not nil. It's still up to you to make sure the "map" variable is set to an AGSMap instance, or you will see a "Map is not set!!" message written to the console. Optional variables are a fundamental Swift pattern, and not something specific to the ArcGIS Runtime SDK for iOS. I suggest you familiarize yourself with how optional variables are used in Swift. There are many tutorials and articles available online, such as this one. Ultimately though, you need to work out why your app is setting "map" to nil at some point, and make sure that you set the "map" variable to a new AGSMap again before you use it in the above code.
... View more
08-01-2023
08:07 AM
|
0
|
0
|
1600
|
POST
|
Beware the exclamation mark. This code is dangerous: var map: AGSMap! Declaring map as an implicitly unwrapped optional is stating that even though the variable is optional and can be nil, that you KNOW that whenever you access it, it will not be nil. Unfortunately, in your app, that's not the case. When you click "Maps" a second time and SetMapExtent() is called, the map variable above is nil. Make sure that it isn't and your code will get a bit further. But I would recommend not declaring it as an implicitly unwrapped optional in the first place. func SetMapExtent () {
let envelope = AGSEnvelope (xMin:216985.909, yMin:375531.776, xMax:241940.565, yMax:415497.915, spatialReference: self.mapView.spatialReference)
self.map.initialViewpoint = AGSViewpoint(targetExtent: envelope)
self.mapView.map = map
} However, self.mapView.spatialReference is also nil, so the envelope you create will have a nil spatial reference. That will also probably cause problems.
... View more
07-27-2023
06:57 AM
|
0
|
1
|
1632
|
POST
|
Hi. It looks like you've answered this yourself already. See your other question. The first place to look for samples in our samples app. Here's a KML sample, which you might already have found.
... View more
07-24-2023
09:49 AM
|
0
|
0
|
471
|
POST
|
Hello. You need a Standard license to access KML files stored locally on your device (see the licensing documentation). It looks like you have applied a license, but it is not a Standard license. Note that during development and testing (by not applying a license) you can test using a local KML file, but your app will have a watermark and you cannot deploy to production. Also note that KML accessed via the web (e.g. via https) can be used with a Lite license. Hope that helps.
... View more
07-24-2023
09:41 AM
|
0
|
0
|
524
|
POST
|
Your routeTask instance is being deallocated before the call can complete. Create an object level variable to hold on to the instance. See this sample code. Things like this are avoided with Swift Concurrency. You could use this library, which adds Swift Concurrency to most of the ArcGIS Runtime SDK for iOS (here's what solving a route looks like). Alternatively, its successor (ArcGIS Maps SDK for Swift) supports Swift Concurrency out of the box.
... View more
06-28-2023
06:39 AM
|
1
|
0
|
523
|
Title | Kudos | Posted |
---|---|---|
1 | 12-09-2024 10:16 AM | |
2 | 12-11-2024 11:12 AM | |
3 | 11-25-2024 07:29 AM | |
3 | 11-25-2024 07:36 AM | |
4 | 11-25-2024 07:10 AM |