generic_map 0.3.5 copy "generic_map: ^0.3.5" to clipboard
generic_map: ^0.3.5 copied to clipboard

A generic maps api supporting Google Maps, Mapbox, and OpenStreetMaps

Generic Map #

A simple wrapper around:

  • flutter_map
  • google_maps_flutter

It offers a shared API that lets you switch easily between OpenStreetMap, MapBox, and Google Maps. Additional MapBox OpenGL support is planned.

Installation #

Add this package to your pubspec.yaml:

dependencies:
  generic_map: ^0.3.5

Usage #

import 'package:generic_map/generic_map.dart';

final map = GenericMap(
  // ...existing code...
);

Key Features #

  • Unified API over multiple map providers
  • Achiving the same feature parity across all map providers
  • Drawing widget markers on google_maps (Official API does not support this)