removed web api code
implemented spin.js
adjusted the map scale and translation to refit it with affix enabled