<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Adding 3D Models, Not Markers, To The Map]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=829</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=829&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding 3D Models, Not Markers, To The Map.]]></description>
		<lastBuildDate>Fri, 08 Jun 2018 10:14:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3647#p3647</link>
			<description><![CDATA[<p>Thanks!!!<br />It fixed my problem</p><p>Kind Regards</p>]]></description>
			<author><![CDATA[null@example.com (adri2111)]]></author>
			<pubDate>Fri, 08 Jun 2018 10:14:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3647#p3647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3645#p3645</link>
			<description><![CDATA[<p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class MyAwesomeBuilding: MonoBehaviour
{
    public double longitude;
    public double latitude;

    /// &lt;summary&gt;
    /// Zoom, when the scale = 1.
    /// &lt;/summary&gt;
    public int defaultZoom = 15;

    private void Update()
    {
        transform.position = OnlineMapsTileSetControl.instance.GetWorldPosition(longitude, latitude);

        float originalScale = 1 &lt;&lt; defaultZoom;
        float currentScale = 1 &lt;&lt; OnlineMaps.instance.zoom;
        float scale = currentScale / originalScale;
        transform.localScale = new Vector3(scale, scale, scale);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 08 Jun 2018 08:55:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3645#p3645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3643#p3643</link>
			<description><![CDATA[<p>I try to &quot;special building&quot; on a particular position (long and lat). My first step was to make a Marker3D but it had been scale with the zoom feature and I want to keep a the map scale equals to the buildings behaviour. <br />I don&#039;t undestand how can I do with your last post. How can I use the OnlineMapsTileSetControl.GetWorldPosition? Some other idea?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (adri2111)]]></author>
			<pubDate>Thu, 07 Jun 2018 16:34:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3643#p3643</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3638#p3638</link>
			<description><![CDATA[<p>Unfortunately, I did not understand your first question.<br />Please rephrase it.</p><p>If your model can be a marker, then use OnlineMapsControlBase3D.AddMarker3D:<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBase3D.html#a0c963c8e87f26f18ddfc54772d217de3">http://infinity-code.com/doxygen/online … 772d217de3</a><br />If your model for some reason can not be a marker, then you need to position it manually by converting coordinates to Unity World Position using OnlineMapsTileSetControl.GetWorldPosition:<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#adcfdea4962fd10c64683602992c6e097">http://infinity-code.com/doxygen/online … 2992c6e097</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 01 Jun 2018 15:45:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3638#p3638</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3637#p3637</link>
			<description><![CDATA[<p>Alex Vertax, in your example I see no way to add the marker at the required geopositional coordinated. Do I need to do the follow to add 2D marker on the point with longitude lon and latitude lat?<br />map.AddMarker(new Vector2 (lat, lon));</p><p>One more question. What do I need to do for adding my 3D-model at (lon, lat) to the map?</p>]]></description>
			<author><![CDATA[null@example.com (YanaAzur)]]></author>
			<pubDate>Fri, 01 Jun 2018 15:35:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3637#p3637</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3572#p3572</link>
			<description><![CDATA[<p>Hello.</p><p>Example with markers:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerScaleByZoomExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>I saw that you do not want to use markers.<br />But in this example, you can see the way to implement what you want to do.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 24 Apr 2018 18:57:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3572#p3572</guid>
		</item>
		<item>
			<title><![CDATA[Adding 3D Models, Not Markers, To The Map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3569#p3569</link>
			<description><![CDATA[<p>I am sure this is discussed somewhere, I just haven&#039;t been able to locate it.<br />I was wondering if there was an example of adding a 3D object to the map at a set lat/long and altitude/height off map, but not have it scale with zoom. I see the example for the 3D markers, but I do not want the 3D object to scale as I zoom, but I do want it locked to the proper place (lat/long) on the map as I translate the map. Some example uses for this would be showing a real scale drone/airplane flying in an area, and the second use I want this for is for displaying custom 3D models of buildings. If there is some other approach I am missing for this please let me know.&nbsp; </p><p>Again thank you.</p>]]></description>
			<author><![CDATA[null@example.com (jcarff)]]></author>
			<pubDate>Tue, 24 Apr 2018 16:23:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3569#p3569</guid>
		</item>
	</channel>
</rss>
