forked from fruskac/map-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.php
More file actions
39 lines (35 loc) · 936 Bytes
/
Copy pathembed.php
File metadata and controls
39 lines (35 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php include('config.php') ?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
iframe {
border: none;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<iframe src="<?php echo $mapPath ?>" id="map" allowfullscreen allowbrand="false"></iframe>
<script>
document.getElementById('map').onload = function () {
var FruskacMap = document.getElementById('map').contentWindow.fruskac;
new FruskacMap({
lang: '<?php echo $lang ?>',
fullscreen: '<?php echo $fullscreen ?>',
data: <?php echo json_encode($data) ?>
});
};
</script>
</body>
</html>