POST
|
Hi - thanks for posting. Looking at your code, I think the issue is that you are letting the geotrigger monitor go out of scope here: val geotriggerMonitor = GeotriggerMonitor(predioGeotrigger) I suspect the monitor is getting garbage collected and then stops sending notifications because it is at local scope. Can you try changing your code to persist the geotrigger monitor? You need to hang on to it for as long as you want to monitor conditions. Hope that helps, Luke
... View more
11-02-2022
06:25 AM
|
1
|
1
|
1145
|
POST
|
Hi @arc_ticodex If you want to perform offline editing with a central data store then we would recommend using the sync framework. Here you would have a feature service that you would "take offline" to create a local replica geodatabase on your device. You can then perform editing against the local replica and when you are done you can "sync" your local changes back to the original feature service. This guide topic describes editing workflows and also includes a number of samples that should give you an idea about the workflows. > it is necessary that the feature data be from the enterprise geodatabase There are a number of options for how you store the underlying data - with ArcGIS Online you can create a hosted feature service for your data - see https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/how-to-create-a-hosted-feature-service/. In order to edit your data offline you need to make sure that the data is sync enabled etc. This topic covers how you can set up your feature data for offline use. I hope that helps, Luke
... View more
07-12-2022
05:35 AM
|
1
|
0
|
419
|
BLOG
|
This is the first of several blog posts discussing offline workflows for developers using ArcGIS Runtime. In this blog, I will share tips and tricks to help you optimize your offline Runtime apps. Code examples are written in Qt C++ but the concepts apply to Runtime APIs. https://www.esri.com/arcgis-blog/products/runtime-sdk/developers/5-tips-and-tricks-to-streamline-your-offline-maps/ Hope you find it useful!
... View more
05-27-2022
06:12 AM
|
0
|
0
|
372
|
POST
|
Hi @Anonymous User The Esri supplied basemaps (like World Imagery) require authentication to take them offline (e.g. using a named user login or with a supplied API key). You can view the basemap online but when you come to export it you may need to log-in. Another possibility would be if you are trying to export too many tiles from the service. Hopefully either of those scenarios would show up in the job errors or job messages to help you track it down. One last thing to confirm is that you have GenerateOfflineMapParameters.isIncludeBasemap() set to true. This should be the default, but good to confirm. Hope you get it figured out. Luke
... View more
03-10-2022
01:36 AM
|
0
|
0
|
610
|
POST
|
Hi @sven_aanesen_geodata, thanks for getting in touch. The download size of a map area is calculated by looking at each of the package items that comprise the offline map (for example, tpk or vtpk for basemaps and geodatabases for feature data). You can iterate over these items using the getContentItemsWithCompletion method of an AGSPreplannedMapArea. This will give you back a list of AGSPortalItem objects which you can use to check the size of the data. Hope that helps, Luke
... View more
10-21-2021
01:58 AM
|
4
|
1
|
877
|
POST
|
Hi @FatmaAkdemir - you can explore a shapefile with various packages (including ArcGIS Pro and also I think if you upload it to ArcGIS Online). In Runtime, you can examine the attributes of the shapefile feature table by inspecting the fields property of the feature table. That should let you check to see which field would best suit your needs. Hope that helps, Luke
... View more
07-12-2021
01:09 AM
|
1
|
2
|
1826
|
POST
|
Hi @johnmarker thanks for sharing your code. From the error message it looks as though you are trying to export tiles from an area with no data (e.g. away from land) - is that correct?
... View more
07-12-2021
01:05 AM
|
0
|
0
|
9989
|
POST
|
Hi @FatmaAkdemir - this group contains a number of services that incorporate a reference layer for labels https://www.arcgis.com/home/group.html?id=c61ab1493fff4b84b53705184876c9b0&view=list#content. You could see if one of those works for your use case.
... View more
07-02-2021
03:41 AM
|
1
|
4
|
1884
|
POST
|
Hi @johnmarker - I'm sorry I can't find an example of using that code right now but you are correct the workflow is pretty similar to the other sample. - 1. Create a new instance of the ExportVectorTilesTask. You have a coupe of options here, you can either use a PortalItem (that can include a style for the tiles) or a URL (e.g. to the underlying service) - 2. Create parameters for the export - a good idea is to use the create default parameters method https://developers.arcgis.com/net/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Offline_ExportVectorTilesTask_CreateDefaultExportVectorTilesParametersAsync.htm which will create parameters with sensible defaults - 3. Adjust the parameters to suit your workflow (e.g. set the max scale to control how much detail is included) - 4. Create an ExportVectorTilesJob by passing the parameters to the task. You can choose to download the tiles (as a .vtpk) and or a style (as a an itemresourcecache) - 5. Run the job to completion and get the tiles/style from the result - 6. You can create an ArcGISVectorTiledLayer using the path to the tiles (the .vtpk) and optionally to the style. Hope that helps, Luke
... View more
07-02-2021
01:21 AM
|
0
|
2
|
10069
|
POST
|
Hi @johnmarker - take a look at the basemaps in this group. If you log in or use an API key you should be able to export tiles from those. For example, world topographic would use the url: https://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer However, for most basemaps other than imagery, we'd generally recommend that you consider using the ExportVectorTilesTask to export a vector tiled basemap. You can export the vector equivalent of the world topographic map with this url: https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_Export_v2/VectorTileServer
... View more
07-01-2021
09:46 AM
|
1
|
4
|
10085
|
POST
|
Hi @FatmaAkdemir - yes you could use your shapefile to add the labels to the basemap. The Basemap type has a referenceLayers property where you could append label layers etc. For your shapefile data you would: - create a ShapefileFeatureTable using the path to the .shp file - create a FeatureLayer using the shapefile feature table - append the feature layer to the basemap's referenceLayers Note that Esri also has services that would allow you to export offline tiles including labels. You could export the labels that way - but if you just want city locations, the shapefile data that you have may be best. Hope that helps, Luke
... View more
07-01-2021
01:25 AM
|
1
|
6
|
1893
|
POST
|
Hi @johnmarker - Could you give some more details of the workflow you're building? I'm not sure exactly what you mean by the "local server". Typically a Runtime app that wants to take a basemap offline might do something like: 1 - Load the online service (e.g. one of those in the group I linked above) when you have a connection (e.g. in the office) 2 - Run either the ExportTileCacheTask or ExportVectorTilesTask to download the tile package to the local device (the local file system of the computer) 3 - Use the tile package in a new layer which won't need a network connection You can either do all 3 steps in a single app, or have one which takes the data offline and then another app that simply consumes it. You can also share a tile package with Runtime apps on other devices if needed. Does that make sense?
... View more
06-30-2021
01:29 AM
|
1
|
6
|
10098
|
POST
|
Hi @johnmarker, The Runtime TileCache is the type that we use to read and display tiles from a local tile package (.tpk or .tpkx) on the device. You would construct the TileCache with the path to your tile package file and use that to construct an ArcGISTiledLayer. That layer can then be displayed in your application's map or scene view. Note that the tileCache above works for raster tile packages (.tpk) but there is an equivalent workflow for vector tiles: construct a VectorTileCache with a local vector tile package (.vtpk) and use it to create an ArcGISVectorTileLayer
... View more
06-29-2021
01:43 AM
|
0
|
0
|
1159
|
POST
|
Hi @johnmarker - yes you can take either raster or vector basemaps offline using Runtime. The ExportTileTileCache task allows you to export raster tiles from suitable online services as a tile package (.tpk or .tpkx) - see this sample. The ExportVectorTilesTask lets you take vector basemap tiles offline as a vector tile package (.vtpk). You can also export styles to change the appearance of your offline vector basemap. Esri has a number of services that support exporting tiles - for example see this AGOL group. Just a note that you will need to sign (or use an API key) to export from these esri services. Hope that helps!
... View more
06-29-2021
01:30 AM
|
1
|
8
|
10127
|
POST
|
Hi @Anonymous User - To make an offline scene you really need 2 types of data: - the elevation source which gives height to things in the scene - the basemap which is draped over the elevation source to provide context You would need a separate .tpk for each of those things - one for elevation and one for the basemap. If you have a scene which contains both of those data sources, you can click on a point and get the elevation back.
... View more
03-17-2021
08:18 AM
|
0
|
0
|
2337
|
Title | Kudos | Posted |
---|---|---|
1 | 05-04-2018 04:22 AM | |
1 | 11-02-2022 06:25 AM | |
1 | 07-12-2022 05:35 AM | |
4 | 10-21-2021 01:58 AM | |
1 | 07-12-2021 01:09 AM |
Online Status |
Offline
|
Date Last Visited |
03-25-2024
03:44 PM
|