DistanceSymbolRange.withSymbol constructor

DistanceSymbolRange.withSymbol({
  1. required ArcGISSymbol symbol,
  2. double minDistance = 0.0,
  3. double maxDistance = 0.0,
})

Create a distance symbol range object.

Creates a Distance Range with a symbol and range properties. As a result the symbol will only be visible when the camera is within the specified distance range. Note that setting the maximum range to 0.0 indicates that there isn't a maximum range limit and the symbol will always be visible beyond its minimum range.

Parameters:

  • symbol — A symbol to set in the distance symbol range.
  • minDistance — The minimum distance to set in the distance symbol range. Must be >= 0.0.
  • maxDistance — The maximum distance to set in the distance symbol range. Must be >= 0.0, 0.0 indicates there is no maximum range.