onMapCl method

  1. @JSExport()
void onMapCl(
  1. double lat,
  2. double lon
)

Internal callback when user click on map

param: lat - latitude on point lon - longitude of point

Implementation

@JSExport()
void onMapCl(double lat, double lon) {
  if (widget.onMapClick != null) {
    widget.onMapClick!(LatLng(lat, lon));
  }
}