forked from khanhpti/local-government-online-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths2.html
121 lines (120 loc) · 5.14 KB
/
s2.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
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Define the versions of IE that will be used to render the page. See Microsoft documentation for details. Optional. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--
| Copyright 2012 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
-->
<title></title>
<meta name="description" content="ArcGIS Solutions online app">
<!-- Responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<!-- End Responsive -->
<!-- Use protocol relative urls that way if the browser is viewing the page via HTTPS the js/css file will be requested using the HTTPS protocol -->
<link rel="stylesheet" href="//js.arcgis.com/3.10/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="//js.arcgis.com/3.10/js/esri/css/esri.css">
<!-- Load any application specific styles -->
<link rel="stylesheet" href="css/main.css">
</head>
<!--[if lt IE 9]><body id="pageBody" class="lt-ie9 claro fill app-loading"><![endif]-->
<!--[if gt IE 8]><!-->
<body id="pageBody" class="okIE claro fill app-loading">
<!--<![endif]-->
<div class="loading-indicator">
<div class="loading-message" id="loading_message"></div>
</div>
<div id="contentDiv" class="fill transparent">
<noscript>
<div class="noJavaScriptMessage">
<span>This site requires JavaScript.</span>
</div>
</noscript>
<!-- The ArcGIS API for JavaScript provides bidirectional support. When viewing the application in an right to left (rtl) language like Hebrew and Arabic the map needs to remain in left-to-right (ltr) mode. Specify this by setting the dir attribute on the div to ltr. -->
<div id="mapDiv" dir="ltr"></div>
</div>
<script type="text/javascript">
var package_path = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
var dojoConfig = {
async: false,
// The locationPath logic below may look confusing but all it's doing is
// enabling us to load the api from a CDN and load local modules from the correct location.
packages: [{
name: "launch",
location: package_path + '/js'
}, {
name: "config",
location: package_path + '/config'
}, {
name: "arcgis_templates",
location: package_path + '/..'
}, {
name: "js",
location: package_path + '/js2'
},{
name: "app",
location: package_path + '/.'
}]
};
var jsapi_i18n = {};
// Have to handle a locale parameter before dojo is loaded
if (location.search.match(/locale=([\w\-]+)/)) {
dojoConfig.locale = RegExp.$1;
}
</script>
<script type="text/javascript" src="//js.arcgis.com/3.10/"></script>
<script src="js2/libs.js"></script>
<script type="text/javascript">
require([
"launch/template",
"launch/main"
], function(
Template,
Main
){
// create the template. This will take care of all the logic required for template applications
var myTemplate = new Template({
/*
webmap: true,
groupInfo: false,
groupItems: false,
groupParams: {
sortField: "modified",
sortOrder: "desc",
num: 9,
start: 0
}
*/
});
// create my main application. Start placing your logic in the main.js file.
var myApp = new Main();
// start template
myTemplate.startup().then(function(config) {
// The config object contains the following properties: helper services, (optionally)
// i18n, appid, webmap and any custom values defined by the application.
// In this example we have one called theme.
myApp.startup(config);
}, function(error) {
// something went wrong. Let's report it.
myApp.reportError(error);
});
});
</script>
</body>
</html>