BeyondAR/beyondar

When I set the geo location for my region, it does not work

Opened this issue · 1 comments

Hi. How are you ?

When I use this coordinate 41.90533734214473, 2.565848038959814. and Add the GeoObject of example works well, but when I try to create my objects wiht my coordination does not work.

I did read that explanation is my location is far from way (http://beyondar.com/comment/9#comment-9), but far from why from what ? My location ? I do not understand.

So, please help me to figure out what is wrong. This is my source code

    if (sharedWorld != null) {
        return sharedWorld;
    }
    sharedWorld = new World(context);
    // The user can set the default bitmap. This is useful if you are
    // loading images form Internet and the connection get lost
    sharedWorld.setDefaultImage(R.drawable.beyondar_default_unknow_icon);

    // User position (you can change it using the GPS listeners form Android
    // API)


    if(location != null) {
        double lat = location.getLatitude();
        double lng = location.getLongitude();
        double alt = location.getAltitude();
        sharedWorld.setGeoPosition(lat, lng, alt);
    }
    else {
        sharedWorld.setGeoPosition(41.90533734214473, 2.565848038959814);
    }

Try using setLocation instead or do not specify the altitude