-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.html
97 lines (90 loc) · 2.57 KB
/
composer.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
<!-- 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]-->
<link rel="stylesheet" type="text/css" href="../theme/ux/colorpicker/color-picker.ux.css" />
<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 sources = {
local: {
url: "/geoserver/ows",
title: "Local GeoServer",
ptype: "gxp_wmscsource"
},
csw: {
url: "/geoserver/csw",
ptype: "gxp_cataloguesource",
yx: {'urn:x-ogc:def:crs:EPSG:6.11:4326': true}
},
suite: {
url: "http://v2.suite.opengeo.org/geoserver/ows",
title: "Remote Suite GeoServer"
},
mapquest: {
ptype: "gxp_mapquestsource"
},
osm: {
ptype: "gxp_osmsource"
},
google: {
ptype: "gxp_googlesource"
},
bing: {
ptype: "gxp_bingsource"
},
mapbox: {
ptype: "gxp_mapboxsource"
},
ol: {
ptype: "gxp_olsource"
}
};
var map = {
projection: "EPSG:102113",
layers: [{
source: "mapquest",
title: "MapQuest OpenStreetMap",
name: "osm",
group: "background"
}, {
source: "ol",
group: "background",
fixed: true,
type: "OpenLayers.Layer",
args: [
"None", {visibility: false}
]
}],
center: [0, 0],
zoom: 2
};
var pdata = extendMapAndSourcesFromParams(map, sources);
Ext.BLANK_IMAGE_URL = "../theme/app/img/blank.gif";
OpenLayers.ImgPath = "../theme/app/img/";
// optionally set locale based on query string parameter
if (GeoExt.Lang) {
GeoExt.Lang.set(OpenLayers.Util.getParameters()["locale"] || GeoExt.Lang.locale);
}
var app = new GeoExplorer.Composer({
authStatus: {{status}},
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. " +
"After adding layers to the map, use the 'Publish map' " +
"tool to embed this map in any web page.",
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>