Want to make your geoJSON map available someplace other than GitHub? Simply modify this template, and place it in any HTML page that supports javascript (e.g., GitHub Pages):
<script src="https://embed.github.com/view/geojson/ <username>/<repo>/<ref>/<path_to_file> "></script>
For example, if your map's URL is:
github.com/benbalter/dc-wifi-social/blob/master/ bars.geojson
your embed code would be:
<script src="https://embed.github.com/view/geojson/ benbalter/dc-wifi-social/master/bars.geojson "></script>
By default, the embedded map 420px x 620px, but you can customize the output by passing height and width variables as parameters at the end, such as ?height=300&width=500.
# CommunityForge Embed Example Here we demonstrate an example we create from data taken from several hundred LETS projects around Europe:
<script src="https://embed.github.com/view/geojson/ matslats/cccmap/master/cforge.json "></script>
Here is the HTML:
<!DOCTYPE html> <html> <body> <script src="https://embed.github.com/view/geojson/ matslats/cccmap/master/cforge.json "></script> </body> </html>
# See also
- Embedding github geojson - github
- Simple github geojson embed - stevebennett.me