Skip to content

Commit

Permalink
Move turf require inside GET_VECTOR_INFO reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 7, 2016
1 parent 37d6142 commit df92474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/reducers/mapInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const {RESET_CONTROLS} = require('../actions/controls');

const assign = require('object-assign');
const {head} = require('lodash');
const buffer = require('turf-buffer');
const intersect = require('turf-intersect');

function receiveResponse(state, action, type) {
const request = head((state.requests || []).filter((req) => req.reqId === action.reqId));
Expand Down Expand Up @@ -112,6 +110,8 @@ function mapInfo(state = {}, action) {
});
}
case GET_VECTOR_INFO: {
const buffer = require('turf-buffer');
const intersect = require('turf-intersect');
const point = {
"type": "Feature",
"properties": {},
Expand Down

0 comments on commit df92474

Please sign in to comment.