Skip to content

Commit

Permalink
refactor gestures
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Apr 2, 2020
1 parent 223e32e commit 9968ab0
Show file tree
Hide file tree
Showing 45 changed files with 2,261 additions and 2,870 deletions.
2 changes: 1 addition & 1 deletion bench/benchmarks/paint.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Paint extends Benchmark {
for (const map of this.maps) {
map._styleDirty = true;
map._sourcesDirty = true;
map._render();
map._render(Date.now());
}
}

Expand Down
8 changes: 6 additions & 2 deletions debug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
<style>
body { margin: 0; padding: 0; }
html, body, #map { height: 100%; }
#map { height: 80%; }
</style>
</head>

<body>
<div id='map'></div>
<div id='log'></div>

<script src='../dist/mapbox-gl-dev.js'></script>
<script src='../debug/access_token_generated.js'></script>
Expand All @@ -22,10 +24,12 @@
container: 'map',
zoom: 12.5,
center: [-77.01866, 38.888],
style: 'mapbox://styles/mapbox/streets-v10',
hash: true
style: 'mapbox://styles/mapbox/streets-v10'
});

window.onerror = (e) => document.getElementById('log').innerHTML = e;


</script>
</body>
</html>
35 changes: 35 additions & 0 deletions debug/old.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Mapbox GL JS debug page</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel='stylesheet' href='../dist/mapbox-gl.css' />
<style>
body { margin: 0; padding: 0; }
html, body, #map { height: 100%; }
#map { height: 80%; }
</style>
</head>

<body>
<div id='map'></div>
<div id='log'></div>

<script src='https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js'></script>
<script src='../debug/access_token_generated.js'></script>
<script>

var map = window.map = new mapboxgl.Map({
container: 'map',
zoom: 12.5,
center: [-77.01866, 38.888],
style: 'mapbox://styles/mapbox/streets-v10'
});

window.onerror = (e) => document.getElementById('log').innerHTML = e;


</script>
</body>
</html>
202 changes: 0 additions & 202 deletions src/ui/bind_handlers.js

This file was deleted.

Loading

0 comments on commit 9968ab0

Please sign in to comment.