Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gubanov committed Jun 26, 2016
1 parent 43eb86b commit b319bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/Globals.js
Expand Up @@ -2,6 +2,7 @@
* @providesModule Globals
*/
var EventEmitter = new(require('events').EventEmitter);

module.exports = {
EMITTER: EventEmitter,
};
11 changes: 0 additions & 11 deletions src/Mapa.js
Expand Up @@ -11,7 +11,6 @@ var {
} = ReactNative;
var MapView = require('react-native-maps');
var GLOBAL = require('Globals');

var {width, height} = Dimensions.get('window');

const ASPECT_RATIO = width / height;
Expand All @@ -20,16 +19,6 @@ const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0422;
const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;

var Liner = {
getLine: function() {
return [
{latitude: 37.75825, longitude: -122.4224},
{latitude: 37.76825, longitude: -122.4524},
{latitude: 37.73825, longitude: -122.4424},
{latitude: 37.74825, longitude: -122.4724},
]
}
}

var makeChangeEventMixin = function(emitter){
return {
Expand Down
7 changes: 3 additions & 4 deletions src/index.js
Expand Up @@ -50,10 +50,9 @@ Geo.setCallback(function(track) {
Geo.storeObj(obj);
GLOBAL.EMITTER.emit('change', {
line: [
{latitude: 39.73825, longitude: -124.4424},
{latitude: 39.74825, longitude: -124.4724},
{latitude: 39.75825, longitude: -124.4224},
{latitude: 39.76825, longitude: -124.4524},
{latitude: 39.70825, longitude: -124.4424},
{latitude: 39.70825, longitude: -124.4524},
{latitude: 39.70825, longitude: -124.4724},
]
})
}
Expand Down

0 comments on commit b319bff

Please sign in to comment.