flutter_animarker
flutter_animarker copied to clipboard
Duplication marker on position update
Flutter animaker package duplicates my marker on position updated. Below if my implementation
return Animarker(
curve: Curves.bounceOut,
// rippleRadius: 0.2,
useRotation: true,
// duration: Duration(milliseconds: 2300),
mapId: mapController.future
.then<int>((value) => value.mapId), //Grab Google Map Id
markers: markers ?? const <Marker>{},
child: GoogleMap(
zoomControlsEnabled: false,
myLocationEnabled: myLocationEnabled ?? true,
myLocationButtonEnabled: false,
compassEnabled: false,
initialCameraPosition: initialCameraPosition,
markers: markers ?? const <Marker>{},
polylines: polylines ?? const <Polyline>{},
onMapCreated: (controller) {
// WidgetsBinding.instance.addPostFrameCallback((_) {
// your code that moves the camera
if (!mapController.isCompleted) mapController.complete(controller);
// });
},
onCameraMove: onCameraMoveCallback,
),
);
below is my result
Can you guide me how you draw polyline?
Same issue any solution?
Can you guide me how you draw polyline?
Use polyline attribute in GoogleMap widget
Can you guide me how you draw polyline?
Use polyline attribute in GoogleMap widget
Can you provide any example? I'M drawing the polyline from start to end point but i want to draw it along the marker moving.
Can you provide any example? I'M drawing the polyline from start to end point but i want to draw it along the marker moving.
Same as my situation, I will work on this tonight, i will reach out with you when i achieve it.. Best regards...
Can you provide any example? I'M drawing the polyline from start to end point but i want to draw it along the marker moving.
Same as my situation, I will work on this tonight, i will reach out with you when i achieve it.. Best regards...
Hey, did you achieve it?
Hi guys, I just submit a new beta version 3.4.0-beta.1 and give me your giveback. I couldn't replicate this issue, but could relate with the bugfix that prevent to remove markers. Also, please use the same markerId for new position updates, this is the way the Animarker keep the tracking of delta position (from-to).
Any updates, i am still facing this
@gauris26 it would be great if you can check this