Start a new topic

Wikitude-Phonegap and google maps

Wikitude-Phonegap and google maps
1 Comment


What might cause this error?

Test case (index.html):

Rest of the codes are exactly same as in hello world example.





      html, body {

        margin: 0;

        padding: 0;

        height: 100%;






 margin: 0;

        padding: 0;

        height: 100%;










<script src="cordova.js"></script>

<script src="scripts/WikitudePlugin.js"></script>

<script src="scripts/indexAr.js"></script>

<script src=""></script>

<script src=""></script>



<div id="mapcanvas"></div>

<button id="ARbutton" onclick="loadAR()">ar</button>



//AR scripts



                function loadAR(){

                document.removeEventListener("backbutton", WikitudePlugin.onBackButton, false);

                document.addEventListener("backbutton", WikitudePlugin.onBackButton, false);



//AR scripts-

var map;

function initialize() {

  var mapOptions = {

    zoom: 8,

    center: new google.maps.LatLng(-34.397, 150.644),

    mapTypeId: google.maps.MapTypeId.ROADMAP


  map = new google.maps.Map(document.getElementById('mapcanvas'),



google.maps.event.addDomListener(window, 'load', initialize);





Errors I am getting after pressing to AR button:

07-31 16:58:50.166: E/SensorManager(28640): thread start

07-31 16:58:50.336: E/libEGL(28640): called unimplemented OpenGL ES API

07-31 16:58:50.336: E/libEGL(28640): called unimplemented OpenGL ES API

07-31 16:58:51.641: E/Web Console(28640): Uncaught ReferenceError: AR is not defined:1


Errors I am getting after pressing back button:

07-31 17:01:08.926: E/libEGL(28640): call to OpenGL ES API with no current context (logged once per thread)


and something breaks Google Maps javascript api v3.1. 


Mobile machine: Samsung galaxy S4 GT-I9500 Android 4.2.2

Project attached as file
Login or Signup to post a comment