From b319bff01e6ee1820eb064e08ee49fa8d18149d3 Mon Sep 17 00:00:00 2001 From: Alexander Gubanov Date: Sun, 26 Jun 2016 12:23:02 +0300 Subject: [PATCH] move --- src/Globals.js | 1 + src/Mapa.js | 11 ----------- src/index.js | 7 +++---- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/Globals.js b/src/Globals.js index 6337396..71bab41 100644 --- a/src/Globals.js +++ b/src/Globals.js @@ -2,6 +2,7 @@ * @providesModule Globals */ var EventEmitter = new(require('events').EventEmitter); + module.exports = { EMITTER: EventEmitter, }; diff --git a/src/Mapa.js b/src/Mapa.js index c7574bf..ba5d10c 100644 --- a/src/Mapa.js +++ b/src/Mapa.js @@ -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; @@ -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 { diff --git a/src/index.js b/src/index.js index 464d007..5408305 100644 --- a/src/index.js +++ b/src/index.js @@ -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}, ] }) }