SimpleMarkerSymbol constructor

SimpleMarkerSymbol(
  1. {SimpleMarkerSymbolStyle style = SimpleMarkerSymbolStyle.circle,
  2. Color color = const Color(0xFFD3D3D3),
  3. double size = 8.0}
)

Creates a simple marker symbol with the given properties.

Parameters:

  • style — Indicates the type of simple marker symbol to create.
  • color — The color of the simple marker symbol.
  • size — The size of the simple marker symbol in device independent pixels (DIPs).

Implementation

factory SimpleMarkerSymbol(
    {SimpleMarkerSymbolStyle style = SimpleMarkerSymbolStyle.circle,
    Color color = const Color(0xFFD3D3D3),
    double size = 8.0}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreColor = color.toArcGIS();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SimpleMarkerSymbol_createWith(
        style.coreValue, coreColor._handle, size, errorHandler);
  });
  final SimpleMarkerSymbol object =
      ArcGISSymbol._instanceCache.instanceWith(handle);
  object._color.cache(color);
  return object;
}