Skip to content

Commit

Permalink
Fix table of contents and table spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter547 authored Apr 25, 2022
1 parent 5f257e4 commit c9ae6a9
Showing 1 changed file with 43 additions and 34 deletions.
77 changes: 43 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,36 @@

Draw smooth geodesic (Great Circle) paths from a source latitude/longitude to a destination latitude/longitude.

<br />

<div id="top"></div>

<!-- TABLE OF CONTENTS -->
<details>
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
<a href="built-with">Built With</a>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
<li><a href="#built-with">Built With</a></li>
<li><a href="#setup">Setup</a></li>
</ul>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<a href="#installation">Installation</a>
<ul>
<li><a href="#installation">Installation</a></li>
<li><a href="#nodejs">Node.js</a></li>
</ul>
</li>
<li>
<a href="#usage">Usage</a>
<ul>
<li><a href="#parameters">Parameters</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
</li>
<li><a href="#usage">Usage</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
Expand Down Expand Up @@ -78,37 +89,37 @@ import "leaflet.smoothgeodesic";

## Usage

Give a source coordinate and destination coordinate (with options) and optionally animate it
Give a source coordinate and destination coordinate (with options) and optionally animate it.

### Parameters

```
L.smoothGeodesic(Source Coords, Dest Coords, Number of Midpoints, Options)
L.smoothGeodesic(Source coordinates, Destination coordinates, Number of midpoints, Options)
```

1. <b>Source Coords</b>
1. <b>Source coordinates</b>
<table>
<tr>
<td> Purpose </td> <td> Available Data Types </td><td> Example </td>
</tr>
<tr>
<td> The starting location of the curve </td>
<td>The starting location of the curve.</td>
<td><code>[number, number]</code> and <code>L.LatLng(lat, lng)</code></td>
<td><code>[0, 0]</code> or <code>new L.LatLng(0, 0)</code></td>
</tr>
</table>
2. <b>Dest Coords</b>
2. <b>Destination coordinates</b>
<table>
<tr>
<td> Purpose </td> <td> Available Data Types </td><td> Example </td>
</tr>
<tr>
<td> The ending location of the curve </td>
<td>The ending location of the curve.</td>
<td><code>[number, number]</code> and <code>L.LatLng(lat, lng)</code></td>
<td><code>[0, 0]</code> or <code>new L.LatLng(0, 0)</code></td>
</tr>
</table>
3. <b>Number of Midpoints</b>
3. <b>Number of midpoints</b>
<table>
<tr>
<td> Purpose </td> <td> Available Data Types </td><td> Example </td>
Expand All @@ -119,30 +130,28 @@ L.smoothGeodesic(Source Coords, Dest Coords, Number of Midpoints, Options)
<td><code>65</code></td>
</tr>
</table>
4. <b>Options</b>
4. <b>Options</b>
<table>
<tr>
<td> Purpose </td> <td> Available Data Types </td><td> Example </td>
</tr>
<tr>
<td> Allow for customization of the geodesic path. This options object is an extension of the <a href="https://leafletjs.com/SlavaUkraini/reference.html#path">Leaflet Path Options</a>. All options listed there can be used here, as well as an <code>animate:{}</code> property, which is of type <a href="https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.keyframeanimationoptions.html">KeyframeAnimationOptions</a>, or just a number. This gives the user the ability to both customize the path and animate it from point A to point B with keyframes, or just a number defining the duration of the point A to pont B "flight" time.</td>
<td><code>{...<a href="https://leafletjs.com/SlavaUkraini/reference.html#path">Leaflet Path Options</a>, animate: <a href="https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.keyframeanimationoptions.html">KeyframeAnimationOptions</a> or number</code></td>
<td>

```json
{
"weight": 4,
"color": "darkslateblue",
"animate": { "duration": 3000, "delay": 1000 }
}
```

</td>
</tr>
<tr>
<td> Purpose </td> <td> Available Data Types </td><td> Example </td>
</tr>
<tr>
<td> Allow for customization of the geodesic path. This options object is an extension of the <a href="https://leafletjs.com/SlavaUkraini/reference.html#path">Leaflet Path Options</a>. All options listed there can be used here, as well as an <code>animate:{}</code> property, which is of type <a href="https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.keyframeanimationoptions.html">KeyframeAnimationOptions</a>, or just a number. This gives the user the ability to both customize the path and animate it from point A to point B with keyframes, or just a number defining the duration of the point A to pont B "flight" time.</td>
<td><code>{...<a href="https://leafletjs.com/SlavaUkraini/reference.html#path">Leaflet Path Options</a>, animate: <a href="https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.keyframeanimationoptions.html">KeyframeAnimationOptions</a> or number</code>.</td>
<td>
```json
{
"weight": 4,
"color": "darkslateblue",
"animate": { "duration": 3000, "delay": 1000 }
}
```
</td>
</tr>
</table>

<!-- ROADMAP -->

### Examples
```javascript
L.smoothGeodesic(
Expand Down Expand Up @@ -185,7 +194,7 @@ L.smoothGeodesic(
).addTo(map)
```


<!-- ROADMAP -->
## Roadmap

- [ ] Add Changelog.
Expand Down

0 comments on commit c9ae6a9

Please sign in to comment.