dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components

TileInfo Class

Contains information about the tiling scheme for TileLayers,
ElevationLayers, ImageryTileLayers,
VectorTileLayers, and WebTileLayers.
ArcGIS Maps SDK for JavaScript

public class TileInfo : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 TileInfo

Constructors

TileInfo() Constructor

Parameterless constructor for use as a Razor Component.

public TileInfo();

TileInfo(Nullable, Nullable, IReadOnlyList, Point, IReadOnlyList, SpatialReference) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public TileInfo(System.Nullable<double> dpi=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.TileInfoFormat> format=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.LOD>? lods=null, dymaptic.GeoBlazor.Core.Components.Geometries.Point? origin=null, System.Collections.Generic.IReadOnlyList<int>? size=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null);

Parameters

dpi System.Nullable<System.Double>

The dots per inch (DPI) of the tiling scheme.
default 96
ArcGIS Maps SDK for JavaScript

format System.Nullable<TileInfoFormat>

Image format of the cached tiles.
ArcGIS Maps SDK for JavaScript

lods System.Collections.Generic.IReadOnlyList<LOD>

An array of levels of detail that define the tiling scheme.
ArcGIS Maps SDK for JavaScript

origin Point

The tiling scheme origin.
ArcGIS Maps SDK for JavaScript

size System.Collections.Generic.IReadOnlyList<System.Int32>

Size of tiles in pixels.
ArcGIS Maps SDK for JavaScript

spatialReference SpatialReference

The spatial reference of the tiling schema.
ArcGIS Maps SDK for JavaScript

Properties

TileInfo.Dpi Property

The dots per inch (DPI) of the tiling scheme.

public System.Nullable<double> Dpi { get; set; }

Property Value

System.Nullable<System.Double>

TileInfo.Format Property

Image format of the cached tiles.

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.TileInfoFormat> Format { get; set; }

Property Value

System.Nullable<TileInfoFormat>

TileInfo.IsWrappable Property

Indicates if the tiling scheme supports wrap around.
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> IsWrappable { get; set; }

Property Value

System.Nullable<System.Boolean>

TileInfo.Lods Property

An array of levels of detail that define the tiling scheme.
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.LOD>? Lods { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<LOD>

TileInfo.Origin Property

The tiling scheme origin.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Components.Geometries.Point? Origin { get; set; }

Property Value

Point

TileInfo.Size Property

Size of tiles in pixels.
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<int>? Size { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<System.Int32>

TileInfo.SpatialReference Property

The spatial reference of the tiling schema.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Components.SpatialReference? SpatialReference { get; set; }

Property Value

SpatialReference

Methods

TileInfo.AddToLods(LOD[]) Method

Asynchronously adds elements to the Lods property.

public System.Threading.Tasks.Task AddToLods(params dymaptic.GeoBlazor.Core.Components.LOD[] values);

Parameters

values LOD[]

The elements to add.

Returns

System.Threading.Tasks.Task

TileInfo.AddToSize(int[]) Method

Asynchronously adds elements to the Size property.

public System.Threading.Tasks.Task AddToSize(params int[] values);

Parameters

values System.Int32[]

The elements to add.

Returns

System.Threading.Tasks.Task

TileInfo.GetDpi() Method

Asynchronously retrieve the current value of the Dpi property.

public System.Threading.Tasks.Task<System.Nullable<double>> GetDpi();

Returns

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

TileInfo.GetFormat() Method

Asynchronously retrieve the current value of the Format property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.TileInfoFormat>> GetFormat();

Returns

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

TileInfo.GetIsWrappable() Method

Asynchronously retrieve the current value of the IsWrappable property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetIsWrappable();

Returns

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

TileInfo.GetLods() Method

Asynchronously retrieve the current value of the Lods property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.LOD>?> GetLods();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<LOD>>

TileInfo.GetOrigin() Method

Asynchronously retrieve the current value of the Origin property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> GetOrigin();

Returns

System.Threading.Tasks.Task<Point>

TileInfo.GetSize() Method

Asynchronously retrieve the current value of the Size property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<int>?> GetSize();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Int32>>

TileInfo.GetSpatialReference() Method

Asynchronously retrieve the current value of the SpatialReference property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SpatialReference?> GetSpatialReference();

Returns

System.Threading.Tasks.Task<SpatialReference>

TileInfo.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with its parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.

TileInfo.RemoveFromLods(LOD[]) Method

Asynchronously remove an element from the Lods property.

public System.Threading.Tasks.Task RemoveFromLods(params dymaptic.GeoBlazor.Core.Components.LOD[] values);

Parameters

values LOD[]

The elements to remove.

Returns

System.Threading.Tasks.Task

TileInfo.RemoveFromSize(int[]) Method

Asynchronously remove an element from the Size property.

public System.Threading.Tasks.Task RemoveFromSize(params int[] values);

Parameters

values System.Int32[]

The elements to remove.

Returns

System.Threading.Tasks.Task

TileInfo.ScaleToZoom(double) Method

Utility method used to convert a scale value to its corresponding zoom value.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<int>> ScaleToZoom(double scale);

Parameters

scale System.Double

The scale value to convert.

Returns

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

TileInfo.SetDpi(Nullable) Method

Asynchronously set the value of the Dpi property after render.

public System.Threading.Tasks.Task SetDpi(System.Nullable<double> value);

Parameters

value System.Nullable<System.Double>

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.SetFormat(Nullable) Method

Asynchronously set the value of the Format property after render.

public System.Threading.Tasks.Task SetFormat(System.Nullable<dymaptic.GeoBlazor.Core.Enums.TileInfoFormat> value);

Parameters

value System.Nullable<TileInfoFormat>

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.SetLods(IReadOnlyList) Method

Asynchronously set the value of the Lods property after render.

public System.Threading.Tasks.Task SetLods(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.LOD>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<LOD>

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.SetOrigin(Point) Method

Asynchronously set the value of the Origin property after render.

public System.Threading.Tasks.Task SetOrigin(dymaptic.GeoBlazor.Core.Components.Geometries.Point? value);

Parameters

value Point

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.SetSize(IReadOnlyList) Method

Asynchronously set the value of the Size property after render.

public System.Threading.Tasks.Task SetSize(System.Collections.Generic.IReadOnlyList<int>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<System.Int32>

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.SetSpatialReference(SpatialReference) Method

Asynchronously set the value of the SpatialReference property after render.

public System.Threading.Tasks.Task SetSpatialReference(dymaptic.GeoBlazor.Core.Components.SpatialReference? value);

Parameters

value SpatialReference

The value to set.

Returns

System.Threading.Tasks.Task

TileInfo.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.

TileInfo.ValidateRequiredGeneratedChildren() Method

Validates source-generated child components.

public override void ValidateRequiredGeneratedChildren();

Implements ValidateRequiredGeneratedChildren()

TileInfo.ZoomToScale(int) Method

Utility method used to convert a zoom value to its corresponding scale value.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<double>> ZoomToScale(int zoom);

Parameters

zoom System.Int32

The zoom value to convert.

Returns

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