GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Layers

VectorTileLayerProExtensions Class

Pro Extension methods for the VectorTileLayer class.

public static class VectorTileLayerProExtensions

Inheritance System.Object 🡒 VectorTileLayerProExtensions

Methods

VectorTileLayerProExtensions.DeleteStyleLayer(this VectorTileLayer, string) Method

Deletes the specified style layer from the
VectorTileLayer’s currentStyleInfo.style.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task DeleteStyleLayer(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id as specified in the VectorTileLayer’s currentStyleInfo.style.

Returns

System.Threading.Tasks.Task

VectorTileLayerProExtensions.GetLayoutProperties(this VectorTileLayer, string) Method

Returns an instance of layout
properties for the specified style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> GetLayoutProperties(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id in the VectorTileLayer’s currentStyleInfo.style.

Returns

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

VectorTileLayerProExtensions.GetPaintProperties(this VectorTileLayer, string) Method

Returns an instance of paint properties for the specified
style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> GetPaintProperties(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id in the VectorTileLayer’s currentStyleInfo.style.

Returns

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

VectorTileLayerProExtensions.GetStyleLayer(this VectorTileLayer, string) Method

Returns an instance of a style layer
from the VectorTileLayer’s currentStyleInfo.style.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> GetStyleLayer(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id specified in the VectorTileLayer’s currentStyleInfo.style.

Returns

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

VectorTileLayerProExtensions.GetStyleLayerId(this VectorTileLayer, int) Method

Returns the layer id
of the style layer
based on its index.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> GetStyleLayerId(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, int index);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

index System.Int32

Index of the style layer in the VectorTileLayer’s currentStyleInfo.style.

Returns

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

VectorTileLayerProExtensions.GetStyleLayerIndex(this VectorTileLayer, string) Method

Returns the index of the style layer from the VectorTileLayer’s
currentStyleInfo.style.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<System.Nullable<int>> GetStyleLayerIndex(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id as specified in the VectorTileLayer’s currentStyleInfo.style.

Returns

System.Threading.Tasks.Task<System.Nullable<System.Int32>>

VectorTileLayerProExtensions.GetStyleLayerVisibility(this VectorTileLayer, string) Method

Gets the visibility of the specified style layer from the
VectorTileLayer’s currentStyleInfo.style.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> GetStyleLayerVisibility(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id as specified in the VectorTileLayer’s currentStyleInfo.style.

Returns

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

VectorTileLayerProExtensions.LoadStyle(this VectorTileLayer, string, CancellationToken) Method

Loads a style to render a layer from the specified URL to a style resource or style JSON object.
param options An object with the following properties.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<string?> LoadStyle(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string style, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

style System.String

The URL to a style of vector tiles or style JSON object.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

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

VectorTileLayerProExtensions.SetLayoutProperties(this VectorTileLayer, string, string) Method

Updates the layout properties to the specified
style layer.
param layout An instance of layout properties to assign to the style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task SetLayoutProperties(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId, string layout);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id in the VectorTileLayer’s currentStyleInfo.style.

layout System.String

An instance of layout properties to assign to the style layer.

Returns

System.Threading.Tasks.Task

VectorTileLayerProExtensions.SetPaintProperties(this VectorTileLayer, string, string) Method

Updates the paint properties to the specified
style layer.
param painter An instance of paint properties to assign to the specified style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task SetPaintProperties(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId, string painter);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id in the VectorTileLayer’s currentStyleInfo.style.

painter System.String

An instance of paint properties to assign to the specified style layer.

Returns

System.Threading.Tasks.Task

VectorTileLayerProExtensions.SetSpriteSource(this VectorTileLayer, object) Method

Changes the sprite source associated with the VectorTileLayer’s current style.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.SpriteSource?> SetSpriteSource(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, object spriteSourceInfo);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

spriteSourceInfo System.Object

The sprite source info is used to set the sprites in the VectorTileLayer’s currentStyleInfo.style. The user can set the sprite source from a URL to fetch the sprite resources or from the image info to set the sprite resources directly on the layer.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.SpriteSource>

VectorTileLayerProExtensions.SetStyleLayer(this VectorTileLayer, string, int) Method

Changes the layer properties of the specified style layer.
param index Index of the style layer in the style. Set this parameter when adding a new style layer or re-ordering a style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task SetStyleLayer(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layer, int index);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layer System.String

The style layer specified in the VectorTileLayer’s currentStyleInfo.style. Get an instance of a style layer from a loaded style using getStyleLayer method.

index System.Int32

Index of the style layer in the style. Set this parameter when adding a new style layer or re-ordering a style layer.

Returns

System.Threading.Tasks.Task

VectorTileLayerProExtensions.SetStyleLayerVisibility(this VectorTileLayer, string, Visibility) Method

Toggles the visibility of the specified style layer in the
VectorTileLayer’s currentStyleInfo.style.
param visibility Set this parameter to "none" to hide the style layer or to "visible" to show the style layer.
ArcGIS Maps SDK for JavaScript

public static System.Threading.Tasks.Task SetStyleLayerVisibility(this dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer vectorTileLayer, string layerId, dymaptic.GeoBlazor.Core.Enums.Visibility visibility);

Parameters

vectorTileLayer dymaptic.GeoBlazor.Core.Components.Layers.VectorTileLayer

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

layerId System.String

The style layer id as specified in the VectorTileLayer’s currentStyleInfo.style.

visibility dymaptic.GeoBlazor.Core.Enums.Visibility

Set this parameter to

csharp "none" to hide the style layer or to

csharp "visible" to show the style layer.

Returns

System.Threading.Tasks.Task