forked from GeoDaCenter/webgeoda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (64 loc) · 3.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Methadone Availability Scenarios</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=yes" />
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css" rel="stylesheet">
<link href="tree.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,[email protected],200;6..12,300;6..12,400;6..12,700&family=Roboto+Slab:wght@400;500&display=swap" rel="stylesheet">
<!-- JS only -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js"></script>
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; };
</style>
</head>
<body>
<div class="panel" tabindex="0">
<h1 > Methadone Treatment Access Scenarios</h1>
<p class="text-muted"> <a class="text-secondary href="/#"> Joudrey et al, 2023 in press. </a> </p>
<p><img src="images/orange.png" height="15"><b> Current Availability </b> Within 30 minutes driving time of a methadone maintenance clinic. </p>
<p><img src="images/lt-blue.png" height="15"><b> Addition of specialist physician prescribing </b> Current access plus within 30 minutes* driving time to any Opioid Treatment Provider or not in a HRSA Mental Health Shortage Area. </p>
<p><img src="images/dk-blue.png" height="15"><b> Addition of clinician prescribing</b> Proposed access plus within 30 minutes* driving time to a Federally Qualified Health Clinic (FQHC). </p>
<p><img src="images/gray.png" height="15"><b> Still No Access Under Enhanced</b> </p>
<p><img src="images/white.png" height="15"><b> Missing Data/ Excluded</b> </p>
<p class="text-muted"> *20 minutes for urban areas </p>
<hr>
<p class="text-muted"> This web map is a regional explorer; zoom into view locations. For a national view, download a <a href="images/access_scenarios_map_web.jpg">high-resolution image</a> of the map.</p>
</div>
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.min.js"></script>
<link
rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.css"
type="text/css"
/>
<!-- Promise polyfill script required to use Mapbox GL Geocoder in IE 11 -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"></script>
<div id='map'></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiaGVyb3AtbGFiIiwiYSI6ImNsbGw0ZGI5ZDE3NWQzbW1rdGdqYnhqcWUifQ.RsuAn7wOL7ztpUiT_xBitA'; //
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/herop-lab/clmqqc7ms052g01qxh1gk6dq2',
zoom: 6,
center: [-79.9949367598334, 40.44065875400719]
});
map.addControl(
new MapboxGeocoder({
accessToken: mapboxgl.accessToken,
mapboxgl: mapboxgl
})
);
// Add zoom and rotation controls to the map.
var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'bottom-right');
</script>
</body>
</html>