Project

General

Profile

« Previous | Next » 

Revision 3056

Added by perry about 18 years ago

Temporary fix for KML output; geoserver can only handle the points layer

View differences:

lib/spatial/kml.jsp
2 2
<%
3 3

  
4 4
String url = MetaCatUtil.getOption("baseUrl");
5
String layerName = "metacat:data_bounds";
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";
8 8

  
lib/style/common/spatial_templates/spatial1/map.html
59 59

  
60 60
                    </td>
61 61
            </tr>
62
            <!-- <tr> <td align="right" style="font-size:8pt;"> <a href="../../../../spatial/kml.jsp">View in Google Earth (kml)</a></td></tr> -->
62
            <tr> <td align="right" style="font-size:8pt;"> <a href="../../../../spatial/kml.jsp">View in Google Earth (kml)</a></td></tr> 
63 63
    </table>
64 64

  
65 65

  

Also available in: Unified diff