ArcGISMap.withBasemapStyle constructor
- BasemapStyle basemapStyle
Creates a map with a BasemapStyle.
Parameters:
basemapStyle
— The basemap style.
Implementation
factory ArcGISMap.withBasemapStyle(
BasemapStyle basemapStyle,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Map_createWithBasemapStyle(
basemapStyle.coreValue,
errorHandler,
);
});
return GeoModel._instanceCache.instanceWith(handle);
}