resolveMarkerScale function
double
resolveMarkerScale(
- Marker m, {
- MarkerLayerOptions? options,
- bool active = false,
- bool touch = false,
Implementation
double resolveMarkerScale(Marker m,
{MarkerLayerOptions? options, bool active = false, bool touch = false}) {
final selM =
(m is InteractiveMarker) ? m.activeOptions?.activeSizeFactor : null;
final selL =
(options is InteractiveLayerOptions) ? options.activeSizeFactor : null;
final touchM =
(m is InteractiveMarker) ? m.activeOptions?.touchSizeFactor : null;
final touchL =
(options is InteractiveLayerOptions) ? options.touchSizeFactor : null;
final activeScale = selM ?? selL ?? 1.0;
final touchScale = touchM ?? touchL ?? 1.0;
return active
? (touch ? touchScale * activeScale : activeScale)
: (touch ? touchScale : 1.0);
}