Skip to content

Commit

Permalink
extend documentation about L.Utm class members.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjimenezshaw authored Feb 9, 2020
1 parent 1bedc82 commit db79726
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ var txt = map.getCenter().utm().toString({decimals: 0, format: '{x} {y} {zone} {
```
that produces `467486 4101149 30 North`

You can also use the values of that `object` directly (like `c.utm().x`). Here is a dump in the Console:
```JavaScript
L.Utm {x: 467486.3402722592,
y: 4101149.337496558,
zone: 30,
band: "S",
southHemi: false}
```

### UTM -> LatLng
Just create an object with `L.utm(options)`, and call the method `latLng` like here:
```JavaScript
Expand Down

0 comments on commit db79726

Please sign in to comment.