Skip to content

[google_maps_flutter_web] Ability to animate camera with duration #159265

@jokerttu

Description

@jokerttu

Use case

User should be able to configure camera update duration on Web platform.
Camera animation duration is supported currently only on Android and iOS platforms.

Related to #39810

Proposal

Maps Javascript API does not support setting animation duration for camera controls by default.
Maps Javascript API -documentation has example how to implement custom animation duration with Tween.js library.
https://developers.google.com/maps/documentation/javascript/examples/move-camera-ease

Similar behaviour could be gained using TickerProvider and stepping camera position between start (current) and end (target) position.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions