dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
BasemapStyle Class
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.BasemapStyle.html”>GeoBlazor Docs</a> The style of the basemap from the <a target=”_blank” href=”https://developers.arcgis.com/rest/basemap-styles/”>basemap styles service (v2)</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html”>ArcGIS Maps SDK for JavaScript</a>
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<BasemapStylePlace>, 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. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#id”>ArcGIS Maps SDK for JavaScript</a>
language
System.String
The language of the place labels in the basemap style. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#language”>ArcGIS Maps SDK for JavaScript</a>
places
System.Nullable<BasemapStylePlace>
Indicates whether to display <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html”>places</a> with the basemap style. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#places”>ArcGIS Maps SDK for JavaScript</a>
serviceUrl
System.String
The <a target=”_blank” href=”https://developers.arcgis.com/rest/basemap-styles/#service-url”>URL</a> to the basemap styles service. default “https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps” <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#serviceUrl”>ArcGIS Maps SDK for JavaScript</a>
worldview
System.String
Displays country boundaries and labels based on a specific view of a country. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#worldview”>ArcGIS Maps SDK for JavaScript</a>
Properties
BasemapStyle.ApiKey Property
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.BasemapStyle.html#basemapstyleapikey-property”>GeoBlazor Docs</a> An authorization string used to access a resource or service. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#apiKey”>ArcGIS Maps SDK for JavaScript</a>
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”. <a target=”_blank” href=”https://developers.arcgis.com/rest/basemap-styles/#languages”>ArcGIS REST APIs</a>
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
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.BasemapStyle.html#basemapstyleplaces-property”>GeoBlazor Docs</a> Indicates whether to display <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-places.html”>places</a> with the basemap style. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#places”>ArcGIS Maps SDK for JavaScript</a>
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
<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Core.Components.BasemapStyle.html#basemapstyleworldview-property”>GeoBlazor Docs</a> Displays country boundaries and labels based on a specific view of a country. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-support-BasemapStyle.html#worldview”>ArcGIS Maps SDK for JavaScript</a>
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<BasemapStylePlace>) 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()