Repository navigation
Expand file tree
/
Copy pathexamples.html
More file actions
54 lines (50 loc) · 2.49 KB
/
Copy pathexamples.html
File metadata and controls
54 lines (50 loc) · 2.49 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
<!--********************************************************************
* Copyright© 2000 - 2026 SuperMap Software Co.Ltd. All rights reserved.
*********************************************************************-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title data-i18n="resources.title_examplesLeaflet"></title>
<link rel="shortcut icon" type="image/x-icon" href="../../img/favicon.ico"/>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<script type="text/javascript"
include="jquery,bootstrap,template,admin-lte,jquery.scrollto,i18n,lazyload,theme"
src="../../js/include-web.js"></script>
<link rel="stylesheet" href="../../css/common.css">
<link rel="stylesheet" href="../../css/header.css">
<link rel="stylesheet" href="../../css/sideBar.css">
<link rel="stylesheet" href="../../css/examples.css">
<script type="text/javascript" src="../../js/utils.js"></script>
<script type="text/javascript" src="../../js/dataSource.js"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini" data-spy="scroll" data-target="#scrollSpy">
<!-- ./wrapper -->
<div class="wrapper"></div>
<script>
$('.wrapper').load("../../template/example.html", function () {
var navigation = {
nav: {
title: window.versionName,
path: "../../../web/",
isLocal: window.isLocal
}
};
utils.loadTemplate(".icl-header", "../../template/header.html", navigation);
$body = $('body');
//只加载 en 目录下的英文示例配置,配置是直接挂在全局 exampleConfig 上的,需先初始化
window.exampleConfig = {};
//缩略图仍使用 zh 目录下对应产品的图片
window.exampleThumbLocation = '../../leaflet';
$body.append("<script type='text/javascript' src='./config.js'><\/script>");
$body.append("<script type='text/javascript' src='../../js/localization.js'><\/script>");
$body.append("<script type='text/javascript' src='../../js/common.js'><\/script>");
$body.append("<script type='text/javascript' src='../../js/sidebar.js'><\/script>");
$body.append("<script type='text/javascript' src='../../js/example.js'><\/script>");
utils.loadTemplate(".icl-footer", "../../template/footer.html", navigation);
});
</script>
<!-- ./wrapper end-->
</body>
</html>