-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.html
110 lines (96 loc) · 3.15 KB
/
viewer.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
<!-- GeoExplorer resources -->
<link rel="stylesheet" type="text/css" href="../theme/app/geoexplorer.css" />
<!--[if IE]><link rel="stylesheet" type="text/css" href="../theme/app/ie.css"/><![endif]-->
<script type="text/javascript" src="../script/GeoExplorer.js"></script>
<script type="text/javascript" src="../script/jquery-git2.min.js"></script>
<script type="text/javascript" src="../script/geoparams.js"></script>
<!-- PrintPreview resources -->
<link rel="stylesheet" type="text/css" href="../externals/PrintPreview/resources/css/printpreview.css">
<script>
var map = {
layers: [{
name: "world",
title: "World",
source: "suite",
group: "background"
}],
center: [0, 0],
zoom: 2
};
var sources = {
suite: {
url: "http://v2.suite.opengeo.org/geoserver/ows"
}
};
var pdata = extendMapAndSourcesFromParams(map, sources);
Ext.BLANK_IMAGE_URL = "../theme/app/img/blank.gif";
OpenLayers.ImgPath = "../theme/app/img/";
var app = new GeoExplorer.Viewer({
proxy: "../proxy/?url=",
printService: "/geoserver/pdf/",
about: {
title: "GeoExplorer Demo Map",
"abstract": "This is a demonstration of GeoExplorer, " +
"an application for assembling and publishing web " +
"based maps.",
contact: "For more information, contact <a href='http://boundlessgeo.com'>Boundless</a>."
},
defaultSourceType: "gxp_wmscsource",
sources: sources,
map: map,
listeners: {
ready: function() { zoomToLayer(this, pdata); }
}
});
</script>
[root@gis templates]#
[root@gis templates]#
[root@gis templates]#
[root@gis templates]#
[root@gis templates]#
[root@gis templates]# cat viewer.html
<!-- GeoExplorer resources -->
<link rel="stylesheet" type="text/css" href="../theme/app/geoexplorer.css" />
<!--[if IE]><link rel="stylesheet" type="text/css" href="../theme/app/ie.css"/><![endif]-->
<script type="text/javascript" src="../script/GeoExplorer.js"></script>
<script type="text/javascript" src="../script/jquery-git2.min.js"></script>
<script type="text/javascript" src="../script/geoparams.js"></script>
<!-- PrintPreview resources -->
<link rel="stylesheet" type="text/css" href="../externals/PrintPreview/resources/css/printpreview.css">
<script>
var map = {
layers: [{
name: "world",
title: "World",
source: "suite",
group: "background"
}],
center: [0, 0],
zoom: 2
};
var sources = {
suite: {
url: "http://v2.suite.opengeo.org/geoserver/ows"
}
};
var pdata = extendMapAndSourcesFromParams(map, sources);
Ext.BLANK_IMAGE_URL = "../theme/app/img/blank.gif";
OpenLayers.ImgPath = "../theme/app/img/";
var app = new GeoExplorer.Viewer({
proxy: "../proxy/?url=",
printService: "/geoserver/pdf/",
about: {
title: "GeoExplorer Demo Map",
"abstract": "This is a demonstration of GeoExplorer, " +
"an application for assembling and publishing web " +
"based maps.",
contact: "For more information, contact <a href='http://boundlessgeo.com'>Boundless</a>."
},
defaultSourceType: "gxp_wmscsource",
sources: sources,
map: map,
listeners: {
ready: function() { zoomToLayer(this, pdata); }
}
});
</script>