Start a new topic

GeoObjects in the same place,bug?

GeoObjects in the same place,bug?


Hello.
I want to display differents POI's, but only one is displayed(the last one). im using as template this example
https://github.com/Wikitude/wikitude-sdk-samples/tree/master/4_PointOfInterest_4_SelectingPois/js

here is a pic

http://postimg.org/image/6f16ba9ej/
 

like its say, 20 places are found it, but only 1 is displayed.
 

the locations is diferent of each others(like <1km)

here is marker.js

<code>

function Marker(poiData) {

 

    this.poiData = poiData;

    this.isSelected = false;

    var markerLocation = new AR.GeoLocation(poiData.latitude, poiData.longitude, poiData.altitude);

    var type;

        if(poiData.poiData.paquete == 1)

        {

                type = '58_icon_poi_03.png';

        }

        if(poiData.paquete == 2)

        {

                type = '58_icon_poi_02.png';

        }

        if(poiData.paquete == 3)

        {

            type = '58_icon_poi_03.png';

        }

    var Html = "<div id='holder' style='background:white;height:100px;width:250px;'>

                    <div id='lower' style='background:white;'>

                        <label style='left:0'>"+poiData.title+"</label>

                        <img src='http://spinar-dev.com/victor/cpanel/laravel/public/'"+poiData.poiData.thumbnailUrl+" style='right:0'/>

                    </div>

                </div>";

    this.htmlDrawable = new AR.HtmlDrawable({

        html: Html

    },3,{

        offsetY:-0.7,

        onClick: Marker.prototype.getOnClickTrigger(this)

    });

 

    var imageResource = new AR.ImageResource("assets/"+type);

    this.iconDrawable = new AR.ImageDrawable(imageResource,1,{

        zOrder: 0,

        opacity: 1.0,

        offsetY: 1.5,

        onClick: Marker.prototype.getOnClickTrigger(this)

    });

 

    this.directionIndicatorDrawable = new AR.ImageDrawable(World.markerDrawable_directionIndicator, 0.1, {

        enabled: true,

        verticalAnchor: AR.CONST.VERTICAL_ANCHOR.TOP

    });

 

    this.markerObject = new AR.GeoObject(markerLocation, {

        drawables: {

            //cam: ,

            cam:,

            indicator: this.directionIndicatorDrawable,

        }

    });

    return this;

}

</code>
 

 

Tested:
Android 4.4
Titanium Module.

HI Joaquin,

Does the sample app without any changes work as expected? Please also recheck the lcoations you use and make sure that e.g. you're not switching lat/lon values and that the culling distance is set high enough.

Greetings

Nicola
Hi, thaks for reply.
The exmaple itself do the same thing.
the culling distance is set on more than default value.
and lat and lng is set correctly.

Hi,

So you're working with your own POIs and not the 'random POI functionality' used in the sample app? Did you make sure that your location is in the vicinity of the POIs - if the POIs are very far away from you it might also occur that it looks like there is only 1 POI.

Greetings

Nicola

Hi.

I understand you point but. here is my position and then this are the POI i want to display

http://s8.postimg.org/95uycisq9/20160216055636.jpg
 

as you can see, the black point its me :D, and around is the POI's. only 1 is show and is not one of these (is one of more far).

Hi,

Ok. Can you please send me the complete AR experience (html, js, css files, asstes,..) so we can test on our end.

Thx and greetings

Nicola

Thanks.
Of course, can i pass you via DM or something?

Sorry - you can send it to forum wikitude.com

Greetings

Nicola

Hi just in case.
It seems like using the module of Titanium on Alloy its causing this behavior, its not a bug because like the staff of wikitude said, Titanium module its not oficially supported Alloy. So yeah
if you want to use it with Alloy you need to create a module to open the AR activity(like the example in github) and customize.
Login or Signup to post a comment