Index: lams_tool_gmap/web/includes/jsp/mapFunctions.jsp =================================================================== diff -u -rcf00c458d8f6d4cef59b8280c3ecfc45db474bee -r3a61d2c456071d793975f003f451636aed0d1f7c --- lams_tool_gmap/web/includes/jsp/mapFunctions.jsp (.../mapFunctions.jsp) (revision cf00c458d8f6d4cef59b8280c3ecfc45db474bee) +++ lams_tool_gmap/web/includes/jsp/mapFunctions.jsp (.../mapFunctions.jsp) (revision 3a61d2c456071d793975f003f451636aed0d1f7c) @@ -436,6 +436,13 @@ // Serialises the marker array into an xml string for processing on the back end function serialiseMarkers() { + if (!(markers)) + { + var xmlString = ''; + } + else + { + var xmlString = ''; var i =0; for (;i