Skip to content

Transform extension method MoveToGeocoordinate() doesn't work correctly? #60

@binakot

Description

@binakot

It's me again 😈 . Now I can't place objects on the map by their geo coordinates. In earlier version of SDK it worked like a charm, but now it confused me. I'm using version 0.5.1-beta.

For test I created this script:

public sealed class PlaceAtLatLng : MonoBehaviour
{
    public double Latitude;
    public double Longitude;

    private void Update()
    {
        transform.MoveToGeocoordinate(Latitude, Longitude, Vector2d.zero);            
    }
}

For example, I set latitude = 55.7481 and longitude = 37.6196. And same values I use in MapController. By idea the object should appear in the center of the generated map. But when I press play button in Unity editor, the object has really wrong position values, smth like (4187795, 0, 7508432).

map-controller

test-object

What do I wrong?

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