Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/public/javascripts/home.js b/public/javascripts/home.js
- index c55eec6..6dabb60 100644
- --- a/public/javascripts/home.js
- +++ b/public/javascripts/home.js
- @@ -607,13 +607,14 @@ function renderUnitOnMap(unit, updateBounds){
- }
- // New marker for unit
- var clickable = !is_account_user;
- + var labelClass = unit.service_unit_number.length <= 3 ? "home_labels home_labels_width unit_" + unit.id : "home_labels unit_" + unit.id ;
- unitMarker = marker[unit.id] = new MarkerWithLabel({
- position : latlon,
- map : map,
- draggable : false,
- labelContent : unit.service_unit_number,
- labelAnchor : new google.maps.Point(10, 30),
- - labelClass : "home_labels unit_" + unit.id,
- + labelClass : labelClass,
- icon : icon,
- labelInBackground : false,
- labelVisible : true,
- @@ -770,14 +771,14 @@ function listServiceUnits(all) {
- function routeIcon(service_unit_number){
- var icon;
- switch(service_unit_number.length) {
- - case 3:
- - icon = greenIcon3;
- + case 5:
- + icon = greenIcon5;
- break;
- case 4:
- icon = greenIcon4;
- break;
- default:
- - icon = greenIcon5;
- + icon = greenIcon3;
- }
- return icon;
- @@ -786,14 +787,14 @@ function routeIcon(service_unit_number){
- function routeDelayedIcon(service_unit_number){
- var icon;
- switch(service_unit_number.length) {
- - case 3:
- - icon = redIcon3;
- + case 5:
- + icon = redIcon5;
- break;
- case 4:
- icon = redIcon4;
- break;
- default:
- - icon = redIcon5;
- + icon = redIcon3;
- }
- return icon;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement