mmi_animap 0.0.3 copy "mmi_animap: ^0.0.3" to clipboard
mmi_animap: ^0.0.3 copied to clipboard

Marker Geo-Animation solution for MapMyIndia.

Marker animator

While working in map with Live-Tracking, You may like to show marker moving animation. This package will help you to animate marker over MapMyIndia's Map.

Features #

This initial version will use to move marker icon with smooth animation.

Getting started #

This package only support in MapMyIndia's map. Tested android and Ios

Installation #

  1. Add the latest version of package to your pubspec.yaml (and run `dart pub get`)
  2. dependencies:
      mmi_animap: ^0.0.2
    
  3. Import the package and use it in your Flutter App.
  4. import 'package:mmi_animap/mmi_animap.dart';
    

Usage #

To initialize MmiAnimarker you need to pass MapmyIndiaMapController and vsync

late MmiAnimarker mmiAnimarker;

_onMapCreated(MapmyIndiaMapController controller) {
  mmiAnimarker = MmiAnimarker(controller, this);
}
late Symbol carMarkerSymbol;
String carMarker = 'carMarker';

_addCarMarker(LatLng cabLatLng) async {
  var symbolOptions = SymbolOptions(
    geometry: cabLatLng,
    iconImage: carMarker,
    iconSize: 0.8,
  );
  cabMarkerSymbol = await mmiAnimarker.addAnimarkerSymbol(
      carMarker, AppImages.IMG_CAR_MARKER, symbolOptions);
}
 _animateCabIcon(LatLng currentLatLng) async {
  if (cabMarkerSymbol != null)
    await mmiAnimarker.animateMarker(currentLatLng, cabMarkerSymbol!);
}
 @override
void dispose() {
  mmiAnimarker.dispose();
  super.dispose();
}

Screenshot #

1
likes
130
pub points
19%
popularity

Publisher

unverified uploader

Marker Geo-Animation solution for MapMyIndia.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, mapmyindia_gl

More

Packages that depend on mmi_animap