fixes bug with build
Fixes bug with centering map.

Now centers on canvas