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.
param options.pixelRatio The pixel ratio to apply to the dpi of the exported image.
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
dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer
The dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer instance to extend with this method.
extent
dymaptic.GeoBlazor.Core.Components.Geometries.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
- 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.
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
dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer
The dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer instance to extend with this method.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.Sublayer[]>
MapImageLayerProExtensions.FetchImage(this MapImageLayer, Extent, int, int, MapImageLayerFetchImageOptions, CancellationToken) Method
This method fetches the image for the specified extent and size.
param width The width of the view in pixels.
param options The parameter options is an object with the following properties.
param options.pixelRatio The ratio of the resolution in physical pixels of the image to the resolution it will be displayed at.
param options.signal An AbortSignal to abort the request. If canceled, the promise will be rejected with an error named AbortError
. See also AbortController.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<System.Nullable<Microsoft.AspNetCore.Components.ElementReference>> 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
dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer
The dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer instance to extend with this method.
extent
dymaptic.GeoBlazor.Core.Components.Geometries.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.Nullable<Microsoft.AspNetCore.Components.ElementReference>>
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
dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer
The dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer instance to extend with this method.
id
System.Int64
The id of the sublayer.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.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
dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer
The dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer instance to extend with this method.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.MapImageLayer>