Description Usage Arguments Details Value Examples
Make an interactive map to view in the browser as a GitHub gist
1 |
x |
Output from |
file |
(character) File name (without file extension) for your geojson file. Default is 'gistmap'. |
description |
(character) Description for the Github gist, or leave to default (=no description) |
public |
(logical) Whether gist is public (default: |
browse |
(logical) If |
... |
Curl options, see |
There are two ways to authorise gistr to work with your GitHub account:
Generate a personal access token at https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token and record in the GITHUB_PAT envar.
Interactively login into your GitHub account and authorise with OAuth
Using the GITHUB_PAT option is recommended.
Creates a gist on your GitHub account
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.