Start a new topic

Radar with personal POI

Radar with personal POI


Thanks!!

Hi Edoardo!

Seems as if your POIs are too far away and therefore excluded from rendering.
You can force drawing of objects in large distance by setting the AR.context.scene.cullingDistance value in JS to e.g. 200000 (default is 50000 -> 50km)

Hope that helps.


Kind regards,
Andreas

 

Hi all! :)

I'm new with Wikitude and PhoneGap and I'm trying to edit the "5_BrowsingPois_2_AddingRadar" sample but I don't know how to set my personal POIs.

This is my requestDataFromServer function:
    requestDataFromServer: function requestDataFromServerFn(lat, lon) {
        // set helper var to avoid requesting places while loading
        World.isRequestingData = true;
        World.updateStatusMessage('Requesting places from web-service');
        ws = new WebSocket('ws://192.168.1.2:8100');
        var connected = false;
        ws.onopen = function() { ws.send("0"); };
        ws.onmessage = function(evt) {
            var receivedmsg = evt.data;
            var punti = receivedmsg.split(",");
            var jsonString = "";
            var json = eval("(" + jsonString + ")");
            World.loadPoisFromJsonData(json);
            World.isRequestingData = false;
            connected = true;
        };
        ws.onclose = function() { connected = false; alert("Closing"); };
        ws.onerror = function(evt) { connected = false; alert("Connection Error!"); };
    },
but when running it the World is empty ande the loadPoisFromJsonData function get the right json object.

How can I solve?

P.S. The POIs loaded are far away from my current location (about 100km).
Login or Signup to post a comment