Fix scope and mapCanvas errors in MapsService.js