diff --git a/src/main/resources/static/resources/images/blue_MarkerA.png b/src/main/resources/static/resources/images/blue_MarkerA.png new file mode 100755 index 000000000..425f7f2b3 Binary files /dev/null and b/src/main/resources/static/resources/images/blue_MarkerA.png differ diff --git a/src/main/resources/static/resources/images/bluemarker.png b/src/main/resources/static/resources/images/bluemarker.png new file mode 100644 index 000000000..d0c77c675 Binary files /dev/null and b/src/main/resources/static/resources/images/bluemarker.png differ diff --git a/src/main/resources/templates/mapList.html b/src/main/resources/templates/mapList.html index e069ccc98..9fefb6062 100644 --- a/src/main/resources/templates/mapList.html +++ b/src/main/resources/templates/mapList.html @@ -72,7 +72,7 @@ geocoder.geocode( { 'address': alpha}, function(results, status) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ - map: map, position: results[0].geometry.location}); + map: map, icon: "/resources/images/blue_MarkerA.png", position: results[0].geometry.location}); diff --git a/src/main/resources/templates/parents/parentDetails.html b/src/main/resources/templates/parents/parentDetails.html index 084dccced..427df12fc 100644 --- a/src/main/resources/templates/parents/parentDetails.html +++ b/src/main/resources/templates/parents/parentDetails.html @@ -112,57 +112,7 @@ //var map, infoWindow; - var map; - var geocoder; - - function initialize() { - - geocoder= new google.maps.Geocoder(); - var latlng = new google.maps.LatLng(-34.397, 150.644); - var mapOptions = { - zoom: 8, - center: latlng - } - map = new google.maps.Map(document.getElementById('map'), mapOptions); - //map.codeAddress(); - } - - - // function getCoordinates(address, callback){ - // var coordinates; - // geocoder.geocode({ address: address}, function (results, status) { - // coords_obj = results[0].geometry.location; - // coordinates = [coords_obj.nb,coords_obj.ob]; - // callback(coordinates); - // }) - // } - - - - function codeAddress() { - var address1 = /*[[${parent.address}]]*/; - var city = (/*[[${parent.city}]]*/); - var space = " "; - var addressHelp = address1.concat(space); - var state = /*[[${parent.state}]]*/; - var comma = " , "; - var addressHelpHelp = addressHelp.concat(city); - var address = addressHelpHelp.concat(state); - console.log(/*[[${parent.state}]]*/) - console.log(/*[[${parent.address}]]*/); - - geocoder.geocode( { 'address': address}, function(results, status) { - if (status == 'OK') { - map.setCenter(results[0].geometry.location); - var marker = new google.maps.Marker({ - map: map, - position: results[0].geometry.location - }); - } else { - alert('Geocode was not successful for the following reason: ' + status); - } - }); - } + @@ -230,7 +180,7 @@ -
+