<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — 3D Markers - Placing and Scaling]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=81&amp;type=atom" />
	<updated>2016-02-08T21:16:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=81</id>
		<entry>
			<title type="html"><![CDATA[Re: 3D Markers - Placing and Scaling]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=333#p333" />
			<content type="html"><![CDATA[<p>Thanks! And double thanks for the swiftness of your response. I promise my questions will grow more sophisticated before long!</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2016-02-08T21:16:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=333#p333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Markers - Placing and Scaling]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=332#p332" />
			<content type="html"><![CDATA[<p>Hello.</p><div class="codebox"><pre><code>// Marker position. Geographic coordinates.
Vector2 markerPosition = OnlineMaps.instance.position; // &lt;&lt;--------- 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);</code></pre></div><p>Scale of markers by zoom:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerScaleByZoomExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-02-08T20:55:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=332#p332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[3D Markers - Placing and Scaling]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=331#p331" />
			<content type="html"><![CDATA[<p>I&#039;m trying to modify your 3D marker example code to place the marker at the map&#039;s current location. I thought GetPosition() would do the trick, by the vector&#039;s coming back at 0,0. Any obvious mistakes here?</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Marker position. Geographic coordinates.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 markerPosition = new Vector2(0, 0);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Create 3D marker<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; control.GetPosition(markerPosition);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; marker3D = control.AddMarker3D(markerPosition, markerPrefab);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Specifies that marker should be shown only when zoom from 1 to 20.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; marker3D.range = new OnlineMapsRange(1, 20);</p><p>Also, I was wondering if there&#039;s a simple way to tie the scale of the 3D markers to the zoom level of the map. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2016-02-08T20:48:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=331#p331</id>
		</entry>
</feed>
