Topic: Some 3d markers set as disabled, although they are on the map

Hi Alex,

What are the reasons that 3dmarkers would be added to the map with the wrong geo locations, and then get auto disabled?

Specifically I'm using the following code to add a marker x meters in front of the camera position:

        ls = OnlineMapsLocationService.instance;
        // Add the 3d object to the map approx x meters in front of user
        Vector2 markerGeo = new Vector2(ls.position.y + 0.01f, ls.position.x);
        OnlineMapsMarker3D current = OnlineMapsMarker3DManager.CreateItem(markerGeo, MapMarker);

It doesn't seem to matter what value I add to the ls.position.y, the marker always gets created at the current user position, and the marker is by default disabled

Any Ideas?

Re: Some 3d markers set as disabled, although they are on the map

Hello.

The problem is that in Vector2: X is longitude, Y is latitude.
You set the fields in reverse.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!