-
Notifications
You must be signed in to change notification settings - Fork 0
/
naramap.php
executable file
·52 lines (46 loc) · 1.68 KB
/
naramap.php
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
<!DOCTYPE html>
<html lang="ja">
<head>
<title>NaraMap by Code for Nara</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./dist/leaflet.css" />
<link rel="stylesheet" href="./css/map.css" />
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<!--Leaflet 読み込み-->
<!-- <script type="text/javascript" src="./dist/leaflet.js"></script> -->
<script type="text/javascript" src="./dist/leaflet-src.js"></script>
<link href="./dist/leaflet.css" rel="stylesheet"/>
<script type="text/javascript" src="./dist/leaflet.ajax.min.js"></script>
<script type="text/javascript" src="./dist/gpx.js"></script>
<!--
<script type="text/javascript" src="./dist/leaflet-ant-path.js"></script>
<script type="text/javascript" src="./dist/leaflet-polygon.fillPattern.js"></script>
-->
</head>
<body>
<div id="map"></div>
<?php
if( isset( $_SERVER['HTTP_HOST'] ) ){
$area = $_GET['area'];
$HTTP_HOST = $_SERVER['HTTP_HOST'] ;
}else{
$area = "none";
$HTTP_HOST = "none";
}
echo ' <!-- server: '.$HTTP_HOST.' area: '.$area.' -->'."\n";
if( strcmp( $area, "none") ){
echo " \n";
echo ' <script type="text/javascript" src="js/param_'.$area.'.js"></script>';
echo " \n";
}
print <<< EOF
<script type="text/javascript" src="js/license.js"></script>
<script type="text/javascript" src="js/style.js"></script>
<script type="text/javascript" src="js/icons.js"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/naramap.js"></script>
EOF;
?>
</body>
</html>