launch method

Future<bool> launch(
  1. {String query,
  2. GeoPoint geoPoint,
  3. int zoom,
  4. MapType mapType}
)

Launches map.

Example

import 'package:maps/maps.dart';

Future<void> main() {
  final launcher = MapLauncher.defaultInstance;
  await launcher.launch(
    geoPoint:GeoPoint(0.0, 0.0),
  );
}

Implementation

Future<bool> launch({
  String query,
  GeoPoint geoPoint,
  int zoom,
  MapType mapType,
}) {
  return buildUrl(
    query: query,
    geoPoint: geoPoint,
    mapType: mapType,
  ).then((url) {
    return impl.launch(url);
  });
}