GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Layers

WMSLayerProExtensions Class

Pro Extension methods for the WMSLayer class.

public static class WMSLayerProExtensions

Inheritance System.Object 🡒 WMSLayerProExtensions

Methods

WMSLayerProExtensions.FetchImage(this WMSLayer, Extent, int, int, WMSLayerFetchImageOptions, CancellationToken) Method

Fetching the WMS image.
param width The width of the view in pixels.
param options The parameter options is an object with the following properties.
param options.rotation The rotation in degrees of the exported image.
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.WMSLayer wMSLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Extent extent, int width, int height, dymaptic.GeoBlazor.Pro.Options.WMSLayerFetchImageOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

wMSLayer dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer

The dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer 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 WMSLayerFetchImageOptions

  • options.pixelRatio: The ratio of the resolution in physical pixels of the image to the resolution it will be displayed at.
  • options.timeExent: The TimeExtent of the exported image.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<System.Nullable<Microsoft.AspNetCore.Components.ElementReference>>

WMSLayerProExtensions.FindSublayerById(this WMSLayer, long) Method

Returns a WMSSublayer based on the given sublayer id.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.WMSSublayer?> FindSublayerById(this dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer wMSLayer, long id);

Parameters

wMSLayer dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer

The dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer instance to extend with this method.

id System.Int64

The id of the WMS sublayer.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.WMSSublayer>

WMSLayerProExtensions.FindSublayerByName(this WMSLayer, string) Method

Returns a WMSSublayer based on the given sublayer name.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.WMSSublayer?> FindSublayerByName(this dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer wMSLayer, string name);

Parameters

wMSLayer dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer

The dymaptic.GeoBlazor.Core.Components.Layers.WMSLayer instance to extend with this method.

name System.String

The name of the WMS sublayer.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.WMSSublayer>