Skip to content

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

Description

@chrislucas

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);
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions