MarkerConfig constructor

MarkerConfig({
  1. required String imgPath,
  2. Offset anchor = const Offset(0, 0),
  3. InfoWindow infoWindow = InfoWindow.noText,
})

Implementation

MarkerConfig({
  required String imgPath,
  this.anchor = const Offset(0,0),
  this.infoWindow = InfoWindow.noText,
}) {
  icon.complete(BitmapDescriptor.fromAssetImage(
    ImageConfiguration(
      devicePixelRatio: window.devicePixelRatio,
    ),
    imgPath,
  ));
}