Skip to content

Commit c03ebfb

Browse files
committed
actually making some classes.
1 parent d0a4be2 commit c03ebfb

File tree

9 files changed

+593
-517
lines changed

9 files changed

+593
-517
lines changed

dist/cyclemaps.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@
124124
<body>
125125
<div class="links maplibregl-ctrl-top-left">
126126
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="document.getElementById('about').style.visibility = 'visible';">cyclemaps</button>
127-
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.strava.com/heatmap#${window.main.getHeatmapPoint()}/hot/ride`);">heat</button>
128-
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.openstreetmap.org/edit#map=${window.main.getOsmPoint()}`);">osm</button>
129-
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.google.com/maps/@${window.main.getGPoint()}z`);">g</button>
127+
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.strava.com/heatmap#${window.mainControl.getHeatmapPoint()}/hot/ride`);">heat</button>
128+
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.openstreetmap.org/edit#map=${window.mainControl.getOsmPoint()}`);">osm</button>
129+
<button class="maplibregl-ctrl maplibregl-ctrl-group" onclick="window.open(`https://www.google.com/maps/@${window.mainControl.getGPoint()}z`);">g</button>
130130
</div>
131131
<button id="clearLayers" class="maplibregl-ctrl maplibregl-ctrl-group picker" style="visibility: hidden;">clear</button>
132132
<nav id="layerPicker" class="picker">
@@ -162,7 +162,7 @@
162162
<ul>
163163
<li>if you notice a problem, please
164164
<a class="osm-link" href="#" onclick="
165-
window.open(`https://www.openstreetmap.org/edit#map=${window.main.getOsmPoint()}`);
165+
window.open(`https://www.openstreetmap.org/edit#map=${window.mainControl.getOsmPoint()}`);
166166
">edit osm</a></li>
167167
<li>"surface" is how we know what is unpaved</li>
168168
<li>changes to osm take two weeks to propagate</li>
@@ -194,7 +194,7 @@
194194

195195
<p>if you notice an issue that can't be fixed by
196196
<a class="osm-link" href="#" onclick="
197-
window.open(`https://www.openstreetmap.org/edit#map=${window.main.getOsmPoint()}`);
197+
window.open(`https://www.openstreetmap.org/edit#map=${window.mainControl.getOsmPoint()}`);
198198
">editing osm</a>,
199199
please <a href="https://github.com/cyclemap/openmaptiles-cycle/issues/new">file a ticket</a>. if you see a route that SHOULDN'T be a bike route, we want to hear from you: please <a href="https://github.com/cyclemap/openmaptiles-cycle/issues/new">file a ticket</a>!</p>
200200
</div></div>

src/browserImport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
//this seems terrible, someone fix javascript
33

4-
import * as main from './main.js';
4+
import { mainControl } from './main.js';
55

66
export function setupImports() {
7-
(window as any).main = main;
7+
(window as any).mainControl = mainControl;
88
}
99

1010

src/directory.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)