Inject Ionic Native Google Maps with a custom service


#1

Hi,
I’m trying to separate de code of google maps plugin to inject it i to any component

The problem is when use the injectable service the app not starts it hangs on white screen.

Same code if it be on the same component of the view works perfectly.

The call to start loading the map with a injectable custom service is like
this.injectedService.LoadMap(document.getElementById('map)

It is called when the ondeviceready is fired.
The custom service is already defined as a provider into the page.module.ts(lazy loading) and also the googlemaps providers.

It is posible to use google maps library with injectable services?

Thanks