B4J Question [Resolved] CameraPosition ERROR

ivanomonti

Expert
Licensed User
Longtime User
continuous, this, without rewritten, rewritten, re-read and rewritten but the error does not go away ,,, where am I wrong?

B4X:
    If sqllite.record_latlon_load(client.GetValueAt(2)) = True Then
        Dim camp As CameraPosition ' bomba
        lat = client.GetValueAt("11")
        lon = client.GetValueAt("12")
        Log(lat & " " & lon)
        Try
        camp.Initialize(lat, lon, 18) '<----------------------- BUM---------------->
        googlemap.MoveCamera(camp)
        googlemap.AddMarker(lat, lon, client.GetValueAt(0) & " " & client.GetValueAt(1))
        Catch
            Log(LastException)
        End Try
    End If

(Exception) java.lang.Exception: netscape.javascript.JSException: ReferenceError: Can't find variable: google

B4X:
Waiting for debugger to connect...
Program started.
45.62206500000001 9.107503
Errore nella linea: 193
netscape.javascript.JSException: ReferenceError: Can't find variable: google
    at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)
    at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
    at com.sun.webkit.WebPage.executeScript(WebPage.java:1439)
    at javafx.scene.web.WebEngine.executeScript(WebEngine.java:982)
    at com.lynden.gmapsfx.javascript.JavaFxWebEngine.executeScript(JavaFxWebEngine.java:42)
    at com.lynden.gmapsfx.javascript.JavascriptRuntime.execute(JavascriptRuntime.java:63)
    at com.lynden.gmapsfx.javascript.JavascriptObject.<init>(JavascriptObject.java:76)
    at com.lynden.gmapsfx.javascript.object.LatLong.<init>(LatLong.java:36)
    at anywheresoftware.b4j.objects.GoogleMapWrapper$CameraPositionWrapper.Initialize(GoogleMapWrapper.java:188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:657)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
    at anywheresoftware.b4a.BA$1.run(BA.java:215)
    at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191)
    at java.lang.Thread.run(Thread.java:745)
(Exception) java.lang.Exception:  netscape.javascript.JSException: ReferenceError: Can't find variable: google
Alert: Hide directions called
Alert: loadMapLibrary done
 
Top