Rewrites map code without using angular-google-maps.