leafdoc
Version:
A lightweight NaturalDocs-like LeafletJS-style documentation generator
60 lines (50 loc) • 1.15 kB
HTML
<html>
<head>
<title></title>
<meta charset="utf-8">
<style>
table {
border-collapse: collapse;
}
table td, table th {
border: 1px solid #888;
}
pre code {
display: inline-block;
background: #eee;
}
td:last-child code {
background: #eee;
}
body {
font-family: Sans;
max-width: 50em;
margin: auto;
}
</style>
</head>
<body>
<h2>Leafdoc generated API reference</h2>
<h2 id='geojson'>GeoJSON</h2>
<h2 id='marker'>Marker</h2>
<h3 id='marker-method'>Methods</h3>
<section>
<h4 id='marker-other-methods'>Other methods</h4>
<table><thead>
<tr>
<th>Method</th>
<th>Returns</th>
<th>Description</th>
</tr>
</thead><tbody>
<tr id='marker-togeojson'>
<td><code><b>toGeoJSON</b>(<nobr><Number> <i>precision?</i></nobr>)</nobr></code></td>
<td><code>Object</code></td>
<td><code>precision</code> is the number of decimal places for coordinates.
The default value is 6 places.
Returns a <a href="http://en.wikipedia.org/wiki/GeoJSON"><code>GeoJSON</code></a> representation of the marker (as a GeoJSON <code>Point</code> Feature).</td>
</tr>
</tbody></table>
</section>
</body></html>