|  |  | 
 |  |  | data = { | 
 |  |  |     "mapName": "克劳斯玛菲WCS", | 
 |  |  |     "mapName": "KLSWCS", | 
 |  |  |     "rackCount": 12, | 
 |  |  |     "crnCount": 3, | 
 |  |  |     "stbCount": 36, | 
 |  |  |     "hpPosition": 1, | 
 |  |  |     "minBayNo": 2, | 
 |  |  |     "floors": 1, | 
 |  |  |     "racks": [ | 
 |  |  |     { | 
 |  |  |     "racks": [{ | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack12", | 
 |  |  |         "top": 646, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack11", | 
 |  |  |         "top": 613, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack10", | 
 |  |  |         "top": 516, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack9", | 
 |  |  |         "top": 483, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack8", | 
 |  |  |         "top": 451, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack7", | 
 |  |  |         "top": 418, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack6", | 
 |  |  |         "top": 323, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack5", | 
 |  |  |         "top": 290, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 52 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack3", | 
 |  |  |         "top": 225, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 60 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack1", | 
 |  |  |         "top": 97, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 60 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack4", | 
 |  |  |         "top": 257, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 60 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rack", | 
 |  |  |         "id": "rack2", | 
 |  |  |         "top": 129, | 
 |  |  | 
 |  |  |         "height": 30, | 
 |  |  |         "minBayNo": 2, | 
 |  |  |         "maxBayNo": 60 | 
 |  |  |     } | 
 |  |  | ], | 
 |  |  |     "rackDescs": [ | 
 |  |  |     { | 
 |  |  |     }], | 
 |  |  |     "rackDescs": [{ | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc12", | 
 |  |  |         "text": "#12", | 
 |  |  | 
 |  |  |         "left": 260, | 
 |  |  |         "width": 47, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc11", | 
 |  |  |         "text": "#11", | 
 |  |  | 
 |  |  |         "left": 260, | 
 |  |  |         "width": 44, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc10", | 
 |  |  |         "text": "#10", | 
 |  |  | 
 |  |  |         "left": 257, | 
 |  |  |         "width": 49, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc9", | 
 |  |  |         "text": "#9", | 
 |  |  | 
 |  |  |         "left": 257, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc8", | 
 |  |  |         "text": "#8", | 
 |  |  | 
 |  |  |         "left": 260, | 
 |  |  |         "width": 39, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc7", | 
 |  |  |         "text": "#7", | 
 |  |  | 
 |  |  |         "left": 260, | 
 |  |  |         "width": 37, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc6", | 
 |  |  |         "text": "#6", | 
 |  |  | 
 |  |  |         "left": 260, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc5", | 
 |  |  |         "text": "#5", | 
 |  |  | 
 |  |  |         "left": 261, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc4", | 
 |  |  |         "text": "#4", | 
 |  |  | 
 |  |  |         "left": 145, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc3", | 
 |  |  |         "text": "#3", | 
 |  |  | 
 |  |  |         "left": 145, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc2", | 
 |  |  |         "text": "#2", | 
 |  |  | 
 |  |  |         "left": 145, | 
 |  |  |         "width": 38, | 
 |  |  |         "height": 27 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "rackDescs", | 
 |  |  |         "id": "lb_desc1", | 
 |  |  |         "text": "#1", | 
 |  |  | 
 |  |  |         "left": 145, | 
 |  |  |         "width": 35, | 
 |  |  |         "height": 27 | 
 |  |  |     } | 
 |  |  | ], | 
 |  |  |     "crns": [ | 
 |  |  |     { | 
 |  |  |     }], | 
 |  |  |     "crns": [{ | 
 |  |  |         "type": "crane", | 
 |  |  |         "id": "crn-1", | 
 |  |  |         "text": "1", | 
 |  |  | 
 |  |  |         "left": 777, | 
 |  |  |         "width": 93, | 
 |  |  |         "height": 22 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "crane", | 
 |  |  |         "id": "crn-2", | 
 |  |  |         "text": "2", | 
 |  |  | 
 |  |  |         "left": 777, | 
 |  |  |         "width": 93, | 
 |  |  |         "height": 22 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "crane", | 
 |  |  |         "id": "crn-3", | 
 |  |  |         "text": "3", | 
 |  |  | 
 |  |  |         "left": 777, | 
 |  |  |         "width": 93, | 
 |  |  |         "height": 22 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "track", | 
 |  |  |         "id": "lb_track2", | 
 |  |  |         "text": "", | 
 |  |  |         "top": 390, | 
 |  |  |         "left": 325, | 
 |  |  |         "width": 1010, | 
 |  |  |         "top": 387, | 
 |  |  |         "left": 146, | 
 |  |  |         "width": 1112, | 
 |  |  |         "height": 2 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "track", | 
 |  |  |         "id": "lb_track3", | 
 |  |  |         "text": "", | 
 |  |  |         "top": 584, | 
 |  |  |         "left": 325, | 
 |  |  |         "width": 1010, | 
 |  |  |         "top": 582, | 
 |  |  |         "left": 146, | 
 |  |  |         "width": 1112, | 
 |  |  |         "height": 2 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "track", | 
 |  |  |         "id": "lb_track1", | 
 |  |  |         "text": "", | 
 |  |  |         "top": 197, | 
 |  |  |         "left": 188, | 
 |  |  |         "width": 1148, | 
 |  |  |         "top": 195, | 
 |  |  |         "left": 146, | 
 |  |  |         "width": 1112, | 
 |  |  |         "height": 2 | 
 |  |  |     } | 
 |  |  | ], | 
 |  |  |     "stns": [ | 
 |  |  |     { | 
 |  |  |     }], | 
 |  |  |     "stns": [{ | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-132", | 
 |  |  |         "text": "132", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-126", | 
 |  |  |         "text": "126", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-125", | 
 |  |  |         "text": "125", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-119", | 
 |  |  |         "text": "119", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-118", | 
 |  |  |         "text": "118", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-136", | 
 |  |  |         "text": "136", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-135", | 
 |  |  |         "text": "135", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-134", | 
 |  |  |         "text": "134", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-133", | 
 |  |  |         "text": "133", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-130", | 
 |  |  |         "text": "130", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-129", | 
 |  |  |         "text": "129", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-128", | 
 |  |  |         "text": "128", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-127", | 
 |  |  |         "text": "127", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-131", | 
 |  |  |         "text": "131", | 
 |  |  | 
 |  |  |         "left": 1522, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-123", | 
 |  |  |         "text": "123", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-122", | 
 |  |  |         "text": "122", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-121", | 
 |  |  |         "text": "121", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-120", | 
 |  |  |         "text": "120", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-124", | 
 |  |  |         "text": "124", | 
 |  |  | 
 |  |  |         "left": 1522, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-112", | 
 |  |  |         "text": "112", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-111", | 
 |  |  |         "text": "111", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-116", | 
 |  |  |         "text": "116", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-115", | 
 |  |  |         "text": "115", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-114", | 
 |  |  |         "text": "114", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-113", | 
 |  |  |         "text": "113", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-117", | 
 |  |  |         "text": "117", | 
 |  |  | 
 |  |  |         "left": 1522, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-105", | 
 |  |  |         "text": "105", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 63 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-109", | 
 |  |  |         "text": "109", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-108", | 
 |  |  |         "text": "108", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-107", | 
 |  |  |         "text": "107", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-106", | 
 |  |  |         "text": "106", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-104", | 
 |  |  |         "text": "104", | 
 |  |  | 
 |  |  |         "left": 1461, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-103", | 
 |  |  |         "text": "103", | 
 |  |  | 
 |  |  |         "left": 1399, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-102", | 
 |  |  |         "text": "102", | 
 |  |  | 
 |  |  |         "left": 1337, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-101", | 
 |  |  |         "text": "101", | 
 |  |  | 
 |  |  |         "left": 1215, | 
 |  |  |         "width": 120, | 
 |  |  |         "height": 30 | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |     }, { | 
 |  |  |         "type": "stn", | 
 |  |  |         "id": "site-110", | 
 |  |  |         "text": "110", | 
 |  |  | 
 |  |  |         "left": 1522, | 
 |  |  |         "width": 60, | 
 |  |  |         "height": 30 | 
 |  |  |     } | 
 |  |  | ] | 
 |  |  |     }] | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 库位图 | 
 |  |  | function getMap() { | 
 |  |  |     let mapName = "<div class='mapName'>" + data.mapName + "</div>" | 
 |  |  | 
 |  |  |         let btns = '' | 
 |  |  |         var maxBayNo = rackss[i].maxBayNo | 
 |  |  |         var minBayNo = rackss[i].minBayNo | 
 |  |  |         let bLen = maxBayNo / minBayNo | 
 |  |  |         var bayNo = minBayNo; | 
 |  |  |         // let bLen = maxBayNo / minBayNo | 
 |  |  |         // let bLen = Math.ceil((maxBayNo - minBayNo + 1) / 2); | 
 |  |  |         // let bLen = Math.ceil(maxBayNo / 2); | 
 |  |  |         let bLen = parseInt(maxBayNo / 2); | 
 |  |  |         let width = rackss[i].width / bLen; | 
 |  |  |  | 
 |  |  |         if (data.hpPosition == 1) { | 
 |  |  |             for (let j = bLen;j > 0; j--) { | 
 |  |  |                 btn = "<button class='item' style='width: 34px'>" + maxBayNo + "</button>" | 
 |  |  |                 btn = "<button class='item' style='width: " + width + "px'>" + maxBayNo + "</button>" | 
 |  |  |                 btns = btns + btn | 
 |  |  |                 maxBayNo = maxBayNo - minBayNo; | 
 |  |  |                 maxBayNo = maxBayNo - 2; | 
 |  |  |                 if(maxBayNo < minBayNo) { | 
 |  |  |                     maxBayNo = minBayNo; | 
 |  |  |                 } | 
 |  |  |                 // maxBayNo = maxBayNo - minBayNo; | 
 |  |  |             } | 
 |  |  |         }else { | 
 |  |  |             for (let j = 0;j < bLen; j++) { | 
 |  |  |                 btn = "<button class='item' style='width: 34px'>" + minBayNo + "</button>" | 
 |  |  |                 btn = "<button class='item' style='width: " + width + "px'>" + bayNo + "</button>" | 
 |  |  |                 btns = btns + btn | 
 |  |  |                 minBayNo = minBayNo + minBayNo; | 
 |  |  |                 bayNo = bayNo + 2; | 
 |  |  |                 if(bayNo > maxBayNo) { | 
 |  |  |                     bayNo = maxBayNo; | 
 |  |  |                 } | 
 |  |  |                 // bayNo = bayNo + minBayNo; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  | 
 |  |  |     } | 
 |  |  |     let whycq = racks + stns + rackDescs + crns + tracks | 
 |  |  |     $(".main-part").append(whycq) | 
 |  |  | }; | 
 |  |  |  | 
 |  |  |  | 
 |  |  | }; |