map_elevation 1.0.2

Flutter Android iOS web

A widget to display elevation of a track (polyline) like Leaflet.Elevation.

map_elevation #

pub package

A widget to display elevation of a track (polyline)

Demo screenshot

Features #

  • Draw elevation graph
  • Dispatch a notification with hover point on graph
  • Add colors for high elevation gradients
  • Ability to add child over graph

Getting Started #

NotificationListener<ElevationHoverNotification>(
    onNotification: (ElevationHoverNotification notification) {
      setState(() {
        hoverPoint = notification.position;
      });

      return true;
    },
    child: Elevation(
      getElevationPoints(),
      color: Colors.grey,
      elevationGradientColors: ElevationGradientColors(
          gt10: Colors.green,
          gt20: Colors.orangeAccent,
          gt30: Colors.redAccent),
    )
)
3
likes
110
pub points
0%
popularity

Publisher

ownweb.fr

A widget to display elevation of a track (polyline) like Leaflet.Elevation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL 3.0 (LICENSE)

Dependencies

flutter, latlong

More

Packages that depend on map_elevation