Revision 5934
Added by ben leinfelder over 13 years ago
map.jsp | ||
---|---|---|
36 | 36 |
<!-- *********************** START Map ************************* --> |
37 | 37 |
<html> |
38 | 38 |
<head> |
39 |
<style type="text/css"> |
|
40 |
body { background-color:white; } |
|
41 |
#map { |
|
42 |
width: 780px; |
|
43 |
height: 420px; |
|
44 |
border: 1px solid #cccccc; |
|
45 |
} |
|
46 |
</style> |
|
39 |
<link rel="stylesheet" type="text/css" href="<%=STYLE_COMMON_URL%>/spatial/map.css" /> |
|
47 | 40 |
<script src="http://www.openlayers.org/api/OpenLayers.js"></script> |
48 | 41 |
<script src="<%=STYLE_COMMON_URL%>/spatial/map.js"></script> |
49 | 42 |
<script type="text/javascript"> |
50 | 43 |
function init() { |
51 | 44 |
var bounds = new OpenLayers.Bounds(16.5,-35,32.5,-22); |
45 |
// include the sanparks layer |
|
46 |
var sanparks_boundaries = new OpenLayers.Layer.WMS( |
|
47 |
"SANParks Boundaries", |
|
48 |
"<%=GEOSERVER_URL%>" + "/wms", |
|
49 |
{layers: "SANParks_Boundaries_gcs_wgs84", |
|
50 |
transparent: "true", format: "image/gif"} ); |
|
52 | 51 |
// make the map for this skin |
53 |
initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "saeon", bounds); |
|
52 |
initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "saeon", bounds, [sanparks_boundaries]);
|
|
54 | 53 |
} |
55 | 54 |
</script> |
56 | 55 |
</head> |
Also available in: Unified diff
remove sanparks boundaries from the default map, but allow them to be added as an additional layer from the saeon/sanparks skin.
use css to style the spatial query search widget control
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2188