Browse Source

Update markers for user addresses

Alan Lam 8 years ago
parent
commit
1827be7528
2 changed files with 5 additions and 2 deletions
  1. BIN
      public/img/markers/address.png
  2. 5 2
      public/js/app-user.js

BIN
public/img/markers/address.png


+ 5 - 2
public/js/app-user.js

@@ -46,7 +46,8 @@ function initialiseAddresses() {
 			let options = {
 			let options = {
 				map: map,
 				map: map,
 				position: position,
 				position: position,
-				title: address.name
+				title: address.name,
+				icon: "/img/markers/address.png"
 			}
 			}
 
 
 			bounds.extend(position);
 			bounds.extend(position);
@@ -94,7 +95,8 @@ function initialiseLocations() {
 		let options = {
 		let options = {
 			map: map,
 			map: map,
 			position: position,
 			position: position,
-			title: response.name
+			title: response.name,
+			icon: "/img/markers/address.png"
 		}
 		}
 
 
 		bounds.extend(position);
 		bounds.extend(position);
@@ -119,6 +121,7 @@ function initialiseLocations() {
 			}
 			}
 
 
 			if(location.icon) options.icon = "/img/markers/" + location.icon;
 			if(location.icon) options.icon = "/img/markers/" + location.icon;
+			else options.icon = "/img/markers/building-red.png";
 
 
 			bounds.extend(position);
 			bounds.extend(position);