Index: lams_tool_gmap/web/common/learnerheader.jsp =================================================================== diff -u -r9ed689d51b8f41ba820bd7e6be8e3253703096a8 -r2b2959ec969dc53b7a097c27702bbd1a873473d1 --- lams_tool_gmap/web/common/learnerheader.jsp (.../learnerheader.jsp) (revision 9ed689d51b8f41ba820bd7e6be8e3253703096a8) +++ lams_tool_gmap/web/common/learnerheader.jsp (.../learnerheader.jsp) (revision 2b2959ec969dc53b7a097c27702bbd1a873473d1) @@ -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}' ); + +