-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
2,057 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="da" data-theme="light"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<title>Advanced</title> | ||
|
||
<link rel="shortcut icon" href="./okapi-small.png"> | ||
|
||
<link href="./prism.css" rel="stylesheet"> | ||
<link href="./example.css" rel="stylesheet"> | ||
|
||
<link href="./okapi.css" rel="stylesheet"> | ||
|
||
<script type="text/javascript" src="./clipboard.min.js"></script> | ||
<script type="text/javascript" src="./prism.js"></script> | ||
|
||
</head> | ||
<body> | ||
<main> <div | ||
id="map" | ||
class="geomap" | ||
data-type="" | ||
data-center-lat="56.153673" | ||
data-center-lon="10.214241" | ||
data-zoom="10" | ||
data-background="dtk_skaermkort_daempet" | ||
data-mylocation="true" | ||
data-fullscreen="true" | ||
data-zoomslider="true" | ||
data-layerswitcher="true" | ||
data-mousewheelzoom="true" | ||
data-extent='[-320000, 5600000, 1440000, 6800000]' | ||
data-token="fd44f26ab5701c01ca9f570e507fe9ab" | ||
style="height: 400px;"> | ||
</div> | ||
|
||
<!-- | ||
Udskift 'data-token=' med din egen token fra Dataforsyningen. | ||
Hvis ikke du har en token så log ind på ’Min side’ https://www.dataforsyningen.dk/ | ||
Opret en token og brug den i din applikation | ||
Token i dette eksempel er midlertidig og udelukkende til test brug. | ||
English | ||
Replace the 'data-token=' with your own token from the Danish map supply. | ||
If you do not have a token please log in to "My page" https://www.dataforsyningen.dk/ | ||
Create a token and use it in your application | ||
Token in this example is temporary and solely for test use. | ||
--> | ||
|
||
<script type="module"> | ||
import okapi from './okapi.js' | ||
var maps = new okapi.Initialize({}); | ||
</script> | ||
</main> | ||
<aside> | ||
<pre> | ||
<code class="language-markup"> | ||
|
||
<!DOCTYPE html> | ||
<html lang="da"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<title>Eksempel</title> | ||
|
||
<link href="https://cdn.jsdelivr.net/gh/SDFIdk/okapi@latest/dist/okapi.min.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/gh/SDFIdk/okapi@latest/lib/@dataforsyningen/okapi-1.9.2.min.js" integrity="sha384-SgEw9Obq1dyR6wtxJA65RKk3C/YrDqC0Dl79+dBxqQChkHJ/KRBCNKTsUq6Tmxal" crossorigin="anonymous"></script> | ||
|
||
|
||
</head> | ||
<body> | ||
<main> <div | ||
id="map" | ||
class="geomap" | ||
data-type="" | ||
data-center-lat="56.153673" | ||
data-center-lon="10.214241" | ||
data-zoom="10" | ||
data-background="dtk_skaermkort_daempet" | ||
data-mylocation="true" | ||
data-fullscreen="true" | ||
data-zoomslider="true" | ||
data-layerswitcher="true" | ||
data-mousewheelzoom="true" | ||
data-extent='[-320000, 5600000, 1440000, 6800000]' | ||
data-token="InsertYourTokenHere" | ||
style="height: 400px;"> | ||
</div> | ||
|
||
<!-- | ||
Udskift 'data-token=' med din egen token fra Dataforsyningen. | ||
Hvis ikke du har en token så log ind på ’Min side’ https://www.dataforsyningen.dk/ | ||
Opret en token og brug den i din applikation | ||
Token i dette eksempel er midlertidig og udelukkende til test brug. | ||
|
||
English | ||
Replace the 'data-token=' with your own token from the Danish map supply. | ||
If you do not have a token please log in to "My page" https://www.dataforsyningen.dk/ | ||
Create a token and use it in your application | ||
Token in this example is temporary and solely for test use. | ||
--> | ||
|
||
<script type="module"> | ||
import okapi from './okapi.js' | ||
var maps = new okapi.Initialize({}); | ||
</script> | ||
</main> | ||
</body> | ||
</html> | ||
|
||
</code> | ||
</pre> | ||
<script> | ||
(function(){ | ||
Prism.plugins.toolbar.registerButton('copy-to-clipboard', function (env) { | ||
var linkCopy = document.createElement('a'); | ||
linkCopy.textContent = ' Copy'; | ||
|
||
if (!ClipboardJS) { | ||
callbacks.push(registerClipboard); | ||
} else { | ||
registerClipboard(); | ||
} | ||
|
||
return linkCopy; | ||
|
||
function registerClipboard() { | ||
var clip = new ClipboardJS(linkCopy, { | ||
'text': function () { | ||
return env.code; | ||
} | ||
}); | ||
|
||
|
||
clip.on('success', function() { | ||
linkCopy.textContent = ' Copied!'; | ||
}); | ||
} | ||
}); | ||
})(); | ||
</script> | ||
</aside> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.