Create and download offline area in Go
Is it possible in Studio Go, to create and download an offline area?
Looking at the available commands, it looks as if I could use offline.create-area, offline.download-area and offline.activate-area.
The create-area command has a parameter of type CreateOfflineAreaArgs, which in turn has a CustomOfflineAreaDetails property, but the documentation about that class is nowhere to be found. I can kind of guess what CustomOfflineAreaDetails looks like by inspecting the .NET SDK, but running a workflow with just the create-area operation fails with a NullReferenceException.
Where can I find more information about using these commands / operations?
Error 08/12/2022 13:14:34 Error running workflow.
Geocortex.Workflow.Runtime.Execution.Exceptions.ActivityExecutionException: [WF: Activity execution error] Failed to execute activity 8 with action gcx:wf:app::RunOperation: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at VertiGIS.Mobile.Infrastructure.Utilities.MapUtilities.IsUsingWebmap(MapExtension) + 0x9
at VertiGIS.Mobile.Modules.Offline.OfflineService.<CreateAreaAsync>d__44.MoveNext() + 0x1fa
-
Hello !
I've used this kind of values in the Run Operation for offline.create-area
={
"title" : $form1.state.ListeZones.value,
"areaDetails" : {
"areaOfInterest" : $LaGeomDeLaZone.result,
"minScale" : 100.0,
"includeAttachments" : true
},
"mapExtension" : $map.map.mapExt}
title : what you want ( here , coming from a form )
areaDetails :
- areaOfInterest : is any kind of geometry
- you can add maxScale if needed
I don't know what is mapExtension for (but comes from a get map activity )
I hope it will help you. It works fine for me
BR
Hugues
1 -
Thanks Hugues,
My main problem appeared to be the $mapExtension settings. One can use either $map.map.extension or $map.map.mapExt for that.
0
Please sign in to leave a comment.
Comments
2 comments