OpenStreetMapLayer Class

Allows you to use basemaps from OpenStreetMap. Set the tileservers property to change which OpenStreetMap tiles you
want to use.

public class OpenStreetMapLayer : dymaptic.GeoBlazor.Core.Components.Layers.WebTileLayer

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Layer 🡒 WebTileLayer 🡒 OpenStreetMapLayer


OpenStreetMapLayer() Constructor

Parameterless constructor for use as a razor component

public OpenStreetMapLayer();

OpenStreetMapLayer(PortalItem, string, Nullable, string, Nullable, Nullable, Nullable, IList, TileInfo, Nullable, Nullable, Nullable) Constructor

Constructor for use in code

public OpenStreetMapLayer(dymaptic.GeoBlazor.Core.Components.PortalItem? portalItem=null, string? title=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.BlendMode> blendMode=null, string? copyright=null, System.Nullable<double> maxScale=null, System.Nullable<double> minScale=null, System.Nullable<double> refreshInterval=null, System.Collections.Generic.IList<string>? subDomains=null, dymaptic.GeoBlazor.Core.Components.Layers.TileInfo? tileInfo=null, System.Nullable<double> opacity=null, System.Nullable<bool> visible=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.ListMode> listMode=null);


portalItem PortalItem

The portal item from which to load the layer.

title System.String

The title of the layer used to identify it in places such as the Legend and LayerList widgets.

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.

copyright System.String

The attribution information for the layer.

maxScale System.Nullable<System.Double>

The maximum scale (most zoomed in) at which the layer is visible in the view.

minScale System.Nullable<System.Double>

The minimum scale (most zoomed out) at which the layer is visible in the view.

refreshInterval System.Nullable<System.Double>

Refresh interval of the layer in minutes.

subDomains System.Collections.Generic.IList<System.String>

A string of subDomain names where tiles are served to speed up tile retrieval. If subDomains are specified, the
UrlTemplate should include a {subDomain} place holder.

tileInfo TileInfo

The tiling scheme information for the layer.

opacity System.Nullable<System.Double>

The opacity of the layer.

visible System.Nullable<System.Boolean>

Indicates if the layer is visible in the View. When false, the layer may still be added to a Map instance that is
referenced in a view, but its features will not be visible in the view.

listMode System.Nullable<ListMode>

Indicates how the layer should display in the LayerList widget. The possible values are listed below.


OpenStreetMapLayer.LayerType Property

Used internally to identify the sub type of Layer

public override string LayerType { get; }

Property Value