angleAlignment property

SymbolAngleAlignment angleAlignment

Indicates whether the marker symbol is rotated relative to the screen or map.

If the value is SymbolAngleAlignment.arcGISMap, the marker symbol is rotated relative to the map and will be affected by the map's rotation. If the value is SymbolAngleAlignment.screen, the marker symbol is rotated relative to the user's screen and is unaffected by the map's rotation.

When the GraphicsOverlay.renderingMode is GraphicsRenderingMode.static, each MarkerSymbol is aligned with the ArcGISMapViewController. If the ArcGISMapViewController rotates, every marker symbol on the ArcGISMap will stay in the same orientation as the ArcGISMapViewController. Even if you set MarkerSymbol.angle and MarkerSymbol.angleAlignment, they are not respected when the GraphicsRenderingMode is set to static.

When the GraphicsOverlay.renderingMode is set to GraphicsRenderingMode.dynamic, each MarkerSymbol rotates independently of an ArcGISMapViewController rotation. If you set MarkerSymbol.angle and MarkerSymbol.angleAlignment, they are respected.

The default value is SymbolAngleAlignment.screen.

Implementation

SymbolAngleAlignment get angleAlignment {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MarkerSymbol_getAngleAlignment(
        _handle, errorHandler);
  });
  return SymbolAngleAlignment._fromCoreValue(coreValue);
}
void angleAlignment=(SymbolAngleAlignment value)

Implementation

set angleAlignment(SymbolAngleAlignment value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_MarkerSymbol_setAngleAlignment(
        _handle, value.coreValue, errorHandler);
  });
}