Skip to content

Commit

Permalink
Use GISIDA_TIMEOUT in GisidaWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Oct 17, 2019
1 parent a37b9f4 commit b88c5fe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/GisidaWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import { FillPaint, LinePaint, Map as mbMap, Style, SymbolPaint } from 'mapbox-g
import * as React from 'react';
import { GREY } from '../../colors';
import Loading from '../../components/page/Loading/index';
import {
GISIDA_MAPBOX_TOKEN,
GISIDA_ONADATA_API_TOKEN,
SUPERSET_MAX_RECORDS,
} from '../../configs/env';
import { GISIDA_MAPBOX_TOKEN, GISIDA_ONADATA_API_TOKEN, GISIDA_TIMEOUT } from '../../configs/env';
import {
circleLayerConfig,
fillLayerConfig,
Expand Down Expand Up @@ -184,7 +180,7 @@ class GisidaWrapper extends React.Component<GisidaProps, GisidaState> {
// Dirty work around! Arbitrary delay to allow style load before adding layers
setTimeout(() => {
this.initMap(null, null);
}, SUPERSET_MAX_RECORDS);
}, GISIDA_TIMEOUT);
}
);
} else if (!this.state.locations) {
Expand Down Expand Up @@ -212,7 +208,7 @@ class GisidaWrapper extends React.Component<GisidaProps, GisidaState> {
// Dirty work around! Arbitrary delay to allow style load before adding layers
setTimeout(() => {
this.initMap(null, null);
}, SUPERSET_MAX_RECORDS);
}, GISIDA_TIMEOUT);
}
);
}
Expand Down Expand Up @@ -261,7 +257,7 @@ class GisidaWrapper extends React.Component<GisidaProps, GisidaState> {
// Dirty work around! Arbitrary delay to allow style load before adding layers
setTimeout(() => {
this.initMap(null, null);
}, SUPERSET_MAX_RECORDS);
}, GISIDA_TIMEOUT);
}
);
}
Expand Down

0 comments on commit b88c5fe

Please sign in to comment.