wrapAroundMode property

WrapAroundMode wrapAroundMode

Indicates whether continuous panning across the international date line is enabled.

By default, the ArcGISMapViewController attempts to wrap the ArcGISMap across the international date line for a continuous panning user experience. The eastern and western hemispheres wrap to form a continuous map, giving the impression that the map is endless.

You can apply wraparound to an ArcGISMapViewController if certain conditions are met, as described in WrapAroundMode.enabledWhenSupported. To remove the wraparound behavior set the value to WrapAroundMode.disabled.

If wraparound is enabled, geometries returned from ArcGISMapViewController.visibleArea may have coordinates outside the domain of the spatial reference of the map. Before using such geometries to perform spatial queries, address finding, or as feature geometries in a geodatabase, normalize them to lie within the spatial reference domain using GeometryEngine.normalizeCentralMeridian.

The default value is WrapAroundMode.enabledWhenSupported.

Implementation

WrapAroundMode get wrapAroundMode {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MapView_getWrapAroundMode(_handle, errorHandler);
  });
  return WrapAroundMode._fromCoreValue(coreValue);
}
void wrapAroundMode=(WrapAroundMode value)

Implementation

set wrapAroundMode(WrapAroundMode value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_MapView_setWrapAroundMode(
        _handle, value.coreValue, errorHandler);
  });
}