|
26 | 26 | user-select: none; |
27 | 27 | } |
28 | 28 | .about { |
| 29 | + display: none; |
29 | 30 | z-index: 2; |
30 | 31 | width: 100%; |
31 | 32 | height: 100%; |
32 | 33 | position: absolute; |
33 | | - visibility: hidden; |
34 | 34 | backdrop-filter: blur(3px); |
35 | 35 | } |
36 | 36 | .border { |
|
92 | 92 | vertical-align: middle; |
93 | 93 | transform: scale(.75); |
94 | 94 | } |
95 | | - .picker { |
96 | | - font-size: 10px; |
97 | | - } |
98 | | - .picker button { |
99 | | - font-size: 10px; |
| 95 | + @media (orientation: portrait) { |
| 96 | + .pickerHolder { |
| 97 | + flex-direction: column; |
| 98 | + } |
| 99 | + .pickerHolder nav { |
| 100 | + flex-direction: row; |
| 101 | + } |
| 102 | + } |
| 103 | + @media (orientation: landscape) { |
| 104 | + .pickerHolder { |
| 105 | + flex-direction: row; |
| 106 | + } |
| 107 | + .pickerHolder nav { |
| 108 | + flex-direction: column; |
| 109 | + } |
| 110 | + } |
| 111 | + .pickerHolder { |
| 112 | + display: inline-flex; |
| 113 | + padding-top: .5rem; |
| 114 | + padding-left: .5rem; |
| 115 | + } |
| 116 | + .pickerHolder nav { |
| 117 | + display: inline-flex; |
| 118 | + } |
| 119 | + .pickerHolder button { |
| 120 | + margin: .3rem !important; |
| 121 | + padding: 0; |
| 122 | + width: 5.5rem; |
| 123 | + height: 1.8rem; |
| 124 | + font-size: .8rem; |
| 125 | + font-weight: 700; |
100 | 126 | } |
101 | | - .picker button.active { |
| 127 | + .pickerHolder button.active { |
102 | 128 | background-color: #48b; |
103 | 129 | color: #fff; |
104 | 130 | } |
105 | 131 | .rainLegend { |
106 | | - visibility: hidden; |
| 132 | + display: none; |
107 | 133 | padding: 5px; |
108 | 134 | } |
109 | 135 | .guage { |
|
112 | 138 | </style> |
113 | 139 | </head> |
114 | 140 | <body> |
115 | | - <div class="links maplibregl-ctrl-top-left"> |
116 | | - <button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="document.getElementById('about').style.visibility = 'visible';">cyclemaps</button> |
117 | | - <button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.strava.com/heatmap#${window.mainControl.getHeatmapPoint()}/hot/ride`);">heat</button> |
118 | | - <button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.openstreetmap.org/edit#map=${window.mainControl.getOsmPoint()}`);">osm</button> |
119 | | - <button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.google.com/maps/@${window.mainControl.getGPoint()}z`);">g</button> |
120 | | - </div> |
121 | | - <button id="clearLayers" class="maplibregl-ctrl maplibregl-ctrl-group picker" style="visibility: hidden;">clear</button> |
122 | | - <nav id="layerPicker" class="picker"> |
| 141 | + <nav id="picker" class="pickerHolder"> |
123 | 142 | </nav> |
124 | 143 | <div id="map" class="map"> |
125 | 144 | </div> |
|
143 | 162 | <div class="legendItem"><div class="icon" style="background-position: -204px -112px;"></div> water</div> |
144 | 163 | </div> |
145 | 164 | </div> |
146 | | - <div id="about" class="about"><div class="border"> |
147 | | - <p><a href="#" onclick=" |
148 | | - document.getElementById('about').style.visibility = 'hidden'; |
149 | | - ">⇐</a></p> |
| 165 | + <div id="about" class="about" onClick="document.getElementById('about').style.display = 'none';"><div class="border"> |
150 | 166 | <ul> |
151 | 167 | <li>if you notice a problem, please |
152 | 168 | <a class="osm-link" href="#" onclick=" |
|
159 | 175 | <p>thanks to the many projects that this site depends on.</p> |
160 | 176 |
|
161 | 177 | <ul> |
162 | | - <li><a href="https://www.openstreetmap.org/copyright">openstreetmap contributors</a></li> |
163 | | - <li><a href="https://github.com/cyclemap/cyclemaps">github pages</a></li> |
164 | | - <li><a href="https://openmaptiles.org/">openmaptiles</a> (<a href="https://github.com/cyclemap/openmaptiles-cycle/">our edits</a>)</li> |
165 | | - <li><a href="https://github.com/openmaptiles/maptiler-basic-gl-style">maptiler styles</a> (<a href="https://github.com/cyclemap/openmaptiles-cycle/">our edits</a>)</li> |
166 | | - <li><a href="https://github.com/maptiler/tileserver-gl/">maptiler tile server</a></li> |
167 | | - <li><a href="https://www.postgresql.org/">postgresql</a> & <a href="https://postgis.net/">postgis</a></li> |
168 | | - <li><a href="https://www.wikidata.org/">wikidata</a></li> |
169 | | - <li><a href="https://openrouteservice.org/">openrouteservice</a></li> |
170 | | - <li><a href="https://openaddresses.io/">openaddresses</a></li> |
171 | | - <li><a href="https://www.geonames.org/">geonames</a></li> |
172 | | - <li><a href="https://www.whosonfirst.org/">who's on first</a></li> |
| 178 | + <li><a href="https://www.openstreetmap.org/copyright" target="_blank">openstreetmap contributors</a></li> |
| 179 | + <li><a href="https://github.com/cyclemap/cyclemaps" target="_blank">github pages</a></li> |
| 180 | + <li><a href="https://openmaptiles.org/" target="_blank">openmaptiles</a> (<a href="https://github.com/cyclemap/openmaptiles-cycle/" target="_blank">our edits</a>)</li> |
| 181 | + <li><a href="https://github.com/openmaptiles/maptiler-basic-gl-style" target="_blank">maptiler styles</a> (<a href="https://github.com/cyclemap/openmaptiles-cycle/" target="_blank">our edits</a>)</li> |
| 182 | + <li><a href="https://github.com/maptiler/tileserver-gl/" target="_blank">maptiler tile server</a></li> |
| 183 | + <li><a href="https://www.postgresql.org/" target="_blank">postgresql</a> & <a href="https://postgis.net/" target="_blank">postgis</a></li> |
| 184 | + <li><a href="https://www.wikidata.org/" target="_blank">wikidata</a></li> |
| 185 | + <li><a href="https://openrouteservice.org/" target="_blank">openrouteservice</a></li> |
| 186 | + <li><a href="https://openaddresses.io/" target="_blank">openaddresses</a></li> |
| 187 | + <li><a href="https://www.geonames.org/" target="_blank">geonames</a></li> |
| 188 | + <li><a href="https://www.whosonfirst.org/" target="_blank">who's on first</a></li> |
173 | 189 | <!-- openmaptiles-tools --> |
174 | | - <li><a href="https://www.naturalearthdata.com/">natural earth</a></li> |
175 | | - <li><a href="https://github.com/pnorman/osmborder">osmborder</a></li> |
176 | | - <li><a href="https://omniscale.com/">omniscale</a></li> |
177 | | - <li><a href="https://github.com/maplibre/maplibre-gl-js">maplibre</a></li> |
178 | | - <li><a href="https://water.weather.gov/precip/about.php">national weather service advanced hydrologic prediction service</a></li> |
179 | | - <li><a href="https://maputnik.github.io/">maputnik</a></li> |
180 | | - <li><a href="https://www.docker.com/">docker</a> / <a href="https://ubuntu.com/">ubuntu</a> / <a href="https://www.gnu.org/">gnu</a> / <a href="https://www.kernel.org/">linux</a></li> |
| 190 | + <li><a href="https://www.naturalearthdata.com/" target="_blank">natural earth</a></li> |
| 191 | + <li><a href="https://github.com/pnorman/osmborder" target="_blank">osmborder</a></li> |
| 192 | + <li><a href="https://omniscale.com/" target="_blank">omniscale</a></li> |
| 193 | + <li><a href="https://github.com/maplibre/maplibre-gl-js" target="_blank">maplibre</a></li> |
| 194 | + <li><a href="https://water.weather.gov/precip/about.php" target="_blank">national weather service advanced hydrologic prediction service</a></li> |
| 195 | + <li><a href="https://maputnik.github.io/" target="_blank">maputnik</a></li> |
| 196 | + <li><a href="https://www.docker.com/" target="_blank">docker</a> / <a href="https://ubuntu.com/" target="_blank">ubuntu</a> / <a href="https://www.gnu.org/" target="_blank">gnu</a> / <a href="https://www.kernel.org/" target="_blank">linux</a></li> |
181 | 197 | </ul> |
182 | 198 |
|
183 | 199 | <p>if you notice an issue that can't be fixed by |
|
0 commit comments