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!

Re: 3D Markers - Placing and Scaling

Hello.

// Marker position. Geographic coordinates.
Vector2 markerPosition = OnlineMaps.instance.position; // <<--------- HERE

// Create 3D marker
marker3D = control.AddMarker3D(markerPosition, markerPrefab);

// Specifies that marker should be shown only when zoom from 1 to 20.
marker3D.range = new OnlineMapsRange(1, 20);

Scale of markers by zoom:
http://infinity-code.com/atlas/online-m … ample.html

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: 3D Markers - Placing and Scaling

Thanks! And double thanks for the swiftness of your response. I promise my questions will grow more sophisticated before long!