centerOnMapRoutes method
- RouteDisplayMode? displayMode,
- RectType<
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.
Throws
- An exception if it fails.
Implementation
void centerOnMapRoutes({
final RouteDisplayMode? displayMode,
final RectType<int>? screenRect,
final GemAnimation? animation,
}) {
objectMethod(
_pointerId,
'MapView',
'centerOnRoutes',
args: <String, Object>{
'routesList': -1,
if (displayMode != null) 'displayMode': displayMode.id,
if (screenRect != null) 'viewRc': screenRect,
if (animation != null) 'animation': animation,
},
);
}