Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/OpenUpSA/wazimap-ng-ui i…
Browse files Browse the repository at this point in the history
…nto staging
  • Loading branch information
Adi Eyal committed Oct 2, 2020
2 parents be598fc + 9c16638 commit 7ea034d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/js/setup/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ export function configureMapEvents(controller, objs = {mapcontrol: null}) {
controller.on('profile.loaded', payload => {
const geography = payload.payload.profile.geography;
const geometries = payload.payload.geometries;
mapcontrol.overlayBoundaries(geography, geometries);
setTimeout(() => {
mapcontrol.overlayBoundaries(geography, geometries);
}, 0)
});

controller.on('redraw', payload => {
const geography = payload.payload.profile.geography;
const geometries = payload.payload.geometries;
mapcontrol.overlayBoundaries(geography, geometries)
setTimeout(() => {
mapcontrol.overlayBoundaries(geography, geometries);
}, 0)
});


Expand Down

0 comments on commit 7ea034d

Please sign in to comment.