<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — All created markers (3d) are placed at 0,0 or center of map]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1060&amp;type=atom" />
	<updated>2019-03-18T08:47:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1060</id>
		<entry>
			<title type="html"><![CDATA[Re: All created markers (3d) are placed at 0,0 or center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4635#p4635" />
			<content type="html"><![CDATA[<p>My mistake, I had the geo coords of my user position wrong in the editor, once corrected they all displayed correctly.</p>]]></content>
			<author>
				<name><![CDATA[cbanwell]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=888</uri>
			</author>
			<updated>2019-03-18T08:47:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4635#p4635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All created markers (3d) are placed at 0,0 or center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4634#p4634" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Unfortunately, it is very difficult to say what is wrong without seeing your project and data.<br />Usually, a such problem occurs when confusing the order of latitude and longitude.<br />But you have the right order.<br />Make sure that you have the correct order of values in the original data.<br />If the problem persists, please send me (support@infinity-code.com) your scene for testing.<br />To make it clear:<br />I do not need your working project. I need any (dummy) project where the problem is appears.</p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerCustomDataExample.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>2019-03-18T01:52:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4634#p4634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All created markers (3d) are placed at 0,0 or center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4633#p4633" />
			<content type="html"><![CDATA[<p>I also have the following legacy code from v2.5, how do I now write the same using the new V3</p><p>// Create new XML and store it in customData.<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsXML xml1 = new OnlineMapsXML(&quot;MarkerData&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiName&quot;, data.Name);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiLocType&quot;, data.LocType);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiCharts&quot;, data.Charts);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiVhf_Tel&quot;, data.Vhf_Tel);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiGroundtoAnchor&quot;, data.GroundtoAnchor);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiPossibilities&quot;, data.Possibilities);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiEnvironment&quot;, data.Environment);<br />&nbsp; &nbsp; &nbsp; &nbsp; xml1.Create(&quot;uiTransportation&quot;, data.Transportation);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; current3d.customData = xml1;</p>]]></content>
			<author>
				<name><![CDATA[cbanwell]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=888</uri>
			</author>
			<updated>2019-03-17T20:53:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4633#p4633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: All created markers (3d) are placed at 0,0 or center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4632#p4632" />
			<content type="html"><![CDATA[<p>I did have the createmethods use the vector2 markerGeo, but changed them to use individual doubles as above, both ways yields the same result</p>]]></content>
			<author>
				<name><![CDATA[cbanwell]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=888</uri>
			</author>
			<updated>2019-03-17T20:51:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4632#p4632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[All created markers (3d) are placed at 0,0 or center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4631#p4631" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Had all the creating of 2d and 3d markers plotting at their correct geo positions on the map with version 2.5, I&#039;ve just upgraded to V3 (latest stable) and changed the create of the markers to use the 2 respective managers.</p><p>With the following code<br />&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;Adding marker at:&quot; + data.Lat + &quot; &quot; + data.Long);<br />&nbsp; &nbsp; &nbsp; &nbsp; Vector2 markerGeo = new Vector2((float)data.Long, (float)data.Lat);<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsMarker3D current3d = OnlineMapsMarker3DManager.CreateItem(data.Long,data.Lat, MapMarker);<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsMarker current2d = OnlineMapsMarkerManager.CreateItem(data.Long,data.Lat, DefaultMarker, data.Name);</p><p>I use 2d and 3d markers in the same place and display which one depending on which camera is rendering.</p><p>The problem I have is that all the created markers are at the center of the map, even though when looking at the managers, they all have the correct coordinates set.&nbsp; Any ideas?<br />They are all also disabled in the scene view.&nbsp; As if they are outside of the map.</p>]]></content>
			<author>
				<name><![CDATA[cbanwell]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=888</uri>
			</author>
			<updated>2019-03-17T20:49:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4631#p4631</id>
		</entry>
</feed>
