GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Layers

MapImageLayerProExtensions Class

Pro Extension methods for the MapImageLayer class.

public static class MapImageLayerProExtensions

Inheritance System.Object 🡒 MapImageLayerProExtensions

Methods

MapImageLayerProExtensions.CreateExportImageParameters(this MapImageLayer, Extent, int, int, MapImageLayerCreateExportImageParametersOptions) Method

Gets the parameters of the exported image to use when calling the export REST operation. param width The width of the exported image param options The parameter options is an object with the following properties. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> CreateExportImageParameters(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Extent extent, int width, int height, dymaptic.GeoBlazor.Pro.Options.MapImageLayerCreateExportImageParametersOptions options);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

extent Extent

The extent of the exported image

width System.Int32

The width of the exported image

height System.Int32

The height of the exported image

options MapImageLayerCreateExportImageParametersOptions

The parameter options is an object with the following properties.

Returns

System.Threading.Tasks.Task<System.String>

MapImageLayerProExtensions.CreateServiceSublayers(this MapImageLayer) Method

Returns a deep clone of a map service’s sublayers as defined by the service. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.Sublayer[]?> CreateServiceSublayers(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

Returns

System.Threading.Tasks.Task<Sublayer[]>

MapImageLayerProExtensions.FetchImage(this MapImageLayer, Extent, int, int, MapImageLayerFetchImageOptions, CancellationToken) Method

This method fetches the image for the specified extent and size. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<Microsoft.JSInterop.IJSObjectReference?> FetchImage(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Extent extent, int width, int height, dymaptic.GeoBlazor.Pro.Options.MapImageLayerFetchImageOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

extent Extent

The extent of the view.

width System.Int32

The width of the view in pixels.

height System.Int32

The height of the view in pixels.

options MapImageLayerFetchImageOptions

  • options.rotation: The rotation in degrees of the exported image. Available since ArcGIS Server 10.3.
  • options.timeExtent: The time instant or time extent of content to render.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<Microsoft.JSInterop.IJSObjectReference>

MapImageLayerProExtensions.FetchImageHtmlAsString(this MapImageLayer, Extent, int, int, MapImageLayerFetchImageOptions, CancellationToken) Method

This method fetches the image for the specified extent and size. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> FetchImageHtmlAsString(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Extent extent, int width, int height, dymaptic.GeoBlazor.Pro.Options.MapImageLayerFetchImageOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

extent Extent

The extent of the view.

width System.Int32

The width of the view in pixels.

height System.Int32

The height of the view in pixels.

options MapImageLayerFetchImageOptions

  • options.rotation: The rotation in degrees of the exported image. Available since ArcGIS Server 10.3.
  • options.timeExtent: The time instant or time extent of content to render.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<System.String>

MapImageLayerProExtensions.FindSublayerById(this MapImageLayer, long) Method

Returns the sublayer with the given layerId. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.Sublayer?> FindSublayerById(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, long id);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

id System.Int64

The id of the sublayer.

Returns

System.Threading.Tasks.Task<Sublayer>

MapImageLayerProExtensions.LoadAll(this MapImageLayer) Method

Loads all of the sublayers and subtables. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer?> LoadAll(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

Returns

System.Threading.Tasks.Task<MapImageLayer>

MapImageLayerProExtensions.Save(this MapImageLayer, MapImageLayerSaveOptions) Method

Saves the layer to its existing portal item in the Portal authenticated within the user’s current session. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> Save(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, dymaptic.GeoBlazor.Core.Options.MapImageLayerSaveOptions options);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

options MapImageLayerSaveOptions

Various options for saving the layer.

Returns

System.Threading.Tasks.Task<PortalItem>

MapImageLayerProExtensions.SaveAs(this MapImageLayer, PortalItem, MapImageLayerSaveAsOptions) Method

Saves the layer to a new portal item in the Portal authenticated within the user’s current session. param options Various options for saving the layer. ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> SaveAs(this dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer mapImageLayer, dymaptic.GeoBlazor.Core.Components.PortalItem portalItem, dymaptic.GeoBlazor.Core.Options.MapImageLayerSaveAsOptions options);

Parameters

mapImageLayer MapImageLayer

The MapImageLayer instance to extend with this method.

portalItem PortalItem

The portal item to which the layer will be saved.

options MapImageLayerSaveAsOptions

Returns

System.Threading.Tasks.Task<PortalItem>