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}' ); + +