export function singleMapServiceFactory(mapServiceFactory: MapServiceFactory) 
{
   return mapServiceFactory.switchSingleMapService().subscribe((service)=>{
       return service
   })
   // return service;
}
the above code is a angular provider factory, I hope to return the 'service', but it is inside an observable, how can i do that? thanks very much