<?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 — Aviation Maps using Unity]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1859</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1859&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Aviation Maps using Unity.]]></description>
		<lastBuildDate>Tue, 26 Oct 2021 19:53:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7829#p7829</link>
			<description><![CDATA[<p>If these are your coordinates, you don&#039;t need a Location Service.<br />You just create a marker using OnlineMapsMarkerManager.CreateItem and store it to the field.<br />When you need to update the position, you call marker.SetPosition and the map redraw (OnlineMaps.instance.Redraw).<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerManager.html#aa34c89eb5f918ebea826924bb15e68ce">https://infinity-code.com/doxygen/onlin … 4bb15e68ce</a><br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#a46aeb89ee864cd19b098ebac75c05eb0">https://infinity-code.com/doxygen/onlin … ac75c05eb0</a><br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a33983fd6e33e021795565f199d39b885">https://infinity-code.com/doxygen/onlin … 199d39b885</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Oct 2021 19:53:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7829#p7829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7827#p7827</link>
			<description><![CDATA[<p>The code is still using the Location Services to give the lat/lon coordinates and updates according to the change of it.<br />I need the same but using the lat/lon i give to the system manually and update the map according to that.</p>]]></description>
			<author><![CDATA[null@example.com (habboazul3d)]]></author>
			<pubDate>Tue, 26 Oct 2021 17:52:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7827#p7827</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7823#p7823</link>
			<description><![CDATA[<p>What exactly is the problem you have with this script?</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Oct 2021 08:51:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7823#p7823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7822#p7822</link>
			<description><![CDATA[<p>This is the code im trying to make to work, but ill put here the pseudo code about what i need.<br /></p><div class="codebox"><pre><code>public OnlineMapsMarker playerMarker;
        public float myLat;
        public float myLon;

        private void Start()
        {
            // Create a new marker.
            playerMarker = OnlineMapsMarkerManager.CreateItem(new Vector2(0, 0), null, &quot;Airplane&quot;);

            // Get instance of LocationService.
            OnlineMapsLocationService locationService = OnlineMapsLocationService.instance;

            if (locationService == null)
            {
                Debug.LogError(
                    &quot;Location Service not found.\nAdd Location Service Component (Component / Infinity Code / Online Maps / Plugins / Location Service).&quot;);
                return;
            }

            // myLat and myLon are the values i need to put on the position.

            // Subscribe to the change location event.
            locationService.OnLocationChanged += OnLocationChanged;
    
        }

        // When the location has changed
        private void OnLocationChanged(Vector2 position)
        {
            // Change the position of the marker.
            playerMarker.position = position;
            //playerMarker.position = (myLon,myLat);

            // Redraw map.
            OnlineMaps.instance.Redraw();
        }
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (habboazul3d)]]></author>
			<pubDate>Tue, 26 Oct 2021 02:59:28 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7822#p7822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7821#p7821</link>
			<description><![CDATA[<p>OnlineMapsMarkerBase.SetPosition<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#a46aeb89ee864cd19b098ebac75c05eb0">https://infinity-code.com/doxygen/onlin … ac75c05eb0</a></p><p>Pay attention to two things:<br />1. This is not a static method and requires a marker instance.<br />Depending on how you created it, there are many ways to get it.<br />2. Online Maps API uses the order: in methods - first longitude, then latitude, in Vector2 - x is longitude, y is latitude.<br />I know that generally in geography latitude is used first.<br />But this contradicts another generally accepted rule - first the horizontal.<br />So we decided to use this order of parameters. In addition, this order is used in more than half of software mapping solutions.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Oct 2021 02:21:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7821#p7821</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7820#p7820</link>
			<description><![CDATA[<p>Ive working with C++ and Arduino for 2 years but C# is new to me.<br />I know that my requirements are very easy to do, but PlayMaker and Bolt are a different way to code, so i prefer to understand the code itself.</p><p>I just need to know the way to change the Marker_GPS_Example to use a vector like this Vector2(myLat, MyLon) to update its position, instead of using the Location Services.</p><p>That Vector2 is a dynamic vector, so it should update the map.</p>]]></description>
			<author><![CDATA[null@example.com (habboazul3d)]]></author>
			<pubDate>Mon, 25 Oct 2021 23:11:22 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7820#p7820</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7819#p7819</link>
			<description><![CDATA[<p>What programming experience do you have?<br />If you don&#039;t know how to program, use Playmaker or Bolt.<br />Online Maps has integration with these assets.<br />Maybe it will be easier for you.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Oct 2021 22:36:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7819#p7819</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7818#p7818</link>
			<description><![CDATA[<p>Thank you, i now have the map and the marker working with the Location Service, but now i don&#039;t know how to change by code the latitude, longitude and compass heading.</p><p>I need to use a dynamic location coordinate from an external code, so i don&#039;t know how to change the Marker_GPS_Example to use the coordinates of my device.</p>]]></description>
			<author><![CDATA[null@example.com (habboazul3d)]]></author>
			<pubDate>Mon, 25 Oct 2021 22:06:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7818#p7818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7816#p7816</link>
			<description><![CDATA[<p>Hello.</p><p>Use Online Maps Marker Manager component to create a 2D marker (in your case an airplane icon).<br />If it should be a 3D object, use Online Maps Marker 3D Manager component to create a 3D marker.</p><p>Next, use Online Maps API to update the marker position.</p><p>Examples of how to work with markers can be found in the atlas of examples.<br /><a href="https://infinity-code.com/atlas/online-maps/index.html">https://infinity-code.com/atlas/online-maps/index.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Oct 2021 20:59:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7816#p7816</guid>
		</item>
		<item>
			<title><![CDATA[Aviation Maps using Unity]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7815#p7815</link>
			<description><![CDATA[<p>Hello, im new using Online Maps V3 and I&#039;ve been trying to do something without success, so maybe if anyone can help me ill really appreciate it.</p><p>I need a simple 2D map with the capability to show in the screen a airplane icon, which must use a public variable of latitude and longitude given from another another script (lat/long public variable). <br />Also, the other script gives a heading number (between 0-360) which needs to be used to rotate the Map.</p><p>Ill attach a photo example of what i need. (Forget the map style, that&#039;s just a reference, i only need the classical open street style map).</p><p>I tried to use the Map Wizard but i don&#039;t know how to add a GameObject different of the Map Itself, and don&#039;t know how to handle markers etc.</p><p>This is something very very important because im working on my degree work, which i have to deliver in a few days.</p><p>THANK YOU!</p>]]></description>
			<author><![CDATA[null@example.com (habboazul3d)]]></author>
			<pubDate>Mon, 25 Oct 2021 20:50:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7815#p7815</guid>
		</item>
	</channel>
</rss>
