dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Layers
OpenStreetMapLayer Class
Allows you to use basemaps from OpenStreetMap. ArcGIS Maps SDK for JavaScript
public class OpenStreetMapLayer : dymaptic.GeoBlazor.Core.Components.Layers.WebTileLayer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Layer 🡒 WebTileLayer 🡒 OpenStreetMapLayer
Constructors
OpenStreetMapLayer() Constructor
Parameterless constructor for use as a Razor Component.
public OpenStreetMapLayer();
OpenStreetMapLayer(PortalItem, string, Nullable, string, Nullable, Nullable, Nullable, IReadOnlyList, TileInfo, Nullable, Nullable, Nullable, string, Effect, Extent, Nullable, Nullable, string, TimeExtent, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public OpenStreetMapLayer(dymaptic.GeoBlazor.Core.Components.PortalItem? portalItem=null, string? title=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.BlendMode> blendMode=null, string? copyright=null, System.Nullable<double> maxScale=null, System.Nullable<double> minScale=null, System.Nullable<double> refreshInterval=null, System.Collections.Generic.IReadOnlyList<string>? subDomains=null, dymaptic.GeoBlazor.Core.Components.TileInfo? tileInfo=null, System.Nullable<double> opacity=null, System.Nullable<bool> visible=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.ListMode> listMode=null, string? arcGISLayerId=null, dymaptic.GeoBlazor.Core.Model.Effect? effect=null, dymaptic.GeoBlazor.Core.Components.Geometries.Extent? fullExtent=null, System.Nullable<bool> isBasemapReferenceLayer=null, System.Nullable<bool> persistenceEnabled=null, string? urlTemplate=null, dymaptic.GeoBlazor.Core.Components.TimeExtent? visibilityTimeExtent=null, System.Nullable<bool> excludeApiKey=null);
Parameters
portalItem PortalItem
The portal item from which the layer is loaded. ArcGIS Maps SDK for JavaScript
title System.String
The title of the layer used to identify it in places such as the LayerList widget. ArcGIS Maps SDK for JavaScript
blendMode System.Nullable<BlendMode>
Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer. default normal ArcGIS Maps SDK for JavaScript
copyright System.String
The attribution information for the layer. ArcGIS Maps SDK for JavaScript
maxScale System.Nullable<System.Double>
The maximum scale (most zoomed in) at which the layer is visible in the view. default 0 ArcGIS Maps SDK for JavaScript
minScale System.Nullable<System.Double>
The minimum scale (most zoomed out) at which the layer is visible in the view. default 0 ArcGIS Maps SDK for JavaScript
refreshInterval System.Nullable<System.Double>
Refresh interval of the layer in minutes. default 0 ArcGIS Maps SDK for JavaScript
subDomains System.Collections.Generic.IReadOnlyList<System.String>
A string of subDomain names where tiles are served to speed up tile retrieval. ArcGIS Maps SDK for JavaScript
tileInfo TileInfo
The tiling scheme information for the layer. ArcGIS Maps SDK for JavaScript
opacity System.Nullable<System.Double>
The opacity of the layer. default 1 ArcGIS Maps SDK for JavaScript
visible System.Nullable<System.Boolean>
Indicates if the layer is visible in the View. default true ArcGIS Maps SDK for JavaScript
listMode System.Nullable<ListMode>
Indicates how the layer should display in the LayerList widget. default “show” ArcGIS Maps SDK for JavaScript
arcGISLayerId System.String
The unique ID assigned to the layer. ArcGIS Maps SDK for JavaScript
effect Effect
Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work. default null ArcGIS Maps SDK for JavaScript
fullExtent Extent
The full extent of the layer. ArcGIS Maps SDK for JavaScript
isBasemapReferenceLayer System.Nullable<System.Boolean>
Indicates whether the layer is a basemap reference layer. Default value: false.
persistenceEnabled System.Nullable<System.Boolean>
Enable persistence of the layer in a WebMap or WebScene. default true ArcGIS Maps SDK for JavaScript
urlTemplate System.String
The url template is a string that specifies the URL of the hosted tile images to load. ArcGIS Maps SDK for JavaScript
visibilityTimeExtent TimeExtent
Specifies a fixed time extent during which a layer should be visible. default null ArcGIS Maps SDK for JavaScript
excludeApiKey System.Nullable<System.Boolean>
Indicates whether the layer should exclude the API key when making requests to services. This is a workaround for an ArcGIS bug where public services throw an “Invalid Token” error.
Properties
OpenStreetMapLayer.Type Property
Used internally to identify the sub type of Layer
public override dymaptic.GeoBlazor.Core.Enums.LayerType Type { get; }
Property Value
Methods
OpenStreetMapLayer.SetFullExtent(Extent) Method
SetFullExtent is not supported for OpenStreetMapLayer.
public override System.Threading.Tasks.Task SetFullExtent(dymaptic.GeoBlazor.Core.Components.Geometries.Extent? extent);
Parameters
extent Extent