Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Nov 18, 2016
1 parent 05cc60c commit 2f5f492
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debug/dark-v9.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var dark = {
window.darkv9 = {
"version": 8,
"name": "Mapbox Dark",
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion debug/light-v9.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var light = {
window.lightv9 = {
"version": 8,
"name": "Mapbox Light",
"metadata": {
Expand Down
6 changes: 5 additions & 1 deletion debug/setstyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<script src='/debug/dark-v9.js'></script>
<script src='/debug/light-v9.js'></script>
<script>
// these are set in dark-v9.js and light-v9.js
var dark = window.darkv9;
var light = window.lightv9;

var style = dark;
var map = window.map = new mapboxgl.Map({
container: 'map',
Expand All @@ -29,7 +33,7 @@
});

setInterval(function () {
style = (style == dark ? light : dark);
style = (style === dark ? light : dark);
map.setStyle(style);
}, 2000);

Expand Down

0 comments on commit 2f5f492

Please sign in to comment.