centerOnMapRoutes method
- RouteDisplayMode? displayMode,
- Rectangle<
int> ? screenRect, - GemAnimation? animation,
Center on the routes visible on the map.
Parameters
- IN displayMode Route display mode.
- IN screenRect Screen viewport rectangle where routes should be centered. The coordinates are relative to view parent screen.
- IN animation Specifies the animation to be used by the operation.
Implementation
void centerOnMapRoutes({
final RouteDisplayMode? displayMode,
final Rectangle<int>? screenRect,
final GemAnimation? animation,
}) {
objectMethod(
_pointerId,
'MapView',
'centerOnRoutes',
args: <String, Object>{
'routesList': -1,
if (displayMode != null) 'displayMode': displayMode.id,
if (screenRect != null)
'viewRc': RectType<int>.fromRectangle(screenRect),
if (animation != null) 'animation': animation,
},
);
}