Skip to content

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

License

Notifications You must be signed in to change notification settings

OwnWeb/map_elevation

Repository files navigation

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),
    )
)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages