Topic: Losing precision
Hey Devs,
So I'm having an issue with precision that you might be able to help with.
I'm trying to place 3d markers as in the examples...
double lng, lat;
OnlineMapsControlBase3D.instance.GetCoords(out lng, out lat);
// Create 3D marker
OnlineMapsMarker3D marker3D = OnlineMapsMarker3DManager.CreateItem(lng, lat, currentPlaceableObject);
I then save the lat/lng to my database, but when I load the 3dmarker using the same data, it's not in the same spot.
Attached is a screenshot of my initial placement, showing the model placed by the mouse, and the 3d marker placed by the lat/long recieveded from mouse clicking the map.
As you can see, there is a small, but significant difference between the 2.
I'm currently going to simply store the Cartesian coords of the model placed on mouse click, and use that to place the 3d marker ( I hope)
But maybe there is something simple I'm missing?
Here is how I create the 3d marker on load
// Create 3D marker
OnlineMapsMarker3D marker3D = OnlineMapsMarker3DManager.CreateItem(actor.actorLongitude, actor.actorLatitude, actor);
and just the sake of data precision, here is what I'm storing for the lat/lng
lat -17.0355420413186
lng -53.7589743348561