Index: lams_tool_gmap/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/conf/language/lams/ApplicationResources.properties,v diff -u -r1.3 -r1.4 --- lams_tool_gmap/conf/language/lams/ApplicationResources.properties 6 Jun 2008 00:24:20 -0000 1.3 +++ lams_tool_gmap/conf/language/lams/ApplicationResources.properties 26 Jun 2008 00:21:08 -0000 1.4 @@ -17,7 +17,7 @@ label.authoring.basic.title =Title: label.authoring.basic.content =Content: label.authoring.basic.instructions =Instructions: - +label.authoring.basic.authored =Authored label.authoring.basic.map =Map: label.authoring.basic.centerMap =Center map on location: label.authoring.basic.sampleAddress =Macquarie University, Sydney NSW Index: lams_tool_gmap/src/java/org/lamsfoundation/lams/tool/gmap/web/actions/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/src/java/org/lamsfoundation/lams/tool/gmap/web/actions/MonitoringAction.java,v diff -u -r1.2 -r1.3 --- lams_tool_gmap/src/java/org/lamsfoundation/lams/tool/gmap/web/actions/MonitoringAction.java 6 Jun 2008 00:24:18 -0000 1.2 +++ lams_tool_gmap/src/java/org/lamsfoundation/lams/tool/gmap/web/actions/MonitoringAction.java 26 Jun 2008 00:21:06 -0000 1.3 @@ -65,15 +65,12 @@ setupService(); - Long toolContentID = new Long(WebUtil.readLongParam(request, - AttributeNames.PARAM_TOOL_CONTENT_ID)); + Long toolContentID = new Long(WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID)); - String contentFolderID = WebUtil.readStrParam(request, - AttributeNames.PARAM_CONTENT_FOLDER_ID); + String contentFolderID = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - Gmap gmap = gmapService - .getGmapByContentId(toolContentID); - + Gmap gmap = gmapService.getGmapByContentId(toolContentID); + if (gmap == null) { // TODO error page. } Index: lams_tool_gmap/web/common/learnerheader.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/common/learnerheader.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_gmap/web/common/learnerheader.jsp 6 Jun 2008 00:24:20 -0000 1.4 +++ lams_tool_gmap/web/common/learnerheader.jsp 26 Jun 2008 00:21:07 -0000 1.5 @@ -19,9 +19,6 @@ - <%@ include file="/includes/jsp/mapFunctions.jsp"%> @@ -46,6 +43,7 @@ var markers; var geocoder = null; var currUser; + var currUserId; var userMarkerCount =0; var limitMarkers = ${gmapDTO.limitMarkers}; var markerLimit = 0; @@ -60,10 +58,10 @@ geocoder = new GClientGeocoder(); map.setCenter(new GLatLng('${gmapDTO.mapCenterLatitude}', '${gmapDTO.mapCenterLongitude}' )); - map.setCenter(new GLatLng('${gmapDTO.mapCenterLatitude}', '${gmapDTO.mapCenterLongitude}' )); map.setZoom(${gmapDTO.mapZoom}); currUser = '${gmapUserDTO.firstName} ${gmapUserDTO.lastName}'; + currUserId = '${gmapUserDTO.uid}' // Set up map controls map.addControl(new GMapTypeControl()); @@ -81,27 +79,27 @@ - map.removeMapType(G_HYBRID_MAP); + map.removeMapType(G_HYBRID_MAP); - /* - if (${gmapDTO.allowZoom}) {map.addControl(new GLargeMapControl());} - if (${gmapDTO.allowTerrain}) {map.addMapType(G_PHYSICAL_MAP);} - if (!${gmapDTO.allowSatellite}) {map.removeMapType(G_SATELLITE_MAP);} - if (!${gmapDTO.allowHybrid}) {map.removeMapType(G_HYBRID_MAP);} - */ map.setMapType(${gmapDTO.mapType}); - addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, ${gmapDTO.allowEditMarkers}, '${marker.createdBy.firstName} ${marker.createdBy.lastName}' ); + addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ),'${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, ${gmapDTO.allowEditMarkers}, '${marker.createdBy.firstName} ${marker.createdBy.lastName}', '${marker.createdBy.uid}'); userMarkerCount ++; + - - addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, false, '${marker.createdBy.firstName} ${marker.createdBy.lastName}' ); - + + + addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, false, '', '0' ); + + + addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, false, '${marker.createdBy.firstName} ${marker.createdBy.lastName}', '${marker.createdBy.uid}' ); + + Index: lams_tool_gmap/web/images/collapse.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/images/Attic/collapse.gif,v diff -u Binary files differ Index: lams_tool_gmap/web/images/expand.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/images/Attic/expand.gif,v diff -u Binary files differ Index: lams_tool_gmap/web/includes/javascript/mapFunctions.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/includes/javascript/Attic/mapFunctions.js,v diff -u -r1.7 -r1.8 --- lams_tool_gmap/web/includes/javascript/mapFunctions.js 6 Jun 2008 00:24:19 -0000 1.7 +++ lams_tool_gmap/web/includes/javascript/mapFunctions.js 26 Jun 2008 00:21:07 -0000 1.8 @@ -1,5 +1,5 @@ // add a marker at the given point -function addMarker(point, infoMessage, title, uid, isSaved, editAble, createdBy) +function addMarker(point, infoMessage, title, uid, isSaved, editAble, createdBy, createdById) { map.closeInfoWindow(); var marker; @@ -9,6 +9,7 @@ marker.editAble = editAble; marker.createdBy = createdBy; + marker.createdById = createdById map.addOverlay(marker); Index: lams_tool_gmap/web/includes/javascript/mapFunctionsAuthoring.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/includes/javascript/mapFunctionsAuthoring.js,v diff -u -r1.2 -r1.3 --- lams_tool_gmap/web/includes/javascript/mapFunctionsAuthoring.js 6 Jun 2008 00:24:19 -0000 1.2 +++ lams_tool_gmap/web/includes/javascript/mapFunctionsAuthoring.js 26 Jun 2008 00:21:07 -0000 1.3 @@ -3,7 +3,7 @@ { var bounds = map.getBounds(); var point = bounds.getCenter(); - addMarker(point, "", "", -1, false, true, currUser); + addMarker(point, "", "", -1, false, true, currUser, currUserId); } Index: lams_tool_gmap/web/includes/javascript/mapFunctionsLearning.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/includes/javascript/mapFunctionsLearning.js,v diff -u -r1.2 -r1.3 --- lams_tool_gmap/web/includes/javascript/mapFunctionsLearning.js 6 Jun 2008 00:24:19 -0000 1.2 +++ lams_tool_gmap/web/includes/javascript/mapFunctionsLearning.js 26 Jun 2008 00:21:07 -0000 1.3 @@ -11,7 +11,7 @@ } var bounds = map.getBounds(); var point = bounds.getCenter(); - addMarker(point, "", "", -1, false, true, currUser); + addMarker(point, "", "", -1, false, true, currUser, currUserId); userMarkerCount ++; } Index: lams_tool_gmap/web/includes/javascript/mapFunctionsMonitoring.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/includes/javascript/Attic/mapFunctionsMonitoring.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_gmap/web/includes/javascript/mapFunctionsMonitoring.js 26 Jun 2008 00:21:07 -0000 1.1 @@ -0,0 +1 @@ \ No newline at end of file Index: lams_tool_gmap/web/includes/jsp/mapFunctions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/includes/jsp/mapFunctions.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_gmap/web/includes/jsp/mapFunctions.jsp 6 Jun 2008 00:24:19 -0000 1.1 +++ lams_tool_gmap/web/includes/jsp/mapFunctions.jsp 26 Jun 2008 00:21:06 -0000 1.2 @@ -7,7 +7,7 @@ Index: lams_tool_gmap/web/pages/authoring/basic.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/pages/authoring/basic.jsp,v diff -u -r1.7 -r1.8 --- lams_tool_gmap/web/pages/authoring/basic.jsp 6 Jun 2008 00:24:20 -0000 1.7 +++ lams_tool_gmap/web/pages/authoring/basic.jsp 26 Jun 2008 00:21:07 -0000 1.8 @@ -36,6 +36,7 @@ + Test @@ -67,14 +68,17 @@ markers = new Array(); geocoder = new GClientGeocoder(); - currUser = '${gmapUser.firstName} ${gmapUser.lastName}'; + //currUser = '${gmapUser.firstName} ${gmapUser.lastName}'; + //currUserId = '${gmapUser.uid}'; + currUser = ''; + currUserId = '0'; map.setCenter(new GLatLng('${formBean.gmap.mapCenterLatitude}', '${formBean.gmap.mapCenterLongitude}' )); map.setCenter(new GLatLng('${formBean.gmap.mapCenterLatitude}', '${formBean.gmap.mapCenterLongitude}' )); map.setZoom(${formBean.gmap.mapZoom}); map.setMapType(${formBean.gmap.mapType}); - addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, true, "${marker.createdBy.firstName} ${marker.createdBy.lastName}"); + addMarker(new GLatLng('${marker.latitude}', '${marker.longitude}' ), '${marker.infoWindowMessage}', '${marker.title}', '${marker.uid}', true, true, currUser, currUserId); refreshSideBar(); Index: lams_tool_gmap/web/pages/authoring/headItems.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/pages/authoring/headItems.jsp,v diff -u -r1.7 -r1.8 --- lams_tool_gmap/web/pages/authoring/headItems.jsp 6 Jun 2008 00:24:20 -0000 1.7 +++ lams_tool_gmap/web/pages/authoring/headItems.jsp 26 Jun 2008 00:21:07 -0000 1.8 @@ -33,6 +33,7 @@ var markers; var geocoder = null; var currUser; + var currUserId; //--> Index: lams_tool_gmap/web/pages/learning/gmap.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/pages/learning/gmap.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_gmap/web/pages/learning/gmap.jsp 6 Jun 2008 00:24:20 -0000 1.3 +++ lams_tool_gmap/web/pages/learning/gmap.jsp 26 Jun 2008 00:21:06 -0000 1.4 @@ -57,17 +57,24 @@ - - - + +
+ + + + + + +
+
+ +
+ + +
+ - - -

@@ -85,7 +92,7 @@ - +
+ + +<%@ include file="/includes/jsp/mapFunctions.jsp"%> + + + + + + + + + + Index: lams_tool_gmap/web/pages/monitoring/summary.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_gmap/web/pages/monitoring/summary.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_gmap/web/pages/monitoring/summary.jsp 23 May 2008 06:29:10 -0000 1.1 +++ lams_tool_gmap/web/pages/monitoring/summary.jsp 26 Jun 2008 00:21:06 -0000 1.2 @@ -24,6 +24,29 @@ + + + + + + + + + +
+
+
+
+ +
+ + + +
+ " /> + +
+ + + + + +