Appearance
Course cards on your website
A club, a park or a tournament can show a disc golf course on its own website: a card with the course's map and scorecards, always as up to date as the course on Hyzeer, with a link to its page.
Make a card
Find the course, choose what its card shows, and see it as your visitors will. Then copy the code and paste it into your website, where the card should be: most website builders have an "HTML" or "Embed code" block for this.
You can also copy the code from the course's own page, under Embed this course.
The code
It looks like this:
html
<a class="hyzeer-course" href="https://hyzeer.com/courses/0193…/rozna-dolina-disc-golf"
data-layout="all" data-theme="auto" data-units="auto" data-show-map="true" data-show-scorecard="true"
data-interactive="true">Rožna Dolina Disc Golf on Hyzeer</a>
<script async src="https://hyzeer.com/courses/embed.js"></script>The script turns the link into the card, and makes the card as high as it needs to be. Without the script, or when it can't run, the link stays: your visitors still get to the course. For several cards on one page, paste each link; the script is needed once.
Options
Change them in the link you pasted:
| Option | Values | Default |
|---|---|---|
data-layout | all: every layout, the primary first; primary: only the layout new games start with; or one layout's name as the course page shows it, such as Short | all |
data-theme | light, dark, or auto: the visitor's light or dark setting | auto |
data-units | m, ft, or auto: the visitor's unit, from their browser's region or their choice on the card | auto |
data-show-map | true, or false for a card without the course map | true |
data-show-scorecard | true, or false for a card without scorecards; the holes, par and length stay under the name | true |
data-interactive | true: a map the visitor can zoom and move, and tap a hole on; or false: the same map as a picture, which loads less | true |
The card has a metres/feet switch whatever you choose; m or ft only sets the unit it starts with.
What the card shows
The course's name, where it is, the number of holes, par and length, the course map with its holes, mandos, OB areas and map details (unless data-show-map="false"): visitors can zoom it, tap a hole to see it in full with its par and length, and open it full screen where your website allows it (the script asks for that; a frame you add yourself needs allow="fullscreen"), a scorecard for every layout, or for the one data-layout names (none with data-show-scorecard="false"), and View on Hyzeer, which opens the course's page in a new tab. A course that has closed shows that it has.
Course photos are not shown on other websites: they belong to the players who took them, who let Hyzeer show them on Hyzeer only.
Privacy
The card sets no cookies, and loads nothing from anyone else: its map is drawn by Hyzeer, without map tiles, also when visitors zoom it. Your website needs no cookie consent for it. The visitor's metres/feet choice is kept in their browser.
oEmbed
Course pages offer oEmbed, so platforms that read it can turn a pasted course link into the card:
https://hyzeer.com/courses/oembed?url=https://hyzeer.com/courses/0193…/rozna-dolina-disc-golfThe answer is a rich card: a frame of a fixed size (600 px wide, or the platform's maxwidth up to that), which scrolls if the card is higher. maxwidth and maxheight are honoured; only JSON is offered.
Course data licence
The card credits the course data as the ODbL asks: "Course data © Hyzeer contributors, © OpenStreetMap contributors".
