D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
cfbanalysis
Full window
Github gist
problem
Built with
blockbuilder.org
<!DOCTYPE html> <html> <head> <title>Simple Leaflet Map</title> <meta charset="utf-8" /> <link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> </head> <body> <div id="map" style="width: 600px; height: 400px"></div> <script src="https://cdn.leafletjs.com/leaflet-0.7/leaflet.js"> </script> <script> var AirForce = new L.LayerGroup(); L.polyline([ [38.99690743, -104.843688], [40.9183122, -73.12404513] ] ).addTo(AirForce); L.polyline([ [26.37545356, -80.10168314], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [41.75153189, -111.8121057], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [38.99690743, -104.843688], [39.54692485, -119.8175597] ] ).addTo(AirForce); L.polyline([ [38.99690743, -104.843688], [38.98483264, -76.50711536] ] ).addTo(AirForce); L.polyline([ [32.78305326, -117.1196008], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [36.08597388, -115.0171137], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [38.99690743, -104.843688], [43.60270805, -116.1959124] ] ).addTo(AirForce); L.polyline([ [41.38708043, -73.96408081], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [38.99690743, -104.843688], [35.06761048, -106.6281028] ] ).addTo(AirForce); L.polyline([ [41.31193599, -105.5690646], [38.99690743, -104.843688] ] ).addTo(AirForce); L.polyline([ [38.99690743, -104.843688], [40.56174245, -105.1398437] ] ).addTo(AirForce); var Akron = new L.LayerGroup(); L.polyline([ [40.82048352, -96.70571566], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [41.07256952, -81.50838375], [39.27796536, -76.62269443] ] ).addTo(Akron); L.polyline([ [42.06539967, -87.69249558], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [42.01400541, -93.63580942], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [41.07256952, -81.50838375], [39.51942113, -84.7333545] ] ).addTo(Akron); L.polyline([ [42.99906838, -78.77751946], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [41.13908683, -81.31343946], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [41.07256952, -81.50838375], [43.57761228, -84.77082968] ] ).addTo(Akron); L.polyline([ [41.07256952, -81.50838375], [41.934014, -88.778222] ] ).addTo(Akron); L.polyline([ [42.25576071, -83.64775658], [41.07256952, -81.50838375] ] ).addTo(Akron); L.polyline([ [41.07256952, -81.50838375], [41.3780544, -83.62248212] ] ).addTo(Akron); L.polyline([ [39.32130908, -82.10343945], [41.07256952, -81.50838375] ] ).addTo(Akron); var Bama = new L.LayerGroup(); L.polyline([ [38.20542169, -85.75810562], [33.20748994, -87.55039215] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [35.8489901, -90.66769494] ] ).addTo(Bama); L.polyline([ [34.3621543, -89.53414626], [33.20748994, -87.55039215] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [30.61009758, -96.34072923] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [30.2157961, -92.01626414] ] ).addTo(Bama); L.polyline([ [36.06785079, -94.17879581], [33.20748994, -87.55039215] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [38.9358953, -92.33311415] ] ).addTo(Bama); L.polyline([ [35.95473437, -83.92533302], [33.20748994, -87.55039215] ] ).addTo(Bama); L.polyline([ [30.4120124, -91.18381977], [33.20748994, -87.55039215] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [33.4562306, -88.79342437] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [32.793950, -79.955829] ] ).addTo(Bama); L.polyline([ [33.20748994, -87.55039215], [32.60236167, -85.48891068] ] ).addTo(Bama); var AppState = new L.LayerGroup(); L.polyline([ [40.81215273, -77.85620213], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [35.31028068, -80.74049377], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [31.32897843, -89.33133066] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [35.24566866, -81.6737428] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [30.67423899, -88.07563305] ] ).addTo(AppState); L.polyline([ [35.8489901, -90.66769494], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [30.2157961, -92.01626414] ] ).addTo(AppState); L.polyline([ [32.41221168, -81.7831707], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [33.79283818, -79.01702283], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [29.89134455, -97.92531181], [36.2115153, -81.68550611] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [33.75761738, -84.40106034] ] ).addTo(AppState); L.polyline([ [36.2115153, -81.68550611], [31.79952742, -85.95217692] ] ).addTo(AppState); var Arizona = new L.LayerGroup(); L.polyline([ [32.22834023, -110.9490395], [40.257488, -111.654439] ] ).addTo(Arizona); L.polyline([ [29.72176796, -95.34909841], [32.22834023, -110.9490395] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [37.67566875, -113.0774903] ] ).addTo(Arizona); L.polyline([ [44.55947684, -123.2814074], [32.22834023, -110.9490395] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [34.014204, -118.287757] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [37.8706866, -122.2507095] ] ).addTo(Arizona); L.polyline([ [40.75994782, -111.848824], [32.22834023, -110.9490395] ] ).addTo(Arizona); L.polyline([ [34.16156959, -118.1676149], [32.22834023, -110.9490395] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [44.05827272, -123.0685043] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [40.00939837, -105.2668869] ] ).addTo(Arizona); L.polyline([ [46.73196798, -117.1605858], [32.22834023, -110.9490395] ] ).addTo(Arizona); L.polyline([ [32.22834023, -110.9490395], [33.426364, -111.932616] ] ).addTo(Arizona); var ASU = new L.LayerGroup(); L.polyline([ [33.426364, -111.932616], [29.41693713, -98.47890258] ] ).addTo(ASU); L.polyline([ [33.426364, -111.932616], [42.72816912, -84.48487535] ] ).addTo(ASU); L.polyline([ [32.78305326, -117.1196008], [33.426364, -111.932616] ] ).addTo(ASU); L.polyline([ [47.65043054, -122.3029198], [33.426364, -111.932616] ] ).addTo(ASU); L.polyline([ [33.426364, -111.932616], [44.55947684, -123.2814074] ] ).addTo(ASU); L.polyline([ [40.00939837, -105.2668869], [33.426364, -111.932616] ] ).addTo(ASU); L.polyline([ [33.426364, -111.932616], [37.43472641, -122.1610165] ] ).addTo(ASU); L.polyline([ [34.014204, -118.287757], [33.426364, -111.932616] ] ).addTo(ASU); L.polyline([ [33.426364, -111.932616], [40.75994782, -111.848824] ] ).addTo(ASU); L.polyline([ [33.426364, -111.932616], [34.16156959, -118.1676149] ] ).addTo(ASU); L.polyline([ [44.05827272, -123.0685043], [33.426364, -111.932616] ] ).addTo(ASU); L.polyline([ [32.22834023, -110.9490395], [33.426364, -111.932616] ] ).addTo(ASU); var Arkansas = new L.LayerGroup(); L.polyline([ [36.06785079, -94.17879581], [39.48059302, -88.18116188] ] ).addTo(Arkansas); L.polyline([ [40.56174245, -105.1398437], [36.06785079, -94.17879581] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [33.20393508, -97.15922356] ] ).addTo(Arkansas); L.polyline([ [32.60236167, -85.48891068], [36.06785079, -94.17879581] ] ).addTo(Arkansas); L.polyline([ [30.61009758, -96.34072923], [36.06785079, -94.17879581] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [33.20748994, -87.55039215] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [34.3621543, -89.53414626] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [36.14886068, -95.94360352] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [36.1435585, -86.80877209] ] ).addTo(Arkansas); L.polyline([ [36.06785079, -94.17879581], [30.4120124, -91.18381977] ] ).addTo(Arkansas); L.polyline([ [33.4562306, -88.79342437], [36.06785079, -94.17879581] ] ).addTo(Arkansas); L.polyline([ [38.9358953, -92.33311415], [36.06785079, -94.17879581] ] ).addTo(Arkansas); var ArkSt = new L.LayerGroup(); L.polyline([ [35.8489901, -90.66769494], [37.30919328, -89.53147173] ] ).addTo(ArkSt); L.polyline([ [33.20748994, -87.55039215], [35.8489901, -90.66769494] ] ).addTo(ArkSt); L.polyline([ [36.14886068, -95.94360352], [35.8489901, -90.66769494] ] ).addTo(ArkSt); L.polyline([ [35.8489901, -90.66769494], [36.08597388, -115.0171137] ] ).addTo(ArkSt); L.polyline([ [32.41221168, -81.7831707], [35.8489901, -90.66769494] ] ).addTo(ArkSt); L.polyline([ [35.8489901, -90.66769494], [36.2115153, -81.68550611] ] ).addTo(ArkSt); L.polyline([ [35.8489901, -90.66769494], [33.75761738, -84.40106034] ] ).addTo(ArkSt); L.polyline([ [30.2157961, -92.01626414], [35.8489901, -90.66769494] ] ).addTo(ArkSt); L.polyline([ [35.8489901, -90.66769494], [30.67423899, -88.07563305] ] ).addTo(ArkSt); L.polyline([ [33.79283818, -79.01702283], [35.8489901, -90.66769494] ] ).addTo(ArkSt); L.polyline([ [35.8489901, -90.66769494], [32.53106869, -92.06644075] ] ).addTo(ArkSt); L.polyline([ [29.89134455, -97.92531181], [35.8489901, -90.66769494] ] ).addTo(ArkSt); var Army = new L.LayerGroup(); L.polyline([ [35.99531665, -78.9417243], [41.38708043, -73.96408081] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [37.354414, -79.175047] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [21.37278299, -157.9299688] ] ).addTo(Army); L.polyline([ [35.20589959, -97.44255066], [41.38708043, -73.96408081] ] ).addTo(Army); L.polyline([ [42.99906838, -78.77751946], [41.38708043, -73.96408081] ] ).addTo(Army); L.polyline([ [37.32010519, -121.8681161], [41.38708043, -73.96408081] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [39.51942113, -84.7333545] ] ).addTo(Army); L.polyline([ [42.25576071, -83.64775658], [41.38708043, -73.96408081] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [38.99690743, -104.843688] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [40.70072657, -75.21024133] ] ).addTo(Army); L.polyline([ [41.38708043, -73.96408081], [42.81652725, -75.54581165] ] ).addTo(Army); L.polyline([ [38.98483264, -76.50711536], [41.38708043, -73.96408081] ] ).addTo(Army); var ILikeDrivingInMyTruck = new L.LayerGroup(); L.polyline([ [47.65043054, -122.3029198], [32.60236167, -85.48891068] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [32.38068597, -86.31141569] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [30.4120124, -91.18381977] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [36.06785079, -94.17879581] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [31.32897843, -89.33133066] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [33.4562306, -88.79342437], [32.60236167, -85.48891068] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [35.95473437, -83.92533302] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [34.3621543, -89.53414626], [32.60236167, -85.48891068] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [30.61009758, -96.34072923] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [33.94982149, -83.3734417], [32.60236167, -85.48891068] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [32.60236167, -85.48891068], [37.354414, -79.175047] ] ).addTo(ILikeDrivingInMyTruck); L.polyline([ [33.20748994, -87.55039215], [32.60236167, -85.48891068] ] ).addTo(ILikeDrivingInMyTruck); var BallState = new L.LayerGroup(); L.polyline([ [40.21602764, -85.41769962], [41.69513675, -72.76143216] ] ).addTo(BallState); L.polyline([ [41.69842312, -86.23382449], [40.21602764, -85.41769962] ] ).addTo(BallState); L.polyline([ [39.18090913, -86.52557373], [40.21602764, -85.41769962] ] ).addTo(BallState); L.polyline([ [40.21602764, -85.41769962], [36.98487663, -86.45901397] ] ).addTo(BallState); L.polyline([ [40.21602764, -85.41769962], [41.13908683, -81.31343946] ] ).addTo(BallState); L.polyline([ [40.21602764, -85.41769962], [41.934014, -88.778222] ] ).addTo(BallState); L.polyline([ [43.57761228, -84.77082968], [40.21602764, -85.41769962] ] ).addTo(BallState); L.polyline([ [40.21602764, -85.41769962], [42.25576071, -83.64775658] ] ).addTo(BallState); L.polyline([ [39.32130908, -82.10343945], [40.21602764, -85.41769962] ] ).addTo(BallState); L.polyline([ [41.65739078, -83.61401719], [40.21602764, -85.41769962] ] ).addTo(BallState); L.polyline([ [40.21602764, -85.41769962], [42.28575549, -85.60100421] ] ).addTo(BallState); L.polyline([ [39.51942113, -84.7333545], [40.21602764, -85.41769962] ] ).addTo(BallState); var Baylor = new L.LayerGroup(); L.polyline([ [31.55866264, -97.11560011], [32.43380201, -99.69736576] ] ).addTo(Baylor); L.polyline([ [29.41693713, -98.47890258], [31.55866264, -97.11560011] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [35.99531665, -78.9417243] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [38.96294599, -95.246315] ] ).addTo(Baylor); L.polyline([ [35.20589959, -97.44255066], [31.55866264, -97.11560011] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [39.20186362, -96.59379244] ] ).addTo(Baylor); L.polyline([ [30.2836034, -97.73233652], [31.55866264, -97.11560011] ] ).addTo(Baylor); L.polyline([ [39.65221992, -79.9551753], [31.55866264, -97.11560011] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [36.12570866, -97.06650496] ] ).addTo(Baylor); L.polyline([ [42.01400541, -93.63580942], [31.55866264, -97.11560011] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [32.70991597, -97.36799598] ] ).addTo(Baylor); L.polyline([ [31.55866264, -97.11560011], [33.5910283, -101.8729377] ] ).addTo(Baylor); var BoiseState = new L.LayerGroup(); L.polyline([ [31.79952742, -85.95217692], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [41.75988428, -72.61894226] ] ).addTo(BoiseState); L.polyline([ [36.12570866, -97.06650496], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [41.31193599, -105.5690646], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [32.78305326, -117.1196008] ] ).addTo(BoiseState); L.polyline([ [39.54692485, -119.8175597], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [40.56174245, -105.1398437] ] ).addTo(BoiseState); L.polyline([ [38.99690743, -104.843688], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [40.257488, -111.654439] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [36.8143197, -119.7581016] ] ).addTo(BoiseState); L.polyline([ [35.06761048, -106.6281028], [43.60270805, -116.1959124] ] ).addTo(BoiseState); L.polyline([ [43.60270805, -116.1959124], [41.75153189, -111.8121057] ] ).addTo(BoiseState); var BostonCollege = new L.LayerGroup(); L.polyline([ [42.33510835, -71.16647243], [38.99120275, -76.94731173] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [42.24100469, -71.81140423] ] ).addTo(BostonCollege); L.polyline([ [36.09183481, -80.25534153], [42.33510835, -71.16647243] ] ).addTo(BostonCollege); L.polyline([ [40.434323, -86.918485], [42.33510835, -71.16647243] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [39.9007489, -75.16749144] ] ).addTo(BostonCollege); L.polyline([ [35.80075968, -78.71948719], [42.33510835, -71.16647243] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [38.20542169, -85.75810562] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [25.95793374, -80.23884058] ] ).addTo(BostonCollege); L.polyline([ [37.21997428, -80.41805506], [42.33510835, -71.16647243] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [34.67874666, -82.8431797] ] ).addTo(BostonCollege); L.polyline([ [30.43754758, -84.30453398], [42.33510835, -71.16647243] ] ).addTo(BostonCollege); L.polyline([ [42.33510835, -71.16647243], [43.03613282, -76.13651991] ] ).addTo(BostonCollege); var BGSU = new L.LayerGroup(); L.polyline([ [44.05827272, -123.0685043], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [38.42486536, -82.42185831] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [37.73447587, -84.2980957] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [39.51942113, -84.7333545] ] ).addTo(BGSU); L.polyline([ [33.77255692, -84.39285278], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.65739078, -83.61401719], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [42.28575549, -85.60100421] ] ).addTo(BGSU); L.polyline([ [39.32130908, -82.10343945], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [41.13908683, -81.31343946] ] ).addTo(BGSU); L.polyline([ [43.57761228, -84.77082968], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.07256952, -81.50838375], [41.3780544, -83.62248212] ] ).addTo(BGSU); L.polyline([ [41.3780544, -83.62248212], [42.99906838, -78.77751946] ] ).addTo(BGSU); var Buffalo= new L.LayerGroup(); L.polyline([ [42.99906838, -78.77751946], [39.18882601, -75.54349422] ] ).addTo(Buffalo); L.polyline([ [39.9007489, -75.16749144], [42.99906838, -78.77751946] ] ).addTo(Buffalo); L.polyline([ [42.99906838, -78.77751946], [42.25576071, -83.64775658] ] ).addTo(Buffalo); L.polyline([ [40.51378289, -74.46504457], [42.99906838, -78.77751946] ] ).addTo(Buffalo); L.polyline([ [42.99906838, -78.77751946], [41.38708043, -73.96408081] ] ).addTo(Buffalo); L.polyline([ [43.57761228, -84.77082968], [42.99906838, -78.77751946] ] ).addTo(Buffalo); L.polyline([ [42.99906838, -78.77751946], [41.07256952, -81.50838375] ] ).addTo(Buffalo); L.polyline([ [41.65739078, -83.61401719], [42.99906838, -78.77751946] ] ).addTo(Buffalo); L.polyline([ [42.99906838, -78.77751946], [39.51942113, -84.7333545] ] ).addTo(Buffalo); L.polyline([ [42.99906838, -78.77751946], [41.13908683, -81.31343946] ] ).addTo(Buffalo); L.polyline([ [39.32130908, -82.10343945], [42.99906838, -78.77751946] ] ).addTo(Buffalo); L.polyline([ [41.3780544, -83.62248212], [42.99906838, -78.77751946] ] ).addTo(Buffalo); var BYU = new L.LayerGroup(); L.polyline([ [32.22834023, -110.9490395], [40.257488, -111.654439] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [37.8706866, -122.2507095] ] ).addTo(BYU); L.polyline([ [43.06993803, -89.41274643], [40.257488, -111.654439] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [30.17369328, -93.210746] ] ).addTo(BYU); L.polyline([ [47.65043054, -122.3029198], [40.257488, -111.654439] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [41.75153189, -111.8121057] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [21.37278299, -157.9299688] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [41.934014, -88.778222] ] ).addTo(BYU); L.polyline([ [43.60270805, -116.1959124], [40.257488, -111.654439] ] ).addTo(BYU); L.polyline([ [38.99120275, -76.94731173], [40.257488, -111.654439] ] ).addTo(BYU); L.polyline([ [40.257488, -111.654439], [32.27974938, -106.7411363] ] ).addTo(BYU); L.polyline([ [40.75994782, -111.848824], [40.257488, -111.654439] ] ).addTo(BYU); var Cal = new L.LayerGroup(); L.polyline([ [37.8706866, -122.2507095], [35.90698835, -79.04791832] ] ).addTo(Cal); L.polyline([ [40.257488, -111.654439], [37.8706866, -122.2507095] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [42.87003557, -112.4285245] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [44.05827272, -123.0685043] ] ).addTo(Cal); L.polyline([ [32.22834023, -110.9490395], [37.8706866, -122.2507095] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [34.16156959, -118.1676149] ] ).addTo(Cal); L.polyline([ [44.55947684, -123.2814074], [37.8706866, -122.2507095] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [47.65043054, -122.3029198] ] ).addTo(Cal); L.polyline([ [46.73196798, -117.1605858], [37.8706866, -122.2507095] ] ).addTo(Cal); L.polyline([ [34.014204, -118.287757], [37.8706866, -122.2507095] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [37.43472641, -122.1610165] ] ).addTo(Cal); L.polyline([ [37.8706866, -122.2507095], [40.00939837, -105.2668869] ] ).addTo(Cal); var CMich = new L.LayerGroup(); L.polyline([ [38.02262168, -84.50520515], [43.57761228, -84.77082968] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [38.96294599, -95.246315] ] ).addTo(CMich); L.polyline([ [41.934014, -88.778222], [43.57761228, -84.77082968] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [44.90446613, -68.67355056] ] ).addTo(CMich); L.polyline([ [42.72816912, -84.48487535], [43.57761228, -84.77082968] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [42.99906838, -78.77751946] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [40.21602764, -85.41769962] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [42.28575549, -85.60100421] ] ).addTo(CMich); L.polyline([ [41.07256952, -81.50838375], [43.57761228, -84.77082968] ] ).addTo(CMich); L.polyline([ [42.25576071, -83.64775658], [43.57761228, -84.77082968] ] ).addTo(CMich); L.polyline([ [43.57761228, -84.77082968], [41.3780544, -83.62248212] ] ).addTo(CMich); L.polyline([ [41.65739078, -83.61401719], [43.57761228, -84.77082968] ] ).addTo(CMich); var Charlotte = new L.LayerGroup(); L.polyline([ [35.31028068, -80.74049377], [40.86118054, -73.88327122] ] ).addTo(Charlotte); L.polyline([ [35.31028068, -80.74049377], [36.2115153, -81.68550611] ] ).addTo(Charlotte); L.polyline([ [35.31028068, -80.74049377], [36.88878132, -76.3056761] ] ).addTo(Charlotte); L.polyline([ [38.99120275, -76.94731173], [35.31028068, -80.74049377] ] ).addTo(Charlotte); L.polyline([ [33.511606, -86.842505], [35.31028068, -80.74049377] ] ).addTo(Charlotte); L.polyline([ [35.31028068, -80.74049377], [36.98487663, -86.45901397] ] ).addTo(Charlotte); L.polyline([ [35.85110908, -86.36844993], [35.31028068, -80.74049377] ] ).addTo(Charlotte); L.polyline([ [35.31028068, -80.74049377], [31.32897843, -89.33133066] ] ).addTo(Charlotte); L.polyline([ [35.95473437, -83.92533302], [35.31028068, -80.74049377] ] ).addTo(Charlotte); L.polyline([ [41.71892738, -73.93262386], [35.31028068, -80.74049377] ] ).addTo(Charlotte); L.polyline([ [35.31028068, -80.74049377], [25.75249279, -80.37786484] ] ).addTo(Charlotte); L.polyline([ [26.37545356, -80.10168314], [35.31028068, -80.74049377] ] ).addTo(Charlotte); var Cinci = new L.LayerGroup(); L.polyline([ [34.16156959, -118.1676149], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [39.51942113, -84.7333545], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [34.78321453, -86.57930374] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [39.32130908, -82.10343945] ] ).addTo(Cinci); L.polyline([ [41.75988428, -72.61894226], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [29.94589811, -90.11519112] ] ).addTo(Cinci); L.polyline([ [39.9007489, -75.16749144], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [32.83771581, -96.78270578], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [38.98483264, -76.50711536] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [27.97599447, -82.50334918] ] ).addTo(Cinci); L.polyline([ [28.60795886, -81.19299889], [39.13128425, -84.51626144] ] ).addTo(Cinci); L.polyline([ [39.13128425, -84.51626144], [35.5964258, -77.36522913] ] ).addTo(Cinci); var osmLink = '<a href="https://openstreetmap.org">OpenStreetMap</a>', thunLink = '<a href="https://thunderforest.com/">Thunderforest</a>'; var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', osmAttrib = '© ' + osmLink + ' Contributors'; var osmMap = L.tileLayer(osmUrl, {attribution: osmAttrib}); var map = L.map('map', { layers: [osmMap] // only add one! }) .setView([38.99690743, -104.843688], 4); var baseLayers = { "OSM Mapnik": osmMap, }; var overlays = { "Air Force": AirForce, "Akron": Akron, "Alabama": Bama, "App State": AppState, "Arizona": Arizona, "Arizona State": ASU, "Arkansas": Arkansas, "Arkansas State": ArkSt, "Army": Army, "Auburn Sucks": ILikeDrivingInMyTruck, "Ball State": BallState, "Baylor": Baylor, "Boise State": BoiseState, "Boston College": BostonCollege, "Bowling Green": BGSU, "Buffalo": Buffalo, "BYU": BYU, "California": Cal, "Central Michigan": CMich, "Charlotte": Charlotte, "Cincinnati": Cinci }; L.control.layers(baseLayers,overlays).addTo(map); </script> </body> </html>