3D ski maps · For hotel, hut and resort websites
How to put a 3D map on your website
Three steps, nothing to install, no sign-up. The map runs on our server – you paste one snippet into your site and the map keeps itself up to date.
-
Choose a map
Pick the resort, language and height. The code in the next step updates itself.
-
Copy the code
Two lines: the place where the map goes, and the script that draws it there. One click copies both.
<div id="vikend-map" data-map="sella" data-lang="en"></div> <script src="https://vikendnaslovensku.sk/mapy/embed.js" async></script> -
Paste it into your page
Put the code where the map should appear:
- Your own site (HTML) – paste the code into the page where you want the map.
- WordPress – add a “Custom HTML” block in the editor and paste the code into it.
- Wix, Webnode, Squarespace and others – use the “Embed”, “HTML code” or “Embed code” element.
Map settings (data- attributes)
data-map="chopok"- which map is shown (required)
data-lang="sk" · "en" · "de" · "pl"- language of labels and popups; without it, your page’s language
data-focus="Koliba Jasná"- the map opens on this business, lift or run with its popup (the name as on the map)
data-theme="light" · "dark"- light or dark map, to match your site; without it, the visitor’s own setting
data-height="600"- fixed height in pixels; without it the height follows the width (4 : 3)
data-title="0"- hides the map name in the top-left corner
data-load="auto"- the map loads by itself when a visitor scrolls to it, instead of the “Open the 3D map” button
Several maps on one page
Use the class vikend-map on each map instead of the id. The script is needed only once.
<div class="vikend-map" data-map="chopok"></div>
<div class="vikend-map" data-map="lomnica"></div>
<script src="https://vikendnaslovensku.sk/mapy/embed.js" async></script>Good to know
- The map updates itself – when we add businesses, runs or prices, they appear on your site too.
- Until a visitor clicks “Open the 3D map” there is only a preview image, so the map does not slow your site down. The mouse wheel and touch move the map only after a click into it – the page scrolls past it as usual.
- Under the map are Full screen and Open the full map buttons. The script tells us which page the map is on (only the page address – no visitor data and no view counts).
- The location button and navigation work on sites served over https.
- The map shows its data sources (OpenStreetMap and others) – please keep them visible.
- A question, or want a map of your resort? Write to us →