mapService.getLayers fix