default.php
4.05 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
include (dirname(__FILE__)."/../../classesphp/sani_request.php");
include("../blacklist.php");
verificaBlFerramentas(basename(dirname(__FILE__)),"",false);
//exemplo: http://localhost/i3geo/ferramentas/storymap/default.php?tema=_lreal&layers=_lbiomashp _llocali
//temas do i3geo podem ser incluidos em &layers separados por espacos
if(empty($_GET["tema"])){
echo "&tema nao definido";
exit;
}
if(!file_exists(dirname(__FILE__)."/../../temas/".$_GET["tema"].".map")){
echo "&tema nao existe";
exit;
}
$map_type = "stamen:toner-lite";
if($_GET["layers"] != ""){
$protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']);
$url = strtolower($protocolo[0])."://".$_SERVER['HTTP_HOST'].":". $_SERVER['SERVER_PORT'];
$url .= str_replace("/ferramentas/storymap/default.php","",$_SERVER["PHP_SELF"]);
$map_type = $url."/ogc.php?tema=".strip_tags($_GET["layers"])."&DESLIGACACHE=&Z={z}&X={x}&Y={y}";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>StoryMapJS</title>
<meta charset="utf-8">
<meta name="description" content="TimelineJS Embed">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- CSS-->
<link rel="stylesheet" href="../../pacotes/knightlab/StoryMapJS/compiled/css/storymap.css?v1">
<!--FONT-->
<!--link(rel='stylesheet', href='css/fonts/font.pt.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.abril-droidsans.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.amatic-andika.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.bitter-raleway.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.clicker-garamond.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.roboto-megrim.css?v1')-->
<link rel="stylesheet" href="../../pacotes/knightlab/StoryMapJS/compiled/css/fonts/font.unicaone-vollkorn.css?v1">
<!--link(rel='stylesheet', href='css/fonts/font.playfair-faunaone.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.playfair.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.pt.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.dancing-ledger.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.fjalla-average.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.georgia-helvetica.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.knightlab.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.lustria-lato.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.medula-lato.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.abril-droidsans.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.oldstandard.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.rufina-sintony.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.opensans-gentiumbook.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.ubuntu.css?v1')-->
<!--link(rel='stylesheet', href='css/fonts/font.default.css?v1')-->
<!-- Style-->
<style>
html, body {
height: 100%;
width: 100%;
padding: 0px;
margin: 0px;
}
.vco-map-line{
display: none
}
</style>
</head>
<body>
<div id="storymap"></div>
<!-- JavaScript-->
<script src="../../pacotes/knightlab/StoryMapJS/compiled/js/storymap.js"></script>
<script>
//http://localhost/ogc.php?tema=_llocali&DESLIGACACHE=&tms=/_llocali/{z}/{x}/{y}.png
VCO.Language = {
name: "Português",
lang: "pt",
messages: {
loading: "carregando",
wikipedia: "da Wikipedia, a enciclopédia livre",
start: "Explore"
},
buttons: {
map_overview: "vista geral do mapa",
overview: "vista geral",
backtostart: "voltar ao começo",
collapse_toggle: "ocultar o mapa",
uncollapse_toggle: "mostrar o mapa"
}
};
var storymap = new VCO.StoryMap('storymap', '../../json.php?tema=<?php echo strip_tags($_GET["tema"]);?>&format=storymap&', {
"map_type": "<?php echo $map_type;?>",
"show_lines": false
});
window.onresize = function(event) {
storymap.updateDisplay();
}
</script>
</body>
</html>