Topic: 3D Markers - Placing and Scaling
I'm trying to modify your 3D marker example code to place the marker at the map's current location. I thought GetPosition() would do the trick, by the vector's coming back at 0,0. Any obvious mistakes here?
// Marker position. Geographic coordinates.
Vector2 markerPosition = new Vector2(0, 0);
// Create 3D marker
control.GetPosition(markerPosition);
marker3D = control.AddMarker3D(markerPosition, markerPrefab);
// Specifies that marker should be shown only when zoom from 1 to 20.
marker3D.range = new OnlineMapsRange(1, 20);
Also, I was wondering if there's a simple way to tie the scale of the 3D markers to the zoom level of the map. Thanks!