dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
BasemapStyle Class
The style of the basemap from the basemap styles service (v2).
ArcGIS Maps SDK for JavaScript
public class BasemapStyle : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 BasemapStyle
Constructors
BasemapStyle() Constructor
Parameterless constructor for use as a Razor Component.
public BasemapStyle();
BasemapStyle(BasemapStyleName, string, Nullable, string, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public BasemapStyle(dymaptic.GeoBlazor.Core.Enums.BasemapStyleName name, string? language=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.BasemapStylePlace> places=null, string? serviceUrl=null, string? worldview=null);
Parameters
name
BasemapStyleName
The id of the basemap style.
ArcGIS Maps SDK for JavaScript
language
System.String
The language of the place labels in the basemap style.
ArcGIS Maps SDK for JavaScript
places
System.Nullable<BasemapStylePlace>
Indicates whether to display places with the basemap style.
ArcGIS Maps SDK for JavaScript
serviceUrl
System.String
The URL to the basemap styles service.
default “https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps”
ArcGIS Maps SDK for JavaScript
worldview
System.String
Displays country boundaries and labels based on a specific view of a country.
ArcGIS Maps SDK for JavaScript
Properties
BasemapStyle.ApiKey Property
An authorization string used to access a resource or service.
ArcGIS Maps SDK for JavaScript
public string? ApiKey { get; set; }
Property Value
BasemapStyle.Language Property
The language of the place labels in the basemap style. Choose from a variety of supported languages, including global and local.
If not set, the app’s current locale is used. If the app’s locale is not supported by the service, the language will fall back to “global”.
ArcGIS REST APIs
public string? Language { get; set; }
Property Value
BasemapStyle.Name Property
The identifying name of the basemap style. The values are of the form {Provider}{Style} where provider is “Arcgis” or “osm”. Examples include ArcgisNavigation and OsmStandard. See ArcGIS basemap styles and OSM basemap styles for the full list of available styles.
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.BasemapStyleName> Name { get; set; }
Property Value
System.Nullable<BasemapStyleName>
BasemapStyle.Places Property
Indicates whether to display places with the basemap style.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.BasemapStylePlace> Places { get; set; }
Property Value
System.Nullable<BasemapStylePlace>
BasemapStyle.ServiceUrl Property
The URL to the basemap styles service.
Default Value:”https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps”
public string? ServiceUrl { get; set; }
Property Value
BasemapStyle.Worldview Property
Displays country boundaries and labels based on a specific view of a country.
ArcGIS Maps SDK for JavaScript
public string? Worldview { get; set; }
Property Value
Methods
BasemapStyle.GetApiKey() Method
Asynchronously retrieve the current value of the ApiKey property.
public System.Threading.Tasks.Task<string?> GetApiKey();
Returns
System.Threading.Tasks.Task<System.String>
BasemapStyle.GetLanguage() Method
Asynchronously retrieve the current value of the Language property.
public System.Threading.Tasks.Task<string?> GetLanguage();
Returns
System.Threading.Tasks.Task<System.String>
BasemapStyle.GetPlaces() Method
Asynchronously retrieve the current value of the Places property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.BasemapStylePlace>> GetPlaces();
Returns
System.Threading.Tasks.Task<System.Nullable<BasemapStylePlace>>
BasemapStyle.GetServiceUrl() Method
Asynchronously retrieve the current value of the ServiceUrl property.
public System.Threading.Tasks.Task<string?> GetServiceUrl();
Returns
System.Threading.Tasks.Task<System.String>
BasemapStyle.GetWorldview() Method
Asynchronously retrieve the current value of the Worldview property.
public System.Threading.Tasks.Task<string?> GetWorldview();
Returns
System.Threading.Tasks.Task<System.String>
BasemapStyle.SetApiKey(string) Method
Asynchronously set the value of the ApiKey property after render.
public System.Threading.Tasks.Task SetApiKey(string? value);
Parameters
value
System.String
The value to set.
Returns
BasemapStyle.SetLanguage(string) Method
Asynchronously set the value of the Language property after render.
public System.Threading.Tasks.Task SetLanguage(string? value);
Parameters
value
System.String
The value to set.
Returns
BasemapStyle.SetName(BasemapStyleName) Method
Asynchronous method to set the service URL after first render.
public System.Threading.Tasks.Task SetName(dymaptic.GeoBlazor.Core.Enums.BasemapStyleName name);
Parameters
name
BasemapStyleName
Returns
BasemapStyle.SetPlaces(Nullable) Method
Asynchronously set the value of the Places property after render.
public System.Threading.Tasks.Task SetPlaces(System.Nullable<dymaptic.GeoBlazor.Core.Enums.BasemapStylePlace> value);
Parameters
value
System.Nullable<BasemapStylePlace>
The value to set.
Returns
BasemapStyle.SetServiceUrl(string) Method
Asynchronously set the value of the ServiceUrl property after render.
public System.Threading.Tasks.Task SetServiceUrl(string? value);
Parameters
value
System.String
The value to set.
Returns
BasemapStyle.SetWorldview(string) Method
Asynchronously set the value of the Worldview property after render.
public System.Threading.Tasks.Task SetWorldview(string? value);
Parameters
value
System.String
The value to set.
Returns
BasemapStyle.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()