Revision 4080
Added by daigle over 16 years ago
kml.jsp | ||
---|---|---|
1 |
<%@ page import="edu.ucsb.nceas.metacat.MetaCatUtil" %>
|
|
1 |
<%@ page import="edu.ucsb.nceas.metacat.util.SystemUtil" %>
|
|
2 | 2 |
<% |
3 | 3 |
|
4 |
String url = MetaCatUtil.getOption("baseUrl");
|
|
4 |
String url = SystemUtil.getContextURL();
|
|
5 | 5 |
String layerName = "metacat:data_points"; |
6 | 6 |
|
7 | 7 |
String redirectURL = url + "/wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kml+XML&width=1024&height=1024&srs=EPSG:4326&layers=" + layerName + "&styles=&bbox=-180,-90,180,90"; |
Also available in: Unified diff
Merge 1.9 changes into Head