{"theJson":"var af = null;\nvar el = null;\nvar p = null;\nvar m = null;\nvar gj = null;\nvar counter = 0;\nvar bearing = 0;\n\nvar trackNav = '\/img\/navigation.png';\nvar trackDot = '\/img\/dot-black.gif';\nvar currentStyle = map.getStyle();\n\nif (currentStyle !== undefined && currentStyle != null && JSON.stringify(currentStyle).indexOf(\"satellite-\") != -1) {\n trackNav = '\/img\/navigation-yellow.png';\n trackDot = '\/img\/dot-yellow.gif';\n}\n\nvar picList = $('#trip-pics-list');\npicList.html('
<\/i><\/p>
Loading Previews...<\/p>');\nvar plHtml = '';\n\n gj = {\"type\":\"Feature\",\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[\"-96.71849\",\"33.08507\",229.7],[\"-96.71849\",\"33.08505\",229.8],[\"-96.71250\",\"33.08412\",221.2],[\"-96.71081\",\"33.08655\",217.9],[\"-96.67932\",\"33.10218\",227.1],[\"-96.67808\",\"33.10205\",230.7],[\"-96.63932\",\"33.18887\",192.2],[\"-96.59259\",\"33.27791\",216],[\"-96.58367\",\"33.36034\",257.8],[\"-96.60900\",\"33.45832\",256.5],[\"-96.60484\",\"33.55905\",262],[\"-96.61340\",\"33.64495\",239.2],[\"-96.59232\",\"33.70954\",230.9],[\"-96.59119\",\"33.70953\",236.2],[\"-96.59229\",\"33.70770\",234.5],[\"-96.59196\",\"33.70569\",243.1],[\"-96.56721\",\"33.66007\",254.5],[\"-96.45335\",\"33.64537\",206.9],[\"-96.34534\",\"33.61350\",226.1],[\"-96.23079\",\"33.60395\",219.2],[\"-96.11488\",\"33.60584\",206.4],[\"-95.99942\",\"33.60869\",218.8],[\"-95.88533\",\"33.59455\",223.8],[\"-95.78088\",\"33.62124\",210.4],[\"-95.67144\",\"33.64524\",206.2],[\"-95.59404\",\"33.67594\",183.5],[\"-95.51040\",\"33.66245\",184.8],[\"-95.46191\",\"33.66328\",193.2],[\"-95.37615\",\"33.66219\",184.5],[\"-95.27419\",\"33.66108\",167.5],[\"-95.18297\",\"33.63279\",142],[\"-95.08048\",\"33.61280\",145.5],[\"-94.99949\",\"33.60564\",142.2],[\"-94.89987\",\"33.58488\",122.7],[\"-94.79276\",\"33.55977\",168],[\"-94.70146\",\"33.54194\",151.6],[\"-94.61644\",\"33.50868\",139.1],[\"-94.52664\",\"33.48943\",136.2],[\"-94.44947\",\"33.47412\",140.7],[\"-94.33764\",\"33.46820\",123.2],[\"-94.22733\",\"33.46736\",120.9],[\"-94.11754\",\"33.45249\",104.5],[\"-94.06536\",\"33.43488\",124.5],[\"-94.04721\",\"33.42087\",113],[\"-94.04936\",\"33.41667\",116.7],[\"-94.03055\",\"33.40966\",114.7],[\"-94.03043\",\"33.40863\",125.7],[\"-94.03201\",\"33.38520\",99.5],[\"-94.04761\",\"33.42454\",111.1],[\"-94.06184\",\"33.43453\",121.6],[\"-94.06254\",\"33.43461\",126.1],[\"-94.06291\",\"33.43421\",118.4],[\"-94.08002\",\"33.40124\",102.3],[\"-94.13766\",\"33.35216\",80.5],[\"-94.15289\",\"33.26642\",102.9],[\"-94.15198\",\"33.17320\",114.9],[\"-94.15473\",\"33.15084\",120.2],[\"-94.19308\",\"33.10804\",95.9],[\"-94.20632\",\"33.10375\",109.6],[\"-94.29211\",\"33.05315\",88.4],[\"-94.36280\",\"33.00158\",126.7],[\"-94.36616\",\"32.91378\",134.1],[\"-94.36157\",\"32.82252\",101.4],[\"-94.35501\",\"32.74840\",64.8],[\"-94.34533\",\"32.65829\",102.7],[\"-94.34627\",\"32.57475\",131],[\"-94.35161\",\"32.52769\",110.6],[\"-94.35789\",\"32.47265\",111.1],[\"-94.34591\",\"32.38016\",84.8],[\"-94.35040\",\"32.28621\",95],[\"-94.34014\",\"32.19350\",82.9],[\"-94.33531\",\"32.14539\",97.3],[\"-94.30561\",\"32.06317\",72.6],[\"-94.23943\",\"31.98822\",90.8],[\"-94.21995\",\"31.90127\",87.8],[\"-94.19746\",\"31.81493\",124.9],[\"-94.18505\",\"31.79012\",108.5],[\"-94.18503\",\"31.79014\",93.8],[\"-94.18441\",\"31.78924\",116.8],[\"-94.16959\",\"31.71833\",92.6],[\"-94.15050\",\"31.62794\",138.7],[\"-94.13300\",\"31.56341\",139.6],[\"-94.12680\",\"31.52080\",110.6],[\"-94.08816\",\"31.43948\",113],[\"-94.02947\",\"31.36699\",108.5],[\"-93.99255\",\"31.28422\",94.7],[\"-93.98080\",\"31.20168\",57.4],[\"-93.97960\",\"31.15165\",65.5],[\"-93.98512\",\"31.06848\",125.2],[\"-93.98824\",\"30.97574\",122.6],[\"-93.99670\",\"30.91516\",75.4],[\"-93.97700\",\"30.85128\",96.6],[\"-93.94387\",\"30.76274\",72.5],[\"-93.89358\",\"30.67908\",27.9],[\"-93.90824\",\"30.61683\",36.7],[\"-93.93997\",\"30.52636\",29.4],[\"-93.96880\",\"30.44275\",17.6],[\"-93.94124\",\"30.39109\",8.7],[\"-93.91430\",\"30.30640\",5.3],[\"-93.88285\",\"30.22370\",-0.6],[\"-93.83819\",\"30.15995\",-0.7],[\"-93.82137\",\"30.11469\",-8.9],[\"-93.82169\",\"30.06998\",5],[\"-93.84538\",\"30.02194\",-3.9],[\"-93.88322\",\"29.95104\",-0.9],[\"-93.96189\",\"29.91164\",-1.7],[\"-93.96332\",\"29.86670\",-7.4],[\"-93.95414\",\"29.87138\",-4.9],[\"-93.95413\",\"29.87129\",3.3],[\"-93.95572\",\"29.87006\",0.9],[\"-94.00621\",\"29.88595\",-1.3],[\"-94.09978\",\"29.85619\",-1.2],[\"-94.20446\",\"29.83326\",1.9],[\"-94.31225\",\"29.82571\",3.9],[\"-94.38415\",\"29.81788\",15.7],[\"-94.37640\",\"29.75038\",2.4],[\"-94.37266\",\"29.65704\",2.1],[\"-94.39895\",\"29.57045\",-3.4],[\"-94.44772\",\"29.52763\",5.2],[\"-94.53555\",\"29.49556\",6.9],[\"-94.61738\",\"29.46562\",-3.8],[\"-94.65808\",\"29.44707\",0.3],[\"-94.72339\",\"29.40240\",-1.9],[\"-94.77766\",\"29.36368\",3.8],[\"-94.77874\",\"29.36300\",6.2],[\"-94.77931\",\"29.36171\",21.4],[\"-94.78015\",\"29.35507\",-45.7],[\"-94.77486\",\"29.33429\",10.4],[\"-94.77391\",\"29.32805\",4.5],[\"-94.77019\",\"29.31997\",2.5],[\"-94.80485\",\"29.29687\",-1.8],[\"-94.81069\",\"29.29543\",4.1],[\"-94.81066\",\"29.29543\",1.4],[\"-94.81177\",\"29.29505\",3.1],[\"-94.83177\",\"29.28974\",3.5],[\"-94.90047\",\"29.30283\",9.3],[\"-94.96390\",\"29.33264\",5.3],[\"-95.02068\",\"29.34978\",7.2],[\"-95.07897\",\"29.31548\",2.8],[\"-95.14393\",\"29.27121\",2.5],[\"-95.19098\",\"29.22802\",4.2],[\"-95.25374\",\"29.17422\",0.2],[\"-95.33318\",\"29.14378\",2.7],[\"-95.39732\",\"29.12792\",6.4],[\"-95.45089\",\"29.12852\",13.4],[\"-95.45479\",\"29.16386\",3.1],[\"-95.45552\",\"29.16311\",5.5],[\"-95.53967\",\"29.14654\",11.3],[\"-95.62800\",\"29.14317\",14],[\"-95.67086\",\"29.14578\",14.8],[\"-95.72078\",\"29.08836\",4.8],[\"-95.80920\",\"29.06754\",7.5],[\"-95.87644\",\"29.02995\",19],[\"-95.93140\",\"28.98813\",14.7],[\"-95.96630\",\"28.98312\",17],[\"-96.03007\",\"28.97388\",22.4],[\"-96.09654\",\"28.93017\",14.1],[\"-96.18353\",\"28.88567\",9.5],[\"-96.22443\",\"28.93798\",20.3],[\"-96.32585\",\"28.94159\",14.5],[\"-96.42483\",\"28.95200\",17.8],[\"-96.52032\",\"28.95285\",15.3],[\"-96.61933\",\"28.96028\",14.8],[\"-96.65407\",\"28.97466\",24.3],[\"-96.72489\",\"28.93926\",16.8],[\"-96.81757\",\"28.89429\",20.4],[\"-96.90295\",\"28.84149\",31.1],[\"-96.96643\",\"28.77626\",34.3],[\"-96.96627\",\"28.77825\",36.6],[\"-96.96630\",\"28.77812\",34.2],[\"-96.96681\",\"28.77742\",30.3],[\"-97.03800\",\"28.72133\",29.1],[\"-97.04600\",\"28.62843\",27.5],[\"-97.04304\",\"28.53403\",14.4],[\"-97.10952\",\"28.46274\",22.1],[\"-97.18320\",\"28.39405\",16.9],[\"-97.25671\",\"28.33095\",17.1],[\"-97.29205\",\"28.28452\",16.7],[\"-97.35556\",\"28.21272\",13.8],[\"-97.41772\",\"28.13568\",18.1],[\"-97.48836\",\"28.06901\",24.4],[\"-97.54166\",\"27.99699\",11.8],[\"-97.58975\",\"27.94246\",17.6],[\"-97.62396\",\"27.88014\",0],[\"-97.64853\",\"27.79797\",17.8],[\"-97.71151\",\"27.72622\",18.3],[\"-97.75503\",\"27.66248\",16.7],[\"-97.78621\",\"27.58414\",13.8],[\"-97.84113\",\"27.52959\",11.5],[\"-97.84188\",\"27.52990\",12.4],[\"-97.84118\",\"27.52859\",14],[\"-97.85860\",\"27.44669\",8.1],[\"-97.83364\",\"27.36119\",6.4],[\"-97.80595\",\"27.28257\",5.5],[\"-97.79236\",\"27.19188\",4],[\"-97.79024\",\"27.09874\",3.6],[\"-97.79496\",\"27.00536\",4.9],[\"-97.79097\",\"26.91221\",2.9],[\"-97.78030\",\"26.81951\",0.1],[\"-97.76946\",\"26.72598\",-0.5],[\"-97.76754\",\"26.63018\",0.5],[\"-97.77521\",\"26.53489\",3],[\"-97.78426\",\"26.44234\",2.6],[\"-97.78432\",\"26.34679\",6.4],[\"-97.73888\",\"26.26341\",4.2],[\"-97.71112\",\"26.17963\",17.1],[\"-97.63463\",\"26.12510\",9.4],[\"-97.57714\",\"26.08060\",3.2],[\"-97.54235\",\"26.07708\",6.6],[\"-97.47798\",\"26.07174\",4.9],[\"-97.41809\",\"26.06748\",-3.3],[\"-97.33605\",\"26.09123\",-1],[\"-97.25670\",\"26.08105\",-4.2],[\"-97.20704\",\"26.07729\",3.9],[\"-97.16370\",\"26.08420\",-6.9],[\"-97.16373\",\"26.08414\",5.1],[\"-97.16458\",\"26.08529\",-1.9],[\"-97.21686\",\"26.07182\",1.5],[\"-97.21688\",\"26.07150\",11],[\"-97.21708\",\"26.07128\",6.5],[\"-97.21792\",\"26.07147\",5.1],[\"-97.22452\",\"26.07281\",2.2],[\"-97.22450\",\"26.07281\",2.8],[\"-97.23400\",\"26.07708\",6.7],[\"-97.29501\",\"26.09403\",5.1],[\"-97.37784\",\"26.07015\",4],[\"-97.46792\",\"26.07110\",4.6],[\"-97.52268\",\"26.07523\",8.5],[\"-97.59574\",\"26.10114\",10.9],[\"-97.67729\",\"26.15719\",18.9],[\"-97.76306\",\"26.18706\",18.6],[\"-97.85969\",\"26.15972\",17],[\"-97.95871\",\"26.16138\",28.6],[\"-98.04663\",\"26.18086\",25.7],[\"-98.13010\",\"26.19245\",30.4],[\"-98.14738\",\"26.19554\",36.1],[\"-98.18877\",\"26.20761\",36.2],[\"-98.25060\",\"26.19297\",37.9],[\"-98.34647\",\"26.21392\",47.2],[\"-98.43517\",\"26.24245\",48.8],[\"-98.46474\",\"26.24646\",49.4],[\"-98.52442\",\"26.25532\",55.2],[\"-98.58980\",\"26.28789\",62.3],[\"-98.67088\",\"26.31958\",61.2],[\"-98.75202\",\"26.34601\",45.2],[\"-98.79529\",\"26.36872\",51.3],[\"-98.83388\",\"26.37970\",55.9],[\"-98.90137\",\"26.38439\",51.1],[\"-98.95444\",\"26.40936\",54.6],[\"-99.01119\",\"26.40283\",59.4],[\"-99.02822\",\"26.45411\",125.7],[\"-99.08591\",\"26.51962\",100.2],[\"-99.08826\",\"26.60524\",142.1],[\"-99.10852\",\"26.68995\",102.1],[\"-99.12194\",\"26.77935\",125.6],[\"-99.16400\",\"26.82192\",136.4],[\"-99.22150\",\"26.85351\",120.6],[\"-99.26742\",\"26.90220\",125.9],[\"-99.31845\",\"26.94674\",109.1],[\"-99.38375\",\"27.00618\",105.2],[\"-99.43373\",\"27.06312\",102.5],[\"-99.42278\",\"27.15168\",110.1],[\"-99.41931\",\"27.24432\",124.6],[\"-99.44143\",\"27.33219\",148.7],[\"-99.47035\",\"27.40077\",149.7],[\"-99.45133\",\"27.46230\",176.7],[\"-99.45031\",\"27.49767\",142.2],[\"-99.48964\",\"27.50640\",139.2],[\"-99.50260\",\"27.52830\",129.1],[\"-99.50235\",\"27.53064\",130.2],[\"-99.50232\",\"27.53060\",128.1],[\"-99.50377\",\"27.54863\",138.7],[\"-99.48809\",\"27.63346\",181.5],[\"-99.44827\",\"27.71957\",228.4],[\"-99.41841\",\"27.80493\",203.3],[\"-99.46545\",\"27.82100\",239.5],[\"-99.48544\",\"27.90567\",241.4],[\"-99.52929\",\"27.99028\",267],[\"-99.55622\",\"28.05779\",278.3],[\"-99.59348\",\"28.13296\",228.8],[\"-99.61423\",\"28.21586\",206.5],[\"-99.61413\",\"28.30547\",159.2],[\"-99.64589\",\"28.37326\",182.8],[\"-99.73183\",\"28.42636\",209.7],[\"-99.79978\",\"28.47179\",182.9],[\"-99.85646\",\"28.52286\",196],[\"-99.85565\",\"28.52369\",196.7],[\"-99.85597\",\"28.52344\",176.1],[\"-99.85702\",\"28.52182\",197.1],[\"-99.89712\",\"28.55830\",215.6],[\"-99.96386\",\"28.62502\",208],[\"-100.06532\",\"28.62601\",221.5],[\"-100.17092\",\"28.64186\",238],[\"-100.27725\",\"28.66397\",255.9],[\"-100.38127\",\"28.69246\",258.4],[\"-100.46447\",\"28.71104\",266.7],[\"-100.49655\",\"28.74306\",240],[\"-100.50707\",\"28.77648\",239.9],[\"-100.53545\",\"28.85117\",278.9],[\"-100.60223\",\"28.91297\",253.1],[\"-100.63378\",\"28.97994\",269.8],[\"-100.63988\",\"29.06849\",291.8],[\"-100.67331\",\"29.15664\",313.9],[\"-100.73721\",\"29.22920\",330.2],[\"-100.79192\",\"29.30545\",348.4],[\"-100.87358\",\"29.35513\",322.2],[\"-100.90071\",\"29.38132\",358.9],[\"-100.90568\",\"29.38608\",354.1],[\"-100.90569\",\"29.38607\",350.4],[\"-100.90532\",\"29.38714\",363.1],[\"-100.92571\",\"29.44905\",379],[\"-101.02258\",\"29.46890\",392],[\"-101.07847\",\"29.54058\",403.6],[\"-101.10049\",\"29.61668\",477.3],[\"-101.15676\",\"29.67396\",521.4],[\"-101.24518\",\"29.71051\",524],[\"-101.35021\",\"29.70741\",439.7],[\"-101.40097\",\"29.78171\",475.5],[\"-101.49915\",\"29.80764\",495.7],[\"-101.60442\",\"29.81885\",467.7],[\"-101.69761\",\"29.85862\",593.1],[\"-101.78149\",\"29.90242\",544.4],[\"-101.88041\",\"29.90818\",610.3],[\"-101.97698\",\"29.94443\",673.3],[\"-102.05142\",\"30.00847\",708.8],[\"-102.14163\",\"30.04964\",734],[\"-102.24909\",\"30.05908\",803.1],[\"-102.35225\",\"30.07746\",887],[\"-102.38669\",\"30.13678\",931],[\"-102.38668\",\"30.13676\",937.1],[\"-102.38873\",\"30.13757\",941],[\"-102.45495\",\"30.15941\",993.9],[\"-102.54852\",\"30.13862\",1069.6],[\"-102.64938\",\"30.16284\",1149.5],[\"-102.75604\",\"30.17581\",1268.5],[\"-102.86174\",\"30.18901\",1393.5],[\"-102.96795\",\"30.20451\",1406.1],[\"-103.07127\",\"30.21290\",1384.5],[\"-103.18125\",\"30.21020\",1411.2],[\"-103.23576\",\"30.20685\",1379.6],[\"-103.23574\",\"30.20684\",1388.5],[\"-103.23690\",\"30.20647\",1391.5],[\"-103.24498\",\"30.12558\",1338.1],[\"-103.28247\",\"30.03813\",1275.5],[\"-103.25310\",\"29.94901\",1163.6],[\"-103.24788\",\"29.85909\",1077.2],[\"-103.17921\",\"29.78688\",980.7],[\"-103.16339\",\"29.69599\",954.1],[\"-103.17362\",\"29.65944\",971.9],[\"-103.14192\",\"29.59466\",879.5],[\"-103.12084\",\"29.51649\",1002],[\"-103.13798\",\"29.44204\",949.1],[\"-103.15747\",\"29.37491\",1050.9],[\"-103.20625\",\"29.32829\",1264.2],[\"-103.20615\",\"29.32820\",1267.8],[\"-103.20717\",\"29.32900\",1273.5],[\"-103.27328\",\"29.34642\",1303.6],[\"-103.34127\",\"29.33412\",1169],[\"-103.40577\",\"29.32031\",1122.1],[\"-103.47787\",\"29.30775\",964.6],[\"-103.53327\",\"29.32080\",872],[\"-103.59888\",\"29.32184\",936.7],[\"-103.67781\",\"29.30224\",964.4],[\"-103.76115\",\"29.26887\",805.5],[\"-103.77082\",\"29.26262\",793.7],[\"-103.77083\",\"29.26263\",791.4],[\"-103.77177\",\"29.26211\",790.8],[\"-103.83188\",\"29.27234\",787.5],[\"-103.88234\",\"29.28562\",793.8],[\"-103.94257\",\"29.29623\",948.7],[\"-103.97708\",\"29.31927\",912],[\"-104.05056\",\"29.33302\",836.5],[\"-104.09633\",\"29.36820\",845.1],[\"-104.17264\",\"29.41190\",857.2],[\"-104.20468\",\"29.47375\",867.9],[\"-104.25497\",\"29.51305\",875.4],[\"-104.31940\",\"29.54219\",873.8],[\"-104.36588\",\"29.56076\",877.9],[\"-104.37213\",\"29.56055\",857.4],[\"-104.37215\",\"29.56049\",859.7],[\"-104.37165\",\"29.56142\",880.5],[\"-104.36383\",\"29.60383\",955],[\"-104.36013\",\"29.69294\",1098.1],[\"-104.34073\",\"29.77954\",1333.3],[\"-104.30666\",\"29.83857\",1381],[\"-104.27198\",\"29.90277\",1511.3],[\"-104.22280\",\"29.97740\",1683.3],[\"-104.18213\",\"30.05294\",1761.6],[\"-104.12908\",\"30.12588\",1584.2],[\"-104.07081\",\"30.20118\",1523.3],[\"-104.04189\",\"30.26851\",1571.1],[\"-104.02087\",\"30.30950\",1604.9],[\"-104.02739\",\"30.30769\",1597.7],[\"-104.10568\",\"30.32726\",1648.6],[\"-104.20336\",\"30.36674\",1663.3],[\"-104.28936\",\"30.42222\",1626.2],[\"-104.36885\",\"30.48534\",1591.3],[\"-104.44349\",\"30.54445\",1543.4],[\"-104.51092\",\"30.59775\",1498.5],[\"-104.51847\",\"30.60349\",1494.5],[\"-104.51923\",\"30.60429\",1494.8],[\"-104.59674\",\"30.66542\",1441.3],[\"-104.67800\",\"30.72946\",1401.1],[\"-104.74637\",\"30.80191\",1375.1],[\"-104.79140\",\"30.88830\",1346],[\"-104.81959\",\"30.97924\",1338],[\"-104.83025\",\"31.03595\",1373.4],[\"-104.83042\",\"31.03603\",1376.8],[\"-104.83076\",\"31.03682\",1374.5],[\"-104.93317\",\"31.05033\",1530.7],[\"-105.04071\",\"31.08504\",1521.5],[\"-105.15141\",\"31.11437\",1511.3],[\"-105.26136\",\"31.14697\",1491.8],[\"-105.36925\",\"31.17623\",1562.8],[\"-105.47187\",\"31.21322\",1563.3],[\"-105.57622\",\"31.19705\",1366.2],[\"-105.68378\",\"31.17444\",1233.4],[\"-105.77650\",\"31.22879\",1204.1],[\"-105.84135\",\"31.30518\",1234.5],[\"-105.91998\",\"31.37702\",1272.6],[\"-106.01610\",\"31.43315\",1288.5],[\"-106.10082\",\"31.49487\",1288.1],[\"-106.17142\",\"31.57166\",1290.7],[\"-106.23606\",\"31.65499\",1280.1],[\"-106.30886\",\"31.72452\",1300.2],[\"-106.39001\",\"31.77741\",1315.9],[\"-106.48525\",\"31.76461\",1269.2],[\"-106.54191\",\"31.80961\",1289.2],[\"-106.58269\",\"31.88766\",1311.8],[\"-106.58361\",\"31.91195\",1326.2],[\"-106.58429\",\"31.91197\",1325],[\"-106.58332\",\"31.91100\",1325.5],[\"-106.58242\",\"31.97911\",1335.9],[\"-106.58056\",\"31.99599\",1341.4],[\"-106.58082\",\"31.99587\",1342.2],[\"-106.58083\",\"31.99584\",1342.7],[\"-106.58057\",\"31.99596\",1341.5],[\"-106.58068\",\"31.99694\",1348.1],[\"-106.58291\",\"31.95606\",1343.7],[\"-106.54249\",\"31.90510\",1493.7],[\"-106.47891\",\"31.88983\",1672.9],[\"-106.41579\",\"31.89909\",1340.8],[\"-106.33882\",\"31.86481\",1355.5],[\"-106.26847\",\"31.81169\",1363],[\"-106.21685\",\"31.81314\",1372.5],[\"-106.17752\",\"31.81883\",1378.4],[\"-106.17754\",\"31.81883\",1376.8],[\"-106.17526\",\"31.81864\",1390.5],[\"-106.08421\",\"31.83137\",1455.9],[\"-105.98874\",\"31.83907\",1711.3],[\"-105.90864\",\"31.82669\",1760.3],[\"-105.80614\",\"31.84724\",1793.6],[\"-105.70443\",\"31.81991\",1654.1],[\"-105.59863\",\"31.80164\",1544.9],[\"-105.49193\",\"31.78306\",1477.7],[\"-105.38455\",\"31.76434\",1426.5],[\"-105.27807\",\"31.74668\",1359.7],[\"-105.18901\",\"31.74714\",1352],[\"-105.08184\",\"31.74466\",1265.1],[\"-105.01809\",\"31.75127\",1238.7],[\"-104.91278\",\"31.76391\",1305.3],[\"-104.82834\",\"31.81961\",1506.5],[\"-104.82316\",\"31.87875\",1901.6],[\"-104.82100\",\"31.89300\",1945.4],[\"-104.74318\",\"31.92382\",1647.2],[\"-104.64828\",\"31.96708\",1534.1],[\"-104.54469\",\"31.99674\",1357.8],[\"-104.50093\",\"31.93218\",1297.2],[\"-104.44355\",\"31.92434\",1258.9],[\"-104.40178\",\"31.91590\",1220],[\"-104.33093\",\"31.88795\",1172],[\"-104.27802\",\"31.86861\",1245.6],[\"-104.17598\",\"31.83747\",1175.6],[\"-104.11731\",\"31.82491\",1106.7],[\"-104.09131\",\"31.82325\",1098.6],[\"-104.06403\",\"31.82296\",1065.9],[\"-104.03006\",\"31.82257\",1028.3],[\"-103.94368\",\"31.82517\",992.9],[\"-103.88530\",\"31.79780\",968.1],[\"-103.83016\",\"31.73398\",952.2],[\"-103.77675\",\"31.67859\",981.9],[\"-103.67502\",\"31.64859\",936.5],[\"-103.61184\",\"31.68883\",908.1],[\"-103.53915\",\"31.73867\",961.1],[\"-103.43999\",\"31.76597\",999],[\"-103.33919\",\"31.77865\",986.7],[\"-103.25776\",\"31.80100\",971.6],[\"-103.17164\",\"31.82448\",962.8],[\"-103.10516\",\"31.84877\",966.3],[\"-103.10374\",\"31.84332\",960.5],[\"-103.10377\",\"31.84332\",962.2],[\"-103.10091\",\"31.84353\",973.4],[\"-103.07832\",\"31.86477\",992],[\"-103.00557\",\"31.91799\",1013],[\"-102.95398\",\"31.98004\",1049.8],[\"-102.90122\",\"32.05607\",1074.1],[\"-102.83474\",\"32.12853\",1126.8],[\"-102.75026\",\"32.18142\",1109.3],[\"-102.77743\",\"32.26481\",1118.5],[\"-102.77341\",\"32.35412\",1115.7],[\"-102.79904\",\"32.43790\",1128],[\"-102.85397\",\"32.49384\",1143.5],[\"-102.83456\",\"32.56829\",1147.2],[\"-102.78379\",\"32.60752\",1138.9],[\"-102.74307\",\"32.66050\",1135],[\"-102.73196\",\"32.72543\",1154.6],[\"-102.70894\",\"32.78280\",1143.5],[\"-102.77274\",\"32.85205\",1182.7],[\"-102.80433\",\"32.93702\",1196.8],[\"-102.81862\",\"32.96248\",1215.7],[\"-102.81899\",\"32.96326\",1214.3],[\"-102.81899\",\"32.97905\",1222.3],[\"-102.81884\",\"33.06177\",1233],[\"-102.81868\",\"33.15321\",1237.6],[\"-102.81855\",\"33.23103\",1261.2],[\"-102.81843\",\"33.32459\",1261.1],[\"-102.81978\",\"33.41787\",1276.7],[\"-102.82295\",\"33.51112\",1289.4],[\"-102.82257\",\"33.55711\",1286.8],[\"-102.80091\",\"33.61324\",1287.6],[\"-102.75964\",\"33.69626\",1283.6],[\"-102.75864\",\"33.76206\",1273.4],[\"-102.76074\",\"33.85506\",1289.6],[\"-102.74357\",\"33.94651\",1274.8],[\"-102.73757\",\"34.03478\",1322.2],[\"-102.73498\",\"34.12793\",1315.4],[\"-102.73152\",\"34.21730\",1285.6],[\"-102.72365\",\"34.22637\",1293.6],[\"-102.72361\",\"34.22640\",1284.2],[\"-102.72248\",\"34.22787\",1290.8],[\"-102.72246\",\"34.30530\",1314.4],[\"-102.71613\",\"34.39754\",1355.3],[\"-102.72822\",\"34.48720\",1362],[\"-102.72767\",\"34.58069\",1393.7],[\"-102.71849\",\"34.64102\",1366.3],[\"-102.66505\",\"34.65510\",1359.2],[\"-102.56931\",\"34.70512\",1339.1],[\"-102.47510\",\"34.75638\",1332.3],[\"-102.40575\",\"34.81154\",1293],[\"-102.40508\",\"34.85869\",1302.7],[\"-102.40331\",\"34.95106\",1319.6],[\"-102.40217\",\"35.04428\",1327],[\"-102.40066\",\"35.13749\",1361],[\"-102.42339\",\"35.22630\",1367],[\"-102.42897\",\"35.23828\",1367.6],[\"-102.42905\",\"35.23831\",1375.7],[\"-102.42844\",\"35.23912\",1375.2],[\"-102.38791\",\"35.29985\",1358.5],[\"-102.32817\",\"35.37798\",1280.8],[\"-102.25732\",\"35.44921\",1190.6],[\"-102.26745\",\"35.53624\",1119.8],[\"-102.30488\",\"35.62218\",1204.2],[\"-102.32886\",\"35.68665\",1294.8],[\"-102.33095\",\"35.77090\",1326.9],[\"-102.38040\",\"35.85658\",1335.2],[\"-102.42458\",\"35.93361\",1336.5],[\"-102.47417\",\"36.01948\",1348],[\"-102.51777\",\"36.06287\",1360.9],[\"-102.58416\",\"36.10763\",1379.2],[\"-102.67698\",\"36.16468\",1413.9],[\"-102.77093\",\"36.22071\",1466.9],[\"-102.86530\",\"36.27703\",1489.9],[\"-102.95966\",\"36.33281\",1535.2],[\"-103.01866\",\"36.37430\",1592.1],[\"-103.01873\",\"36.37428\",1584.2],[\"-103.01801\",\"36.37343\",1598.6],[\"-102.93322\",\"36.31676\",1533.8],[\"-102.83917\",\"36.26095\",1484.4],[\"-102.74495\",\"36.20487\",1448.7],[\"-102.65113\",\"36.14889\",1399.3],[\"-102.59298\",\"36.11317\",1389.4],[\"-102.51060\",\"36.07956\",1356],[\"-102.45119\",\"36.10822\",1349.2],[\"-102.35891\",\"36.16287\",1339.6],[\"-102.26334\",\"36.21962\",1305.2],[\"-102.17083\",\"36.27440\",1275.7],[\"-102.07878\",\"36.32881\",1250.7],[\"-101.99481\",\"36.32836\",1233.5],[\"-101.87768\",\"36.32852\",1204.3],[\"-101.76958\",\"36.32801\",1181],[\"-101.65370\",\"36.32369\",1146.6],[\"-101.57189\",\"36.27016\",1130.5],[\"-101.45480\",\"36.26985\",1089.4],[\"-101.37222\",\"36.24709\",1077.7],[\"-101.27802\",\"36.19728\",1064.3],[\"-101.19710\",\"36.19918\",1057],[\"-101.19771\",\"36.19867\",1055.4],[\"-101.19614\",\"36.19999\",1057.3],[\"-101.12314\",\"36.24566\",1041.1],[\"-101.02315\",\"36.29413\",1020.9],[\"-100.92461\",\"36.34173\",1012.5],[\"-100.82543\",\"36.38956\",995.1],[\"-100.75501\",\"36.42338\",986.5],[\"-100.64857\",\"36.45608\",976.5],[\"-100.54066\",\"36.45550\",955.4],[\"-100.44530\",\"36.44866\",952.6],[\"-100.33173\",\"36.44588\",864.1],[\"-100.23179\",\"36.43383\",887.5],[\"-100.14145\",\"36.43364\",881.7],[\"-100.14138\",\"36.43367\",879.7],[\"-100.14174\",\"36.43269\",885.8],[\"-100.13134\",\"36.37315\",833.6],[\"-100.13131\",\"36.29084\",819.4],[\"-100.13151\",\"36.20681\",803.3],[\"-100.18629\",\"36.17225\",839.4],[\"-100.27625\",\"36.16393\",863.2],[\"-100.27660\",\"36.07717\",917.6],[\"-100.28041\",\"36.00295\",877.6],[\"-100.36870\",\"35.94958\",814.9],[\"-100.38316\",\"35.91605\",811.9],[\"-100.38318\",\"35.91606\",813.1],[\"-100.38495\",\"35.91491\",804.8],[\"-100.39762\",\"35.84724\",902.7],[\"-100.38661\",\"35.75735\",885.6],[\"-100.36328\",\"35.66641\",966.7],[\"-100.31356\",\"35.58213\",915.7],[\"-100.29004\",\"35.49144\",827.5],[\"-100.27177\",\"35.42848\",868.1],[\"-100.23634\",\"35.34629\",780.7],[\"-100.24628\",\"35.25635\",748.4],[\"-100.24922\",\"35.19952\",772.4],[\"-100.23768\",\"35.12777\",769.9],[\"-100.23159\",\"35.03996\",758.7],[\"-100.22150\",\"34.95012\",686.2],[\"-100.20487\",\"34.86103\",682.2],[\"-100.19214\",\"34.78134\",663.6],[\"-100.18879\",\"34.68760\",597.8],[\"-100.18914\",\"34.59680\",584.4],[\"-100.20816\",\"34.50536\",588.1],[\"-100.22364\",\"34.43353\",652.6],[\"-100.22089\",\"34.43283\",650.6],[\"-100.22090\",\"34.43286\",639],[\"-100.21905\",\"34.43186\",644.4],[\"-100.14048\",\"34.40419\",574.4],[\"-100.03394\",\"34.37504\",550],[\"-99.92770\",\"34.34519\",547],[\"-99.82294\",\"34.31387\",512.3],[\"-99.73791\",\"34.28892\",532.5],[\"-99.63802\",\"34.26842\",501.8],[\"-99.52841\",\"34.25581\",462.7],[\"-99.44124\",\"34.23542\",463],[\"-99.34295\",\"34.18956\",418.6],[\"-99.24802\",\"34.15298\",395.8],[\"-99.14010\",\"34.13392\",416.2],[\"-99.04316\",\"34.08548\",417.2],[\"-99.00955\",\"34.07128\",398.1],[\"-99.00955\",\"34.07126\",414.6],[\"-99.00942\",\"34.07027\",418.5],[\"-98.90411\",\"34.04175\",408.2],[\"-98.81255\",\"33.98450\",363.5],[\"-98.70233\",\"33.96571\",351.1],[\"-98.58840\",\"33.95357\",337.1],[\"-98.50460\",\"33.91252\",325.3],[\"-98.42073\",\"33.88136\",335.2],[\"-98.31278\",\"33.85378\",312.8],[\"-98.21698\",\"33.81375\",305.5],[\"-98.18446\",\"33.81493\",303.2],[\"-98.18338\",\"33.81530\",306.5],[\"-98.07638\",\"33.81273\",300.9],[\"-97.96224\",\"33.81705\",290.1],[\"-97.85036\",\"33.79918\",299.6],[\"-97.74015\",\"33.78210\",311.9],[\"-97.66460\",\"33.77070\",342.3],[\"-97.56471\",\"33.72430\",354.9],[\"-97.48781\",\"33.67996\",381.6],[\"-97.38356\",\"33.64832\",326.2],[\"-97.28775\",\"33.64456\",298.6],[\"-97.19102\",\"33.64089\",264.7],[\"-97.12684\",\"33.64228\",269.5],[\"-97.04380\",\"33.64978\",277.7],[\"-96.94176\",\"33.65453\",274.8],[\"-96.84817\",\"33.67270\",248.5],[\"-96.74363\",\"33.67093\",246.6],[\"-96.64055\",\"33.67098\",263.1],[\"-96.59068\",\"33.70641\",244],[\"-96.58949\",\"33.70975\",232],[\"-96.59197\",\"33.70763\",233.2],[\"-96.59201\",\"33.70760\",230.5],[\"-96.59239\",\"33.70856\",233.8],[\"-96.59043\",\"33.70900\",236.3],[\"-96.61062\",\"33.66840\",277.4],[\"-96.60444\",\"33.58990\",247.3],[\"-96.61974\",\"33.49907\",280.8],[\"-96.58337\",\"33.41138\",258.2],[\"-96.59070\",\"33.31713\",222.6],[\"-96.63182\",\"33.23421\",227.7],[\"-96.65046\",\"33.14517\",216.6],[\"-96.69851\",\"33.10073\",216.4],[\"-96.71850\",\"33.08510\",226.7],[\"-96.71844\",\"33.08506\",230]]},\"properties\":{\"stroke\":\"#ff00ff\",\"stroke-opacity\":1,\"stroke-width\":1}};\n if (gj.type === 'Feature' && gj.geometry.type === 'LineString') {\n var sourceName = 'Combined Devices - e524-24256eb1-607c-69d10cbf4f4ea';\n map.addSource(sourceName, { type: 'geojson', data: gj });\n\n \/\/ ['get', 'stroke']\n map.addLayer({\n id: 'Combined Devices - e524-24256eb1-607c-69d10cbf4f4ea',\n source: sourceName,\n type: 'line',\n paint: {\n 'line-color': ['get', 'stroke'],\n 'line-width': ['get', 'stroke-width'],\n 'line-opacity': ['get', 'stroke-opacity'],\n },\n filter: [\"==\", \"$type\", \"LineString\"]\n });\n\n gj.geometry.coordinates.forEach(function(lngLat) {\n bounds.extend(lngLat);\n });\n\n layers.push('Combined Devices - e524-24256eb1-607c-69d10cbf4f4ea');\n }\n af = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.71849\",\"33.08507\",229.7]},\"properties\":{\"tripId\":59999,\"messageId\":21903331,\"messageDateTime\":\"2021-09-28 05:39:47\",\"messageDateTimeUTC\":\"2021-09-28T10:39:47Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.07\",\"kph\":0.1,\"knots\":0.1,\"bearing\":297,\"nearest\":null,\"messageText\":\"20:1:[6]:09-28 05:39:47 (1.321)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"fa-solid fa-star\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n if (af.type === 'Feature' && af.geometry.type === 'Point') {\n el = document.createElement('div');\n el.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: green; background-color: #fff; border-radius: 50%; border: 1px solid #000;\";\n el.innerHTML = '<\/i>';\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903331, 'TRACK'); });\n\n m = new mapboxgl.Marker({ 'element': el })\n .setLngLat(af.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(af.geometry.coordinates);\n markers.push(m);\n if (af.properties.smallPic !== undefined && af.properties.smallPic !== null && af.properties.smallPic.length > 0 && af.properties.largePic !== undefined && af.properties.largePic !== null && af.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + af.properties.color + \";\";\n a.innerHTML = '<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(af.geometry.coordinates)\n .addTo(map);\n markers.push(m);\n markersWithPics.push(m);\n picListMarkers['0'] = m;\n plHtml += '
<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.71849\",\"33.08505\",229.8]},\"properties\":{\"tripId\":59999,\"messageId\":21903332,\"messageDateTime\":\"2021-09-28 05:39:54\",\"messageDateTimeUTC\":\"2021-09-28T10:39:54Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"OK\",\"messageTypeDescription\":\"Ok\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":180,\"nearest\":null,\"messageText\":null,\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903332, 'OK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['1'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.71081\",\"33.08655\",217.9]},\"properties\":{\"tripId\":59999,\"messageId\":21903404,\"messageDateTime\":\"2021-09-28 05:49:48\",\"messageDateTimeUTC\":\"2021-09-28T10:49:48Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"47.51\",\"kph\":76.5,\"knots\":41.3,\"bearing\":30,\"nearest\":null,\"messageText\":\"38:8:[4]:09-28 05:49:48 (0.333)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903404, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['2'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.67932\",\"33.10218\",227.1]},\"properties\":{\"tripId\":59999,\"messageId\":21903474,\"messageDateTime\":\"2021-09-28 05:54:49\",\"messageDateTimeUTC\":\"2021-09-28T10:54:49Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":59,\"nearest\":null,\"messageText\":\"58:28:[4]:09-28 05:54:49 (0.181)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903474, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['3'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.67808\",\"33.10205\",230.7]},\"properties\":{\"tripId\":59999,\"messageId\":21903519,\"messageDateTime\":\"2021-09-28 06:00:15\",\"messageDateTimeUTC\":\"2021-09-28T11:00:15Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"28.07\",\"kph\":45.2,\"knots\":24.4,\"bearing\":97,\"nearest\":null,\"messageText\":\"85:29:[4]:09-28 06:00:15 (0.220)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903519, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['4'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.59259\",\"33.27791\",216]},\"properties\":{\"tripId\":59999,\"messageId\":21903610,\"messageDateTime\":\"2021-09-28 06:10:16\",\"messageDateTimeUTC\":\"2021-09-28T11:10:16Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"85.29\",\"kph\":137.3,\"knots\":74.1,\"bearing\":23,\"nearest\":null,\"messageText\":\"184:128:[4]:09-28 06:10:16 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903610, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['5'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.60900\",\"33.45832\",256.5]},\"properties\":{\"tripId\":59999,\"messageId\":21903725,\"messageDateTime\":\"2021-09-28 06:20:17\",\"messageDateTimeUTC\":\"2021-09-28T11:20:17Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"86.24\",\"kph\":138.8,\"knots\":74.9,\"bearing\":347,\"nearest\":null,\"messageText\":\"276:220:[4]:09-28 06:20:17 (0.210)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903725, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['6'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.61340\",\"33.64495\",239.2]},\"properties\":{\"tripId\":59999,\"messageId\":21903823,\"messageDateTime\":\"2021-09-28 06:30:18\",\"messageDateTimeUTC\":\"2021-09-28T11:30:18Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"57.58\",\"kph\":92.7,\"knots\":50,\"bearing\":355,\"nearest\":null,\"messageText\":\"372:316:[4]:09-28 06:30:18 (0.190)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21903823, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['7'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.59119\",\"33.70953\",236.2]},\"properties\":{\"tripId\":59999,\"messageId\":21905104,\"messageDateTime\":\"2021-09-28 06:57:14\",\"messageDateTimeUTC\":\"2021-09-28T11:57:14Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"7.44\",\"kph\":12,\"knots\":6.5,\"bearing\":90,\"nearest\":null,\"messageText\":\"956:354:[4]:09-28 06:57:14 (0.183)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905104, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['8'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.59229\",\"33.70770\",234.5]},\"properties\":{\"tripId\":59999,\"messageId\":21905168,\"messageDateTime\":\"2021-09-28 07:02:14\",\"messageDateTimeUTC\":\"2021-09-28T12:02:14Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":206,\"nearest\":null,\"messageText\":\"971:357:[11]:09-28 07:02:14 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905168, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['9'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.59196\",\"33.70569\",243.1]},\"properties\":{\"tripId\":59999,\"messageId\":21905377,\"messageDateTime\":\"2021-09-28 07:14:17\",\"messageDateTimeUTC\":\"2021-09-28T12:14:17Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"54.04\",\"kph\":87,\"knots\":47,\"bearing\":172,\"nearest\":null,\"messageText\":\"1200:358:[4]:09-28 07:14:17 (0.198)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905377, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['10'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.45335\",\"33.64537\",206.9]},\"properties\":{\"tripId\":59999,\"messageId\":21905527,\"messageDateTime\":\"2021-09-28 07:24:17\",\"messageDateTimeUTC\":\"2021-09-28T12:24:17Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"80.04\",\"kph\":128.8,\"knots\":69.6,\"bearing\":98,\"nearest\":null,\"messageText\":\"1290:448:[4]:09-28 07:24:17 (0.194)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905527, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['11'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-96.23079\",\"33.60395\",219.2]},\"properties\":{\"tripId\":59999,\"messageId\":21905730,\"messageDateTime\":\"2021-09-28 07:34:18\",\"messageDateTimeUTC\":\"2021-09-28T12:34:18Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"79.34\",\"kph\":127.7,\"knots\":68.9,\"bearing\":95,\"nearest\":null,\"messageText\":\"1391:549:[4]:09-28 07:34:18 (0.190)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905730, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['12'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.99942\",\"33.60869\",218.8]},\"properties\":{\"tripId\":59999,\"messageId\":21905898,\"messageDateTime\":\"2021-09-28 07:44:19\",\"messageDateTimeUTC\":\"2021-09-28T12:44:19Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"79.94\",\"kph\":128.7,\"knots\":69.5,\"bearing\":88,\"nearest\":null,\"messageText\":\"1492:650:[4]:09-28 07:44:19 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21905898, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['13'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.78088\",\"33.62124\",210.4]},\"properties\":{\"tripId\":59999,\"messageId\":21906079,\"messageDateTime\":\"2021-09-28 07:54:20\",\"messageDateTimeUTC\":\"2021-09-28T12:54:20Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"70.80\",\"kph\":113.9,\"knots\":61.5,\"bearing\":72,\"nearest\":null,\"messageText\":\"1592:750:[4]:09-28 07:54:20 (0.187)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906079, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['14'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.67144\",\"33.64524\",206.2]},\"properties\":{\"tripId\":59999,\"messageId\":21906206,\"messageDateTime\":\"2021-09-28 07:59:20\",\"messageDateTimeUTC\":\"2021-09-28T12:59:20Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"93.94\",\"kph\":151.2,\"knots\":81.6,\"bearing\":75,\"nearest\":null,\"messageText\":\"1642:800:[4]:09-28 07:59:20 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906206, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['15'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.59404\",\"33.67594\",183.5]},\"properties\":{\"tripId\":59999,\"messageId\":21906286,\"messageDateTime\":\"2021-09-28 08:04:20\",\"messageDateTimeUTC\":\"2021-09-28T13:04:20Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"79.01\",\"kph\":127.2,\"knots\":68.7,\"bearing\":64,\"nearest\":null,\"messageText\":\"1683:841:[4]:09-28 08:04:20 (0.333)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906286, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['16'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.46191\",\"33.66328\",193.2]},\"properties\":{\"tripId\":59999,\"messageId\":21906476,\"messageDateTime\":\"2021-09-28 08:14:21\",\"messageDateTimeUTC\":\"2021-09-28T13:14:21Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"42.09\",\"kph\":67.7,\"knots\":36.6,\"bearing\":88,\"nearest\":null,\"messageText\":\"1747:905:[4]:09-28 08:14:21 (0.320)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906476, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['17'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.27419\",\"33.66108\",167.5]},\"properties\":{\"tripId\":59999,\"messageId\":21906662,\"messageDateTime\":\"2021-09-28 08:24:22\",\"messageDateTimeUTC\":\"2021-09-28T13:24:22Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.03\",\"kph\":124,\"knots\":66.9,\"bearing\":90,\"nearest\":null,\"messageText\":\"1833:991:[4]:09-28 08:24:22 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906662, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['18'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.08048\",\"33.61280\",145.5]},\"properties\":{\"tripId\":59999,\"messageId\":21906868,\"messageDateTime\":\"2021-09-28 08:34:23\",\"messageDateTimeUTC\":\"2021-09-28T13:34:23Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"57.10\",\"kph\":91.9,\"knots\":49.6,\"bearing\":103,\"nearest\":null,\"messageText\":\"1928:1086:[4]:09-28 08:34:23 (0.193)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21906868, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['19'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.89987\",\"33.58488\",122.7]},\"properties\":{\"tripId\":59999,\"messageId\":21907082,\"messageDateTime\":\"2021-09-28 08:44:24\",\"messageDateTimeUTC\":\"2021-09-28T13:44:24Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.08\",\"kph\":124,\"knots\":67,\"bearing\":104,\"nearest\":null,\"messageText\":\"2016:1174:[4]:09-28 08:44:24 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907082, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['20'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.79276\",\"33.55977\",168]},\"properties\":{\"tripId\":59999,\"messageId\":21907183,\"messageDateTime\":\"2021-09-28 08:49:24\",\"messageDateTimeUTC\":\"2021-09-28T13:49:24Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"76.19\",\"kph\":122.6,\"knots\":66.2,\"bearing\":105,\"nearest\":null,\"messageText\":\"2067:1225:[4]:09-28 08:49:24 (0.294)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907183, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['21'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.70146\",\"33.54194\",151.6]},\"properties\":{\"tripId\":59999,\"messageId\":21907293,\"messageDateTime\":\"2021-09-28 08:54:24\",\"messageDateTimeUTC\":\"2021-09-28T13:54:24Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.99\",\"kph\":125.5,\"knots\":67.8,\"bearing\":103,\"nearest\":null,\"messageText\":\"2111:1269:[4]:09-28 08:54:24 (0.339)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907293, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['22'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.52664\",\"33.48943\",136.2]},\"properties\":{\"tripId\":59999,\"messageId\":21907505,\"messageDateTime\":\"2021-09-28 09:04:25\",\"messageDateTimeUTC\":\"2021-09-28T14:04:25Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"61.09\",\"kph\":98.3,\"knots\":53.1,\"bearing\":104,\"nearest\":null,\"messageText\":\"2195:1353:[4]:09-28 09:04:25 (0.291)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907505, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['23'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.33764\",\"33.46820\",123.2]},\"properties\":{\"tripId\":59999,\"messageId\":21907732,\"messageDateTime\":\"2021-09-28 09:14:26\",\"messageDateTimeUTC\":\"2021-09-28T14:14:26Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"78.07\",\"kph\":125.6,\"knots\":67.8,\"bearing\":93,\"nearest\":null,\"messageText\":\"2282:1440:[4]:09-28 09:14:26 (0.185)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907732, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['24'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.11754\",\"33.45249\",104.5]},\"properties\":{\"tripId\":59999,\"messageId\":21907959,\"messageDateTime\":\"2021-09-28 09:24:27\",\"messageDateTimeUTC\":\"2021-09-28T14:24:27Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"80.26\",\"kph\":129.2,\"knots\":69.7,\"bearing\":99,\"nearest\":null,\"messageText\":\"2383:1541:[4]:09-28 09:24:27 (0.192)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21907959, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['25'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.04721\",\"33.42087\",113]},\"properties\":{\"tripId\":59999,\"messageId\":21908177,\"messageDateTime\":\"2021-09-28 09:34:27\",\"messageDateTimeUTC\":\"2021-09-28T14:34:27Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":132,\"nearest\":null,\"messageText\":\"2425:1583:[4]:09-28 09:34:27 (0.439)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21908177, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['26'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.04936\",\"33.41667\",116.7]},\"properties\":{\"tripId\":59999,\"messageId\":21908278,\"messageDateTime\":\"2021-09-28 09:39:28\",\"messageDateTimeUTC\":\"2021-09-28T14:39:28Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"51.07\",\"kph\":82.2,\"knots\":44.4,\"bearing\":203,\"nearest\":null,\"messageText\":\"2430:1588:[4]:09-28 09:39:28 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21908278, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['27'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.03055\",\"33.40966\",114.7]},\"properties\":{\"tripId\":59999,\"messageId\":21908398,\"messageDateTime\":\"2021-09-28 09:44:28\",\"messageDateTimeUTC\":\"2021-09-28T14:44:28Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":114,\"nearest\":null,\"messageText\":\"2441:1599:[4]:09-28 09:44:28 (0.310)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21908398, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['28'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.03201\",\"33.38520\",99.5]},\"properties\":{\"tripId\":59999,\"messageId\":21908820,\"messageDateTime\":\"2021-09-28 10:02:55\",\"messageDateTimeUTC\":\"2021-09-28T15:02:55Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"70.28\",\"kph\":113.1,\"knots\":61.1,\"bearing\":183,\"nearest\":null,\"messageText\":\"2732:1621:[4]:09-28 10:02:55 (0.315)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21908820, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['29'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.06184\",\"33.43453\",121.6]},\"properties\":{\"tripId\":59999,\"messageId\":21909078,\"messageDateTime\":\"2021-09-28 10:12:55\",\"messageDateTimeUTC\":\"2021-09-28T15:12:55Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":310,\"nearest\":null,\"messageText\":\"2770:1659:[4]:09-28 10:12:56 (0.194)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21909078, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['30'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.08002\",\"33.40124\",102.3]},\"properties\":{\"tripId\":59999,\"messageId\":21909545,\"messageDateTime\":\"2021-09-28 10:26:29\",\"messageDateTimeUTC\":\"2021-09-28T15:26:29Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"7.63\",\"kph\":12.3,\"knots\":6.6,\"bearing\":203,\"nearest\":null,\"messageText\":\"2902:1685:[4]:09-28 10:26:29 (0.324)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21909545, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['31'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.15289\",\"33.26642\",102.9]},\"properties\":{\"tripId\":59999,\"messageId\":21909805,\"messageDateTime\":\"2021-09-28 10:36:31\",\"messageDateTimeUTC\":\"2021-09-28T15:36:31Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"76.51\",\"kph\":123.1,\"knots\":66.5,\"bearing\":188,\"nearest\":null,\"messageText\":\"2989:1772:[4]:09-28 10:36:31 (0.290)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21909805, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['32'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.15198\",\"33.17320\",114.9]},\"properties\":{\"tripId\":59999,\"messageId\":21909923,\"messageDateTime\":\"2021-09-28 10:41:31\",\"messageDateTimeUTC\":\"2021-09-28T15:41:31Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"78.05\",\"kph\":125.6,\"knots\":67.8,\"bearing\":179,\"nearest\":null,\"messageText\":\"3039:1822:[4]:09-28 10:41:31 (0.186)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21909923, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['33'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.15473\",\"33.15084\",120.2]},\"properties\":{\"tripId\":59999,\"messageId\":21910053,\"messageDateTime\":\"2021-09-28 10:46:32\",\"messageDateTimeUTC\":\"2021-09-28T15:46:32Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"48.94\",\"kph\":78.8,\"knots\":42.5,\"bearing\":185,\"nearest\":null,\"messageText\":\"3053:1836:[4]:09-28 10:46:32 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21910053, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['34'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.20632\",\"33.10375\",109.6]},\"properties\":{\"tripId\":59999,\"messageId\":21910351,\"messageDateTime\":\"2021-09-28 10:56:32\",\"messageDateTimeUTC\":\"2021-09-28T15:56:32Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"65.54\",\"kph\":105.5,\"knots\":57,\"bearing\":248,\"nearest\":null,\"messageText\":\"3090:1873:[4]:09-28 10:56:32 (0.324)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21910351, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['35'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.36280\",\"33.00158\",126.7]},\"properties\":{\"tripId\":59999,\"messageId\":21910600,\"messageDateTime\":\"2021-09-28 11:06:33\",\"messageDateTimeUTC\":\"2021-09-28T16:06:33Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"45.29\",\"kph\":72.9,\"knots\":39.4,\"bearing\":228,\"nearest\":null,\"messageText\":\"3182:1965:[4]:09-28 11:06:33 (0.321)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21910600, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['36'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.36157\",\"32.82252\",101.4]},\"properties\":{\"tripId\":59999,\"messageId\":21910868,\"messageDateTime\":\"2021-09-28 11:16:34\",\"messageDateTimeUTC\":\"2021-09-28T16:16:34Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"78.69\",\"kph\":126.6,\"knots\":68.4,\"bearing\":177,\"nearest\":null,\"messageText\":\"3281:2064:[4]:09-28 11:16:34 (0.328)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21910868, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['37'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.34533\",\"32.65829\",102.7]},\"properties\":{\"tripId\":59999,\"messageId\":21911139,\"messageDateTime\":\"2021-09-28 11:26:35\",\"messageDateTimeUTC\":\"2021-09-28T16:26:35Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.84\",\"kph\":125.3,\"knots\":67.6,\"bearing\":174,\"nearest\":null,\"messageText\":\"3372:2155:[4]:09-28 11:26:35 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21911139, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['38'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.34627\",\"32.57475\",131]},\"properties\":{\"tripId\":59999,\"messageId\":21911249,\"messageDateTime\":\"2021-09-28 11:31:35\",\"messageDateTimeUTC\":\"2021-09-28T16:31:35Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"39.67\",\"kph\":63.8,\"knots\":34.5,\"bearing\":180,\"nearest\":null,\"messageText\":\"3419:2202:[4]:09-28 11:31:35 (0.324)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21911249, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['39'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.35161\",\"32.52769\",110.6]},\"properties\":{\"tripId\":59999,\"messageId\":21911373,\"messageDateTime\":\"2021-09-28 11:36:35\",\"messageDateTimeUTC\":\"2021-09-28T16:36:35Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"32.24\",\"kph\":51.9,\"knots\":28,\"bearing\":185,\"nearest\":null,\"messageText\":\"3445:2228:[4]:09-28 11:36:36 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21911373, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['40'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.34591\",\"32.38016\",84.8]},\"properties\":{\"tripId\":59999,\"messageId\":21911639,\"messageDateTime\":\"2021-09-28 11:46:36\",\"messageDateTimeUTC\":\"2021-09-28T16:46:36Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.63\",\"kph\":124.9,\"knots\":67.5,\"bearing\":173,\"nearest\":null,\"messageText\":\"3525:2308:[4]:09-28 11:46:36 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21911639, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['41'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.34014\",\"32.19350\",82.9]},\"properties\":{\"tripId\":59999,\"messageId\":21911904,\"messageDateTime\":\"2021-09-28 11:56:37\",\"messageDateTimeUTC\":\"2021-09-28T16:56:37Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"76.92\",\"kph\":123.8,\"knots\":66.8,\"bearing\":174,\"nearest\":null,\"messageText\":\"3626:2409:[4]:09-28 11:56:37 (0.184)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21911904, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['42'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.30561\",\"32.06317\",72.6]},\"properties\":{\"tripId\":59999,\"messageId\":21912122,\"messageDateTime\":\"2021-09-28 12:06:38\",\"messageDateTimeUTC\":\"2021-09-28T17:06:38Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"76.13\",\"kph\":122.5,\"knots\":66.2,\"bearing\":162,\"nearest\":null,\"messageText\":\"3699:2482:[4]:09-28 12:06:38 (0.182)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21912122, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['43'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.21995\",\"31.90127\",87.8]},\"properties\":{\"tripId\":59999,\"messageId\":21912388,\"messageDateTime\":\"2021-09-28 12:16:38\",\"messageDateTimeUTC\":\"2021-09-28T17:16:38Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.70\",\"kph\":125,\"knots\":67.5,\"bearing\":169,\"nearest\":null,\"messageText\":\"3800:2583:[4]:09-28 12:16:39 (0.193)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21912388, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['44'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.19746\",\"31.81493\",124.9]},\"properties\":{\"tripId\":59999,\"messageId\":21912505,\"messageDateTime\":\"2021-09-28 12:21:39\",\"messageDateTimeUTC\":\"2021-09-28T17:21:39Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"50.64\",\"kph\":81.5,\"knots\":44,\"bearing\":167,\"nearest\":null,\"messageText\":\"3848:2631:[4]:09-28 12:21:39 (0.327)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21912505, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['45'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.18505\",\"31.79012\",108.5]},\"properties\":{\"tripId\":59999,\"messageId\":21912640,\"messageDateTime\":\"2021-09-28 12:26:39\",\"messageDateTimeUTC\":\"2021-09-28T17:26:39Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":156,\"nearest\":null,\"messageText\":\"3863:2646:[4]:09-28 12:26:39 (0.472)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21912640, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['46'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.16959\",\"31.71833\",92.6]},\"properties\":{\"tripId\":59999,\"messageId\":21913001,\"messageDateTime\":\"2021-09-28 12:40:46\",\"messageDateTimeUTC\":\"2021-09-28T17:40:46Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"71.23\",\"kph\":114.6,\"knots\":61.9,\"bearing\":169,\"nearest\":null,\"messageText\":\"4053:2685:[4]:09-28 12:40:46 (0.328)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21913001, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['47'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.13300\",\"31.56341\",139.6]},\"properties\":{\"tripId\":59999,\"messageId\":21913258,\"messageDateTime\":\"2021-09-28 12:50:47\",\"messageDateTimeUTC\":\"2021-09-28T17:50:47Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"49.02\",\"kph\":78.9,\"knots\":42.6,\"bearing\":166,\"nearest\":null,\"messageText\":\"4137:2769:[4]:09-28 12:50:47 (0.185)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21913258, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['48'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.08816\",\"31.43948\",113]},\"properties\":{\"tripId\":59999,\"messageId\":21913532,\"messageDateTime\":\"2021-09-28 13:00:47\",\"messageDateTimeUTC\":\"2021-09-28T18:00:47Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"80.62\",\"kph\":129.7,\"knots\":70.1,\"bearing\":157,\"nearest\":null,\"messageText\":\"4209:2841:[4]:09-28 13:00:48 (0.184)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21913532, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['49'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.99255\",\"31.28422\",94.7]},\"properties\":{\"tripId\":59999,\"messageId\":21913757,\"messageDateTime\":\"2021-09-28 13:10:48\",\"messageDateTimeUTC\":\"2021-09-28T18:10:48Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"79.12\",\"kph\":127.3,\"knots\":68.8,\"bearing\":159,\"nearest\":null,\"messageText\":\"4302:2934:[4]:09-28 13:10:48 (0.322)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21913757, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['50'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.98080\",\"31.20168\",57.4]},\"properties\":{\"tripId\":59999,\"messageId\":21913861,\"messageDateTime\":\"2021-09-28 13:15:49\",\"messageDateTimeUTC\":\"2021-09-28T18:15:49Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.06\",\"kph\":124,\"knots\":67,\"bearing\":173,\"nearest\":null,\"messageText\":\"4347:2979:[4]:09-28 13:15:49 (0.187)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21913861, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['51'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.97960\",\"31.15165\",65.5]},\"properties\":{\"tripId\":59999,\"messageId\":21914004,\"messageDateTime\":\"2021-09-28 13:20:49\",\"messageDateTimeUTC\":\"2021-09-28T18:20:49Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.51\",\"kph\":124.7,\"knots\":67.4,\"bearing\":178,\"nearest\":null,\"messageText\":\"4375:3007:[4]:09-28 13:20:49 (0.322)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914004, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['52'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.98824\",\"30.97574\",122.6]},\"properties\":{\"tripId\":59999,\"messageId\":21914212,\"messageDateTime\":\"2021-09-28 13:30:50\",\"messageDateTimeUTC\":\"2021-09-28T18:30:50Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.89\",\"kph\":125.4,\"knots\":67.7,\"bearing\":181,\"nearest\":null,\"messageText\":\"4472:3104:[4]:09-28 13:30:50 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914212, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['53'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.97700\",\"30.85128\",96.6]},\"properties\":{\"tripId\":59999,\"messageId\":21914410,\"messageDateTime\":\"2021-09-28 13:40:50\",\"messageDateTimeUTC\":\"2021-09-28T18:40:50Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.82\",\"kph\":125.2,\"knots\":67.6,\"bearing\":165,\"nearest\":null,\"messageText\":\"4542:3174:[4]:09-28 13:40:51 (0.191)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914410, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['54'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.89358\",\"30.67908\",27.9]},\"properties\":{\"tripId\":59999,\"messageId\":21914617,\"messageDateTime\":\"2021-09-28 13:50:51\",\"messageDateTimeUTC\":\"2021-09-28T18:50:51Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"63.72\",\"kph\":102.5,\"knots\":55.4,\"bearing\":152,\"nearest\":null,\"messageText\":\"4642:3274:[4]:09-28 13:50:51 (0.331)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914617, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['55'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.93997\",\"30.52636\",29.4]},\"properties\":{\"tripId\":59999,\"messageId\":21914810,\"messageDateTime\":\"2021-09-28 14:00:52\",\"messageDateTimeUTC\":\"2021-09-28T19:00:52Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.88\",\"kph\":125.3,\"knots\":67.7,\"bearing\":196,\"nearest\":null,\"messageText\":\"4727:3359:[4]:09-28 14:00:52 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914810, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['56'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.96880\",\"30.44275\",17.6]},\"properties\":{\"tripId\":59999,\"messageId\":21914889,\"messageDateTime\":\"2021-09-28 14:05:52\",\"messageDateTimeUTC\":\"2021-09-28T19:05:52Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"37.97\",\"kph\":61.1,\"knots\":33,\"bearing\":196,\"nearest\":null,\"messageText\":\"4774:3406:[4]:09-28 14:05:53 (0.192)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21914889, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['57'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.94124\",\"30.39109\",8.7]},\"properties\":{\"tripId\":59999,\"messageId\":21915006,\"messageDateTime\":\"2021-09-28 14:10:53\",\"messageDateTimeUTC\":\"2021-09-28T19:10:53Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"67.45\",\"kph\":108.5,\"knots\":58.6,\"bearing\":155,\"nearest\":null,\"messageText\":\"4804:3436:[4]:09-28 14:10:53 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915006, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['58'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.88285\",\"30.22370\",-0.6]},\"properties\":{\"tripId\":59999,\"messageId\":21915239,\"messageDateTime\":\"2021-09-28 14:20:54\",\"messageDateTimeUTC\":\"2021-09-28T19:20:54Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"61.31\",\"kph\":98.7,\"knots\":53.3,\"bearing\":161,\"nearest\":null,\"messageText\":\"4891:3523:[4]:09-28 14:20:54 (0.187)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915239, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['59'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.82137\",\"30.11469\",-8.9]},\"properties\":{\"tripId\":59999,\"messageId\":21915445,\"messageDateTime\":\"2021-09-28 14:30:54\",\"messageDateTimeUTC\":\"2021-09-28T19:30:54Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":162,\"nearest\":null,\"messageText\":\"4956:3588:[4]:09-28 14:30:55 (0.192)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915445, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['60'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.84538\",\"30.02194\",-3.9]},\"properties\":{\"tripId\":59999,\"messageId\":21915657,\"messageDateTime\":\"2021-09-28 14:40:55\",\"messageDateTimeUTC\":\"2021-09-28T19:40:55Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"19.78\",\"kph\":31.8,\"knots\":17.2,\"bearing\":203,\"nearest\":null,\"messageText\":\"5012:3644:[4]:09-28 14:40:55 (0.405)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915657, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['61'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.96189\",\"29.91164\",-1.7]},\"properties\":{\"tripId\":59999,\"messageId\":21915880,\"messageDateTime\":\"2021-09-28 14:50:56\",\"messageDateTimeUTC\":\"2021-09-28T19:50:56Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"62.92\",\"kph\":101.3,\"knots\":54.7,\"bearing\":239,\"nearest\":null,\"messageText\":\"5098:3730:[4]:09-28 14:50:56 (0.267)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915880, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['62'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.96332\",\"29.86670\",-7.4]},\"properties\":{\"tripId\":59999,\"messageId\":21915972,\"messageDateTime\":\"2021-09-28 14:55:56\",\"messageDateTimeUTC\":\"2021-09-28T19:55:56Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":181,\"nearest\":null,\"messageText\":\"5135:3767:[4]:09-28 14:55:56 (0.333)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21915972, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['63'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-93.95414\",\"29.87138\",-4.9]},\"properties\":{\"tripId\":59999,\"messageId\":21916102,\"messageDateTime\":\"2021-09-28 15:00:56\",\"messageDateTimeUTC\":\"2021-09-28T20:00:56Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":59,\"nearest\":null,\"messageText\":\"5142:3774:[4]:09-28 15:00:57 (0.187)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21916102, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['64'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.00621\",\"29.88595\",-1.3]},\"properties\":{\"tripId\":59999,\"messageId\":21916419,\"messageDateTime\":\"2021-09-28 15:14:38\",\"messageDateTimeUTC\":\"2021-09-28T20:14:38Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"46.97\",\"kph\":75.6,\"knots\":40.8,\"bearing\":289,\"nearest\":null,\"messageText\":\"5314:3802:[4]:09-28 15:14:38 (0.325)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21916419, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['65'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.20446\",\"29.83326\",1.9]},\"properties\":{\"tripId\":59999,\"messageId\":21916667,\"messageDateTime\":\"2021-09-28 15:24:39\",\"messageDateTimeUTC\":\"2021-09-28T20:24:39Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"78.96\",\"kph\":127.1,\"knots\":68.6,\"bearing\":255,\"nearest\":null,\"messageText\":\"5415:3903:[4]:09-28 15:24:39 (0.189)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21916667, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['66'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.38415\",\"29.81788\",15.7]},\"properties\":{\"tripId\":59999,\"messageId\":21916924,\"messageDateTime\":\"2021-09-28 15:34:39\",\"messageDateTimeUTC\":\"2021-09-28T20:34:39Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"49.93\",\"kph\":80.4,\"knots\":43.4,\"bearing\":262,\"nearest\":null,\"messageText\":\"5504:3992:[4]:09-28 15:34:40 (0.237)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21916924, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['67'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.37266\",\"29.65704\",2.1]},\"properties\":{\"tripId\":59999,\"messageId\":21917165,\"messageDateTime\":\"2021-09-28 15:44:40\",\"messageDateTimeUTC\":\"2021-09-28T20:44:40Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"77.88\",\"kph\":125.3,\"knots\":67.7,\"bearing\":178,\"nearest\":null,\"messageText\":\"5590:4078:[4]:09-28 15:44:41 (0.188)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21917165, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['68'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.39895\",\"29.57045\",-3.4]},\"properties\":{\"tripId\":59999,\"messageId\":21917269,\"messageDateTime\":\"2021-09-28 15:49:41\",\"messageDateTimeUTC\":\"2021-09-28T20:49:41Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"54.29\",\"kph\":87.4,\"knots\":47.2,\"bearing\":194,\"nearest\":null,\"messageText\":\"5638:4126:[4]:09-28 15:49:41 (0.324)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21917269, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['69'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.44772\",\"29.52763\",5.2]},\"properties\":{\"tripId\":59999,\"messageId\":21917381,\"messageDateTime\":\"2021-09-28 15:54:41\",\"messageDateTimeUTC\":\"2021-09-28T20:54:41Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"74.65\",\"kph\":120.1,\"knots\":64.9,\"bearing\":224,\"nearest\":null,\"messageText\":\"5679:4167:[4]:09-28 15:54:41 (0.469)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21917381, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['70'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.61738\",\"29.46562\",-3.8]},\"properties\":{\"tripId\":59999,\"messageId\":21917640,\"messageDateTime\":\"2021-09-28 16:04:42\",\"messageDateTimeUTC\":\"2021-09-28T21:04:42Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"29.20\",\"kph\":47,\"knots\":25.4,\"bearing\":247,\"nearest\":null,\"messageText\":\"5766:4254:[4]:09-28 16:04:42 (0.192)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21917640, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['71'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.72339\",\"29.40240\",-1.9]},\"properties\":{\"tripId\":59999,\"messageId\":21917868,\"messageDateTime\":\"2021-09-28 16:14:42\",\"messageDateTimeUTC\":\"2021-09-28T21:14:42Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"59.98\",\"kph\":96.5,\"knots\":52.1,\"bearing\":231,\"nearest\":null,\"messageText\":\"5826:4314:[4]:09-28 16:14:42 (0.376)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21917868, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['72'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.77874\",\"29.36300\",6.2]},\"properties\":{\"tripId\":59999,\"messageId\":21918110,\"messageDateTime\":\"2021-09-28 16:24:43\",\"messageDateTimeUTC\":\"2021-09-28T21:24:43Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":234,\"nearest\":null,\"messageText\":\"5861:4349:[4]:09-28 16:24:43 (0.183)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21918110, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['73'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.78015\",\"29.35507\",-45.7]},\"properties\":{\"tripId\":59999,\"messageId\":21918358,\"messageDateTime\":\"2021-09-28 16:34:43\",\"messageDateTimeUTC\":\"2021-09-28T21:34:43Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"9.13\",\"kph\":14.7,\"knots\":7.9,\"bearing\":186,\"nearest\":null,\"messageText\":\"5866:4354:[4]:09-28 16:34:43 (0.468)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21918358, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['74'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.77486\",\"29.33429\",10.4]},\"properties\":{\"tripId\":59999,\"messageId\":21918492,\"messageDateTime\":\"2021-09-28 16:42:02\",\"messageDateTimeUTC\":\"2021-09-28T21:42:02Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"11.15\",\"kph\":17.9,\"knots\":9.7,\"bearing\":167,\"nearest\":null,\"messageText\":\"6014:4364:[64]:09-28 16:42:02 (0.191)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21918492, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['75'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.77391\",\"29.32805\",4.5]},\"properties\":{\"tripId\":59999,\"messageId\":21918625,\"messageDateTime\":\"2021-09-28 16:47:02\",\"messageDateTimeUTC\":\"2021-09-28T21:47:02Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"0.00\",\"kph\":0,\"knots\":0,\"bearing\":172,\"nearest\":null,\"messageText\":\"6018:4368:[4]:09-28 16:47:02 (0.263)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21918625, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['76'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.80485\",\"29.29687\",-1.8]},\"properties\":{\"tripId\":59999,\"messageId\":21918859,\"messageDateTime\":\"2021-09-28 16:57:03\",\"messageDateTimeUTC\":\"2021-09-28T21:57:03Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"38.18\",\"kph\":61.4,\"knots\":33.2,\"bearing\":232,\"nearest\":null,\"messageText\":\"6049:4399:[4]:09-28 16:57:03 (0.325)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21918859, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['77'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.81177\",\"29.29505\",3.1]},\"properties\":{\"tripId\":59999,\"messageId\":21919156,\"messageDateTime\":\"2021-09-28 17:09:52\",\"messageDateTimeUTC\":\"2021-09-28T22:09:52Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"27.39\",\"kph\":44.1,\"knots\":23.8,\"bearing\":248,\"nearest\":null,\"messageText\":\"6516:4404:[4]:09-28 17:09:52 (0.180)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21919156, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['78'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-94.90047\",\"29.30283\",9.3]},\"properties\":{\"tripId\":59999,\"messageId\":21919366,\"messageDateTime\":\"2021-09-28 17:19:52\",\"messageDateTimeUTC\":\"2021-09-28T22:19:52Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"61.46\",\"kph\":98.9,\"knots\":53.4,\"bearing\":282,\"nearest\":null,\"messageText\":\"7117:4990:[4]:09-28 17:19:53 (0.199)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21919366, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['79'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.02068\",\"29.34978\",7.2]},\"properties\":{\"tripId\":59999,\"messageId\":21919582,\"messageDateTime\":\"2021-09-28 17:29:53\",\"messageDateTimeUTC\":\"2021-09-28T22:29:53Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"16.48\",\"kph\":26.5,\"knots\":14.3,\"bearing\":289,\"nearest\":null,\"messageText\":\"7718:5583:[4]:09-28 17:29:54 (0.193)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21919582, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['80'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.07897\",\"29.31548\",2.8]},\"properties\":{\"tripId\":59999,\"messageId\":21919709,\"messageDateTime\":\"2021-09-28 17:34:54\",\"messageDateTimeUTC\":\"2021-09-28T22:34:54Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"53.25\",\"kph\":85.7,\"knots\":46.3,\"bearing\":235,\"nearest\":null,\"messageText\":\"8018:5877:[4]:09-28 17:34:54 (0.210)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21919709, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['81'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.14393\",\"29.27121\",2.5]},\"properties\":{\"tripId\":59999,\"messageId\":21919806,\"messageDateTime\":\"2021-09-28 17:39:54\",\"messageDateTimeUTC\":\"2021-09-28T22:39:54Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"59.60\",\"kph\":95.9,\"knots\":51.8,\"bearing\":232,\"nearest\":null,\"messageText\":\"8318:6173:[4]:09-28 17:39:54 (0.187)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; color: #000;\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21919806, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['82'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.25374\",\"29.17422\",0.2]},\"properties\":{\"tripId\":59999,\"messageId\":21920036,\"messageDateTime\":\"2021-09-28 17:49:55\",\"messageDateTimeUTC\":\"2021-09-28T22:49:55Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"61.20\",\"kph\":98.5,\"knots\":53.2,\"bearing\":225,\"nearest\":null,\"messageText\":\"8919:6768:[4]:09-28 17:49:55 (0.180)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
<\/a>';\n\n m = new mapboxgl.Marker({ 'element': a, 'anchor': 'bottom-left' })\n .setLngLat(feature.geometry.coordinates)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n markersWithPics.push(m);\n hasPic = true;\n }\n\n if (feature.properties.messageType === 'TRACK') {\n a = document.createElement('div');\n bearing = feature.properties.bearing;\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle;\";\n a.innerHTML = '

';\n } else if (feature.properties.messageType === 'CUST') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'OK') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'HELP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '
';\n } else if (feature.properties.messageType === 'TRKRES') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else if (feature.properties.messageType === 'TRKSTP') {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; font-size: 6px; vertical-align: middle; color: \" + feature.properties.color + \";\";\n a.innerHTML = '![]()
';\n } else {\n a = document.createElement('div');\n a.style = \"color: \" + feature.properties.color + \"; background-color: #eee; padding: 2px; border: 1px solid #000; border-radius: 4px;\";\n a.innerHTML = feature.properties.icon;\n }\n\n p = new mapboxgl.Popup({ offset: 3, maxWidth: 'none', closeButton: true });\n p.on('open', function(e) { displayPopup(e.target, 59999, 21920036, 'TRACK'); });\n\n var anchor = 'center';\n var m = new mapboxgl.Marker({ 'element': a, 'rotation': bearing, 'color': feature.properties.color, 'anchor': anchor })\n .setLngLat(feature.geometry.coordinates)\n .setPopup(p)\n .addTo(map);\n bounds.extend(feature.geometry.coordinates);\n markers.push(m);\n if (hasPic) {\n picListMarkers['83'] = m;\n plHtml += '<\/div>';\n }\n }\n var feature = {\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"-95.39732\",\"29.12792\",6.4]},\"properties\":{\"tripId\":59999,\"messageId\":21920253,\"messageDateTime\":\"2021-09-28 17:59:56\",\"messageDateTimeUTC\":\"2021-09-28T22:59:56Z\",\"timezone\":\"America\\\/Chicago\",\"messageType\":\"TRACK\",\"messageTypeDescription\":\"Tracking\",\"messageSource\":\"SWConnect\",\"mph\":\"60.73\",\"kph\":97.7,\"knots\":52.8,\"bearing\":254,\"nearest\":null,\"messageText\":\"9520:7362:[4]:09-28 17:59:56 (0.170)\",\"smallPic\":null,\"largePic\":null,\"color\":\"#0f0\",\"icon\":\"<\\\/i>\",\"profileIcon\":\"fa-solid fa-arrow-alt-up fa-bounce\"}};\n\n var a = null;\n bearing = 0;\n var hasPic = false;\n if (feature.geometry.type === 'Point') {\n if (feature.properties.smallPic !== undefined && feature.properties.smallPic !== null && feature.properties.smallPic.length > 0 && feature.properties.largePic !== undefined && feature.properties.largePic !== null && feature.properties.largePic.length > 0) {\n a = document.createElement('div');\n a.style = \"display: inline-block; padding: 0; margin: 0; text-align: center; vertical-align: middle; opacity: 0.8; color: \" + feature.properties.color + \";\";\n a.innerHTML = '