-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Etienne Dldc
committed
Nov 26, 2015
1 parent
e8a65aa
commit 0778081
Showing
16 changed files
with
406 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Dtore | ||
node_modules | ||
bower_components | ||
data |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<style lang="sass" scoped> | ||
.loader { | ||
position: fixed; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
background: rgba(0, 0, 0, 0.4); | ||
color: white; | ||
font-size: 20px; | ||
z-index: 1000; | ||
text-align: center; | ||
} | ||
p{ | ||
padding-top: 200px; | ||
} | ||
</style> | ||
|
||
<template> | ||
<div class="loader"> | ||
<p>Loading...</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import $ from 'jquery'; | ||
export default { | ||
ready() { | ||
}, | ||
methods: { | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
import $ from 'jquery'; | ||
|
||
var allData = {}; | ||
|
||
export function loadData(callback) { | ||
$.getJSON( "data.json", ( theData ) => { | ||
allData = theData; | ||
callback(theData); | ||
}); | ||
} | ||
|
||
export default allData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
'use strict'; | ||
|
||
const size = 300; | ||
|
||
var Tools = { | ||
map(val, fromIn, toIn, fromOut, toOut) { | ||
let progress = (val - fromIn) / (toIn - fromIn); | ||
return fromOut + ((toOut - fromOut) * progress); | ||
}, | ||
/** | ||
* @posArray [x, z] | ||
* @return [x, z] | ||
*/ | ||
geoCoordsToCanvas(posArray) { | ||
let xRangeIn = [2.29, 2.39]; | ||
let xRangeOut = [-size/2, size/2]; | ||
let zRangeIn = [48.80, 48.90]; | ||
let zRangeOut = [-size/2, size/2]; | ||
return [ | ||
Tools.map(posArray[1], xRangeIn[0], xRangeIn[1], xRangeOut[0], xRangeOut[1]), | ||
Tools.map(posArray[0], zRangeIn[0], zRangeIn[1], zRangeOut[0], zRangeOut[1]) | ||
] | ||
}, | ||
geoDistToCanvas(dist) { | ||
return Tools.map(dist, 0, 0.1, 0, size); | ||
} | ||
} | ||
|
||
export default Tools; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.