public void SaveAsWebMapFile( string webMapFileName )
Public Sub SaveAsWebMapFile( _ ByVal webMapFileName As String _ )
Parameters
- webMapFileName
- The fullpath of the webmap file to save to
public void SaveAsWebMapFile( string webMapFileName )
Public Sub SaveAsWebMapFile( _ ByVal webMapFileName As String _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.NotSupportedException | DefaultViewingMode not supported |
System.IO.DirectoryNotFoundException | Directory does not exist |
System.ArgumentNullException | The value of webMapFileName cannot be null |
//2D maps only //Must be on the QueuedTask.Run(...) if (map.DefaultViewingMode == MapViewingMode.Map) //Only webmap compatible layers will be saved out to the file map.SaveAsWebMapFile(@"C:\Data\MyMap.json");
Target Platforms: Windows 11, Windows 10, Windows 8.1