zIndex property
- @Deprecated('Use zIndexInt instead. ' 'On some platforms zIndex is truncated to an int, which can lead to incorrect/unstable ordering.')
inherited
The z-index of the marker, used to determine relative drawing order of map overlays.
Overlays are drawn in order of z-index, so that lower values means drawn earlier, and thus appearing to be closer to the surface of the Earth.
Implementation
// TODO(stuartmorgan): Make this an int when removing the deprecated double zIndex parameter.
@Deprecated(
'Use zIndexInt instead. '
'On some platforms zIndex is truncated to an int, which can lead to incorrect/unstable ordering.',
)
double get zIndex => _zIndexNum.toDouble();