-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (124 loc) · 5.04 KB
/
index.html
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>3dYou移动版</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/jquery.mobile-1.0.1.min.css">
<link rel="stylesheet" href="css/style.mobile.css" type="text/css">
<link rel="stylesheet" href="css/style.mobile-jq.css" type="text/css">
<script type="text/javascript">
var scenicinfo = {"url":["0/237/navi","0/315/navi","0/304/navi"],"w":5688,"h":3200,"z":4,"zmax":5,"zmin":3};
</script>
<script type="text/javascript" src="phoneGap.js"></script>
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="js/jquery.mobile-1.0.1.min.js"></script>
<script src="js/OpenLayers-mobile-min.js"></script>
<script src="js/neo3dyou.js"></script>
<script src="js/mobile-base.js"></script>
<script src="js/mobile-jq.js"></script>
<script>
$(document).ready(function(){
$.ajax({
url: 'http://3dyou.cn/data/uploads/scenic/0/237/roam/maps.xml',
dataType: 'xml',
success: function(data){
console.log("载入map.xmlOK!");
$(data).find("map").each(function() {
var field = $(this);
var fName = field.attr("name");//读取节点属性
var dataType = field.find("action");//读取子节点的值
});
}
});
initScenic();
});
</script>
</head>
<body>
<h1 id="title">OpenLayers with jQuery Mobile</h1>
<div id="tags">
mobile, jquery
</div>
<p id="shortdesc">
Using jQuery Mobile to display an OpenLayers map.
</p>
<div data-role="page" id="mappage">
<div data-role="content">
<div id="map"></div>
</div>
<div data-role="footer">
<!--
<a href="#searchpage" data-icon="search" data-role="button">查找</a>
<a href="#" id="locate" data-icon="locate" data-role="button">返回中心点</a>
-->
<a href="#layerspage" data-icon="layers" data-role="button">切换景区</a>
</div>
<div id="navigation" data-role="controlgroup" data-type="vertical">
<a href="#" data-role="button" data-icon="plus" id="plus"
data-iconpos="notext"></a>
<a href="#" data-role="button" data-icon="minus" id="minus"
data-iconpos="notext"></a>
</div>
<!--
-->
</div>
<div data-role="page" id="searchpage">
<div data-role="header">
<h1>查找</h1>
</div>
<div data-role="fieldcontain">
<input type="search" name="query" id="query"
value="" placeholder="Search for places"
autocomplete="off"/>
</div>
<ul data-role="listview" data-inset="true" id="search_results"></ul>
</div>
<div data-role="page" id="layerspage">
<div data-role="header">
<h1>切换景区</h1>
</div>
<div data-role="fieldcontain">
<input type="search" name="query" id="query"
value="" placeholder="Search for places"
autocomplete="off"/>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="d" data-dividertheme="c" id="layerslist">
</ul>
</div>
</div>
<div id="popup" data-role="dialog">
<div data-position="inline" data-theme="d" data-role="header">
<h1>详细</h1>
</div>
<div data-theme="c" data-role="content">
<ul id="details-list" data-role="listview">
</ul>
</div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://124.238.214.32/piwik/" : "http://124.238.214.32/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://124.238.214.32/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29432345-1']);
_gaq.push(['_setDomainName', '3dyou.cn']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();
</script>
</body>
</html>