Class not found error
See original GitHub issueClass not found
| (anonymous) | @ | ion-dev.js?v=3.0.0:156 – | – | – | – | errorHandler | @ | BaseClass.js:116 | (anonymous) | @ | googlemaps-cdv-plugin.js:754 | t.invokeTask | @ | polyfills.js:3 | onInvokeTask | @ | core.es5.js:3881 | t.invokeTask | @ | polyfills.js:3 | r.runTask | @ | polyfills.js:3 | e.invokeTask | @ | polyfills.js:3 | i.isUsingGlobalCallback.invoke | @ | polyfills.js:3 | n | @ | polyfills.js:2 | setTimeout (async) | | | o | @ | polyfills.js:2 | t.scheduleTask | @ | polyfills.js:3 | onScheduleTask | @ | polyfills.js:3 | t.scheduleTask | @ | polyfills.js:3 | r.scheduleTask | @ | polyfills.js:3 | r.scheduleMacroTask | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:2 | o.(anonymous function) | @ | polyfills.js:2 | commandQueue.push.args | @ | googlemaps-cdv-plugin.js:753 | callbackFromNative | @ | cordova.js:295 | processMessage | @ | cordova.js:1119 | processMessages | @ | cordova.js:1142 | t.invoke | @ | polyfills.js:3 | onInvoke | @ | core.es5.js:3890 | t.invoke | @ | polyfills.js:3 | r.run | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:3 | t.invokeTask | @ | polyfills.js:3 | onInvokeTask | @ | core.es5.js:3881 | t.invokeTask | @ | polyfills.js:3 | r.runTask | @ | polyfills.js:3 | o | @ | polyfills.js:3 | Promise resolved (async) | | | r | @ | polyfills.js:3 | t.scheduleTask | @ | polyfills.js:3 | onScheduleTask | @ | polyfills.js:3 | t.scheduleTask | @ | polyfills.js:3 | r.scheduleTask | @ | polyfills.js:3 | r.scheduleMicroTask | @ | polyfills.js:3 | f | @ | polyfills.js:3 | c | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:3 | Promise resolved (async) | | | (anonymous) | @ | polyfills.js:3 | t | @ | polyfills.js:3 | t.then | @ | polyfills.js:3 | (anonymous) | @ | cordova.js:935 | androidExec | @ | cordova.js:977 | resetTimer | @ | googlemaps-cdv-plugin.js:478 | fireDocumentEvent | @ | cordova.js:235 | getMap | @ | googlemaps-cdv-plugin.js:622 | GoogleMap | @ | index.js:1349 | GoogleMaps.create | @ | index.js:370 | (anonymous) | @ | profile.ts:44 | t.invoke | @ | polyfills.js:3 | onInvoke | @ | core.es5.js:3890 | t.invoke | @ | polyfills.js:3 | r.run | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:3 | t.invokeTask | @ | polyfills.js:3 | onInvokeTask | @ | core.es5.js:3881 | t.invokeTask | @ | polyfills.js:3 | r.runTask | @ | polyfills.js:3 | o | @ | polyfills.js:3 | e.invokeTask | @ | polyfills.js:3 | p | @ | polyfills.js:2 | v | @ | polyfills.js:2 | XMLHttpRequest.send (async) | | | s | @ | polyfills.js:3 | t.scheduleTask | @ | polyfills.js:3 | onScheduleTask | @ | polyfills.js:3 | t.scheduleTask | @ | polyfills.js:3 | r.scheduleTask | @ | polyfills.js:3 | r.scheduleMacroTask | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:3 | o.(anonymous function) | @ | polyfills.js:2 | (anonymous) | @ | http.es5.js:1275 | Observable.trySubscribe | @ | Observable.js:171 | Observable.subscribe | @ | Observable.js:159 | MapOperator.call | @ | map.js:54 | Observable.subscribe | @ | Observable.js:156 | webpackJsonp.199.ProfilePage.ngOnInit | @ | profile.ts:32 | checkAndUpdateDirectiveInline | @ | core.es5.js:10856 | checkAndUpdateNodeInline | @ | core.es5.js:12357 | checkAndUpdateNode | @ | core.es5.js:12296 | debugCheckAndUpdateNode | @ | core.es5.js:13160 | debugCheckDirectivesFn | @ | core.es5.js:13101 | (anonymous) | @ | ProfilePage_Host.html:1 | debugUpdateDirectives | @ | core.es5.js:13086 | checkAndUpdateView | @ | core.es5.js:12263 | callWithDebugContext | @ | core.es5.js:13486 | debugCheckAndUpdateView | @ | core.es5.js:13026 | ViewRef.detectChanges | @ | core.es5.js:10189 | NavControllerBase._viewAttachToDOM | @ | nav-controller-base.js:589 | Tab._viewAttachToDOM | @ | tab.js:324 | NavControllerBase._transition | @ | nav-controller-base.js:681 | (anonymous) | @ | nav-controller-base.js:363 | t.invoke | @ | polyfills.js:3 | onInvoke | @ | core.es5.js:3890 | t.invoke | @ | polyfills.js:3 | r.run | @ | polyfills.js:3 | (anonymous) | @ | polyfills.js:3 | t.invokeTask | @ | polyfills.js:3 | onInvokeTask | @ | core.es5.js:3881 | t.invokeTask | @ | polyfills.js:3 | r.runTask | @ | polyfills.js:3 | o | @ | polyfills.js:3 | e.invokeTask | @ | polyfills.js:3 | p | @ | polyfills.js:2 | v
this error appears in my log. I dont know what can be this is my code: `mport { Component, OnInit } from ‘@angular/core’; import { NavController, Platform } from ‘ionic-angular’;
import { ClientsService } from ‘…/…/providers/clients.service’;
import { GoogleMaps, GoogleMap, GoogleMapsEvent, GoogleMapOptions, CameraPosition, MarkerOptions, Marker } from ‘@ionic-native/google-maps’;
@Component({ selector: ‘page-profile’, templateUrl: ‘profile.html’ }) export class ProfilePage implements OnInit { client: any; map: GoogleMap; mapElement: HTMLElement; constructor(private googleMaps: GoogleMaps, public platform: Platform, public clientsService: ClientsService) {
platform.ready().then(() => {
this.loadMap1();
});
}
ngOnInit() { this.clientsService.getProfile().subscribe((data: any) => { this.client = data; //this.loadMap1(); }) }
loadMap1() { this.mapElement = document.getElementById(‘map’);
let mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 43.0741904,
lng: -89.3809802
},
zoom: 18,
tilt: 30
}
};
this.map = this.googleMaps.create(this.mapElement, mapOptions);
// Wait the MAP_READY before using any methods.
this.map.one(GoogleMapsEvent.MAP_READY)
.then(() => {
console.log('Map is ready!');
// Now you can use all methods safely.
this.map.addMarker({
title: 'Ionic',
icon: 'blue',
animation: 'DROP',
position: {
lat: 43.0741904,
lng: -89.3809802
}
})
.then(marker => {
marker.on(GoogleMapsEvent.MARKER_CLICK)
.subscribe(() => {
alert('clicked');
});
});
});
}
} `
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (7 by maintainers)
Top GitHub Comments
Sure i will donate when i free at night.Thanks for all your help
If you want to use the
livereload
, insertingsetTimeout
is better like this. Because the platform.ready() delays sometime.By the way, I appreciate if you support for this project.
This is $5 donation link at paypal When you donate some amount to the project, please include your issue number in your name.