Skip to content

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">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:

OptionValuesDefault
data-layoutall: 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 Shortall
data-themelight, dark, or auto: the visitor's light or dark settingauto
data-unitsm, ft, or auto: the visitor's unit, from their browser's region or their choice on the cardauto
data-show-maptrue, or false for a card without the course maptrue
data-show-scorecardtrue, or false for a card without scorecards; the holes, par and length stay under the nametrue

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 and OB areas (unless data-show-map="false"): visitors can zoom it, switch between the drawn map, with the course's paths, trees and other details on paper, and a street map, 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. Where JavaScript doesn't run, the card shows the drawn map as a picture.

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. It starts with the drawn map, which loads nothing from anyone else: Hyzeer draws it, without map tiles, also when visitors zoom it. A visitor who switches to the street map loads it from OpenFreeMap, which sees their IP address but sets no cookies either. Your website needs no cookie consent for the card. The visitor's metres/feet and map choices are 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-golf

The 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". The street map shows its own credits on the map: OpenFreeMap, © OpenMapTiles and © OpenStreetMap contributors.