GitHub 代码仓OwnWeb/map_elevation

map_elevation

一个用于显示轨迹(折线)高程的控件,类似于 Leaflet.Elevation

map_elevation 项目封面
星标
29
复刻
10
最近推送(UTC)
2026年8月24日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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),
    )
)
OwnWeb GitHub avatar
GitHub 作者

OwnWeb ↗

语言DartSwiftKotlinObjective-C

分类

此仓库发布的插件

使用的依赖

依赖清单 4 项

  • flutter{"sdk":"flutter"}
  • latlong2^0.8.0
  • flutter_test开发依赖{"sdk":"flutter"}
  • pedantic开发依赖^1.9.0

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗