kopia lustrzana https://github.com/geodienst/lighthousemap
Add the demo gif
rodzic
f6789e4081
commit
22996b89f0
|
@ -1,6 +1,8 @@
|
||||||
# Beacon map
|
# Beacon map
|
||||||
This map shows all the blinking beacons from [OpenStreetMap](http://www.openstreetmap.org/).
|
This map shows all the blinking beacons from [OpenStreetMap](http://www.openstreetmap.org/).
|
||||||
|
|
||||||
|
![Demo time](https://geodienst.github.io/lighthousemap/demo.gif)
|
||||||
|
|
||||||
More specifically, it asks the [Overpass API](https://www.overpass-api.de) for all elements with an `seamark:light:sequence` attribute, decodes these, and displays them as coloured circles on the map using [Leaflet](http://leafletjs.com). It also tries to take the `seamark:light:range` and `seamark:light:colour` into account.
|
More specifically, it asks the [Overpass API](https://www.overpass-api.de) for all elements with an `seamark:light:sequence` attribute, decodes these, and displays them as coloured circles on the map using [Leaflet](http://leafletjs.com). It also tries to take the `seamark:light:range` and `seamark:light:colour` into account.
|
||||||
|
|
||||||
## Overpass API
|
## Overpass API
|
||||||
|
@ -9,7 +11,7 @@ The current version uses an extracted dataset, but the code allows for directly
|
||||||
## Useful stuff
|
## Useful stuff
|
||||||
The `leaflet.indexedfeaturelayer.js` file contains an extension on Leaflet's GeoJSON layer that only add layers/features to the map that are (or are about to be) visible. It uses a spatial index to quickly query which features can be removed from the DOM, increasing performance.
|
The `leaflet.indexedfeaturelayer.js` file contains an extension on Leaflet's GeoJSON layer that only add layers/features to the map that are (or are about to be) visible. It uses a spatial index to quickly query which features can be removed from the DOM, increasing performance.
|
||||||
|
|
||||||
`leaflet.light.js` contains my best guess on how a light sequence will look based on (these descriptions)[http://wiki.openstreetmap.org/wiki/Seamarks/Light_Characters]. However, it might be inaccurate, and it tries to do its best with the sometimes not entirely consistent data from OSM.
|
`leaflet.light.js` contains my best guess on how a light sequence will look based on [these descriptions](http://wiki.openstreetmap.org/wiki/Seamarks/Light_Characters). However, it might be inaccurate, and it tries to do its best with the sometimes not entirely consistent data from OSM.
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
This map is made by the [Geodienst](http://www.geodienst.xyz) because it was a fun idea we wanted to try out. Feel free to fork this map and make your own visualisation of OSM data, or contribute improvements back to us.
|
This map is made by the [Geodienst](http://www.geodienst.xyz) because it was a fun idea we wanted to try out. Feel free to fork this map and make your own visualisation of OSM data, or contribute improvements back to us.
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 2.0 MiB |
Ładowanie…
Reference in New Issue