%
chameleon.updateVars();
chameleon.initSlide();
%>
${markOfTheWebStr}
<%-- GOOGLE MAPS, get lat and longitude --%>
<%
String googleMapsApiKey = chameleon.getVarAsString("googleMapsAPIKey");
float longDecimal = 0.0f;
float latDecimal = 0.0f;
latitude = meta.get("GPS.GPS Latitude");
longitude = meta.get("GPS.GPS Longitude");
if (latitude != null && longitude != null) {
try {
// TODO: Now assumes GPS info in dms format,
// generalize this
StringTokenizer st = new StringTokenizer(latitude, "\"'°");
latDecimal = Integer.parseInt(st.nextToken());
latDecimal += Float.parseFloat(st.nextToken()) / 60.0f;
latDecimal += Float.parseFloat(st.nextToken()) / 3600.0f;
latRef = meta.get("GPS.GPS Latitude Ref");
if (latRef.charAt(0) == 'S') {
latDecimal = -latDecimal;
}
st = new StringTokenizer(longitude, "\"'°");
longDecimal = Integer.parseInt(st.nextToken());
longDecimal += Float.parseFloat(st.nextToken()) / 60.0f;
longDecimal += Float.parseFloat(st.nextToken()) / 3600.0f;
longRef = meta.get("GPS.GPS Longitude Ref");
if (longRef.charAt(0) == 'W') {
longDecimal = -longDecimal;
}
} catch (Exeception e) {
out.println(e);
}
}
%>
,$keywords,$author" />
${simplePath}/$label
<%-- GOOGLE MAP --%>
<%-- EO GOOGLE MAP--%>
${soundCode}