dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Layers
TileLayer Class
The TileLayer allows you work with a cached map service exposed by the ArcGIS Server REST API and add it to a Map
as a tile layer. A cached service accesses tiles from a cache instead of dynamically rendering images. Because they
are cached, tiled layers render faster than MapImageLayers. To create an instance of TileLayer, you must reference
the URL of the cached map service.
ArcGIS
JS API
</a>
public class TileLayer : dymaptic.GeoBlazor.Core.Components.Layers.Layer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Layer 🡒 TileLayer
Derived
↳ VectorTileLayer
Properties
TileLayer.LayerType Property
Used internally to identify the sub type of Layer
public override string LayerType { get; }
Property Value
TileLayer.PortalItem Property
The PortalItem from which the layer is loaded.
public dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem { get; set; }
Property Value
TileLayer.Url Property
The URL of the REST endpoint of the layer.
public string? Url { get; set; }
Property Value
Methods
TileLayer.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnAfterRenderAsync(System.Boolean) to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
TileLayer.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
TileLayer.ValidateRequiredChildren() Method
When a MapView is prepared to render, this will check to make sure that all properties with the
RequiredPropertyAttribute are provided.
public override void ValidateRequiredChildren();
Exceptions
MissingRequiredChildElementException
The consumer needs to provide the missing child component
MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components