OwnWeb / map_elevation

A widget to display elevation of a track (polyline) like Leaflet.Elevation
MIT License
28 stars 9 forks source link
dart flutter hacktoberfest

map_elevation

pub package

A widget to display elevation of a track (polyline)

Demo screenshot

Features

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