simple_map 0.1.0

Flutter Android iOS web

A Flutter plugin for displaying a simple flat world map with animated points.

Flutter Simple Map #

Flutter plugin to display a simple flat world map with animated points in real time. Can be used as a presentation of online users, etc.

Build Status Pub package Star on GitHub License: MIT

1.gif 2.gif

Getting Started #

  • Add this to your pubspec.yaml
    dependencies:
    simple_map: ^0.1.0
    
  • Get the package from Pub:
    flutter packages get
    
  • Import it in your file
    import 'package:simple_map/simple_map.dart';
    

Features #

  • Render simple customizable flat map
  • Render points with animation effect
  • Customize every point
  • Create points with TTL
  • Good performance with lot of data

Usage #

  • Using SimpleMapOptions
final mapOptions = SimpleMapOptions(
    // You can use your own map image
    mapAsset: 'assets/map.png',
    mapColor: Colors.grey,
    bgColor: Colors.black,
);
  • Using SimpleMapController
final SimpleMapController mapController = SimpleMapController();

// Add single point.
mapController.addPoint(SimpleMapPoint());

// Add list of points
mapController.points = [SimpleMapPoint()];

// Clear the map.
mapController.clear();

SimpleMap(
  controller: mapController,
  options: mapOptions,
),
  • Simple map with one center point with duration of 100 seconds
SimpleMap(
  controller: SimpleMapController(points: [
    SimpleMapPoint(
      lat: 0.0,
      lng: 0.0,
      color: Colors.blue,
      ttl: Duration(seconds: 100),
    )
  ]),
  options: mapOptions,
),

Changelog #

Please have a look in CHANGELOG

Maintainers #

License #

License: MIT

1
likes
100
pub points
29%
popularity

A Flutter plugin for displaying a simple flat world map with animated points.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

vk.tiamo@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_map