https://github.com/osmlab/osm-gpx-tile
tiles from the OpenStreetMap GPX API, built on osm-gpx
https://github.com/osmlab/osm-gpx-tile
Last synced: about 1 year ago
JSON representation
tiles from the OpenStreetMap GPX API, built on osm-gpx
- Host: GitHub
- URL: https://github.com/osmlab/osm-gpx-tile
- Owner: osmlab
- License: bsd-3-clause
- Created: 2013-03-18T16:48:21.000Z (over 13 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-06-15T13:39:23.000Z (about 11 years ago)
- Last Synced: 2024-04-09T13:29:36.669Z (over 2 years ago)
- Language: JavaScript
- Homepage: http://osmlab.github.io/osm-gpx-tile/
- Size: 271 KB
- Stars: 6
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## A GPS Tile Type
This hits the [OpenStreetMap GPX API](http://wiki.openstreetmap.org/wiki/API_v0.6#GPS_traces),
processes GPX with [toGeoJSON](https://github.com/tmcw/togeojson) and
draws pictures with Canvas.
It's just a tile type. You can use it with anything that uses types and lets
you use HTML5 Canvas. The example is with [Leaflet](http://leafletjs.com/),
but doesn't use any Leaflet stuff. See
[the connector](https://github.com/tmcw/gpstile/blob/gh-pages/gpstile.l.js) for
what that means.
It's put together with a little bit of [browserify](https://github.com/substack/node-browserify) and
[node-sphericalmercator](https://github.com/mapbox/node-sphericalmercator)
### Leaflet Integration
```js
// Leaflet
var layer = LgpsTile();
```
### Raw API
```js
gpsTile([z, x, y], canvas, function() {
// called after initial tile draw
});
```