Public Sub SaveAsWebMapFile( _ ByVal webMapFileName As String _ )
public void SaveAsWebMapFile( string webMapFileName )
Parameters
- webMapFileName
- The fullpath of the webmap file to save to
Public Sub SaveAsWebMapFile( _ ByVal webMapFileName As String _ )
public void SaveAsWebMapFile( string webMapFileName )
| 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 Home, Pro, Enterprise (64 bit)