ArcGISMap constructor
- {SpatialReference? spatialReference}
Creates a map with the specified spatial reference.
Parameters:
spatialReference
— A spatial reference object.
Implementation
factory ArcGISMap({SpatialReference? spatialReference}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Map_createWithSpatialReference(
spatialReference?._handle ?? ffi.nullptr, errorHandler);
});
final ArcGISMap object = GeoModel._instanceCache.instanceWith(handle);
object._spatialReference.cache(spatialReference);
return object;
}