Topic: Adding marker position
I'm adding a marker using:
'OnlineMapsMarker3D marker3D = control.AddMarker3D(lon,lat, prefab);'
This works great, but I want to adjust the Y position of the 3D marker(game object) in the scene. For example, the marker instance transform position based on the lat/long might be (10, 0, 15). I want to change the Y but can't figure out how. Here's what I've tried:
// Get the 3D marker game object
GameObject currMarkerGO = currMarker.instance.transform.gameObject;
// Get the position vector
Vector3 pos = currMarkerGO.transform.position;
// Change Y pos
pos.y = 3.5f;
// Update marker position in scene
currMarker.instance.transform.position = pos;
Thanks.