Skip to content

Commit

Permalink
release 2.1.0
Browse files Browse the repository at this point in the history
- add option to KmlWriter to specify <altitudeMode>
  • Loading branch information
kb0 committed May 29, 2021
1 parent 83bf8ed commit 55346bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.1.0]

* Add option to KmlWriter to specify <altitudeMode> (absolute, clampToGround, relativeToGround)

## [2.0.0]

* BREAKING CHANGE: This version requires Dart SDK 2.12.0 or later (null safety).
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ In your dart/flutter project add the dependency:
```
dependencies:
...
gpx: ^2.0.0
gpx: ^2.1.0
```

### Reading XML
Expand Down Expand Up @@ -85,6 +85,11 @@ main() {
// generate xml string
var kmlString = KmlWriter().asString(gpx, pretty: true);
print(kmlString);
// generate xml string with altitude mode - clampToGround
var kmlString = KmlWriter(altitudeMode: AltitudeMode.clampToGround)
.asString(gpx, pretty: true);
print(kmlString);
}
```

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gpx
description: Package for load, manipulate, and save GPS data in GPX format (a light-weight XML data format for the interchange of GPS data - waypoints, routes, and tracks).
version: 2.0.0
version: 2.1.0
homepage: https://github.com/kb0/dart-gpx/

environment:
Expand Down

0 comments on commit 55346bb

Please sign in to comment.