<?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 — How to create 2D marker in script?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=197</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=197&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to create 2D marker in script?.]]></description>
		<lastBuildDate>Fri, 22 Jul 2016 10:44:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=895#p895</link>
			<description><![CDATA[<p>1. If you create markers in this way, use OnlineMapsMarker.Init for each marker.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsMarker.html#a75534bafadd50af94c4054a25298df51">http://infinity-code.com/doxygen/online … a25298df51</a></p><p>2. You always use markers[0] and TARGETS[0], so you create only one marker.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 22 Jul 2016 10:44:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=895#p895</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=892#p892</link>
			<description><![CDATA[<p>this script is not creating markers... please help me.</p><p>LocationService GPS;</p><p>&nbsp; &nbsp; OnlineMapsMarker[] markers;</p><br /><p>&nbsp; &nbsp; void Start () {<br />&nbsp; &nbsp; &nbsp; &nbsp; GPS = new LocationService();<br />&nbsp; &nbsp; &nbsp; &nbsp; GPS.Start();<br />&nbsp; &nbsp; &nbsp; &nbsp; foreach(var t in TARGETS) distanceList.Add(0f);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; MakeMarker();<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; void MakeMarker()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; markers = new OnlineMapsMarker[TARGETS.Count];<br />&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; TARGETS.Count; i++)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers[0] = new OnlineMapsMarker();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers[0].texture = markerTex.target;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers[0].position = new Vector2((float)TARGETS[0].longitude, (float)TARGETS[0].latitude);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers[0].enabled = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.Instance.AddMarkers(markers);<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (adepter)]]></author>
			<pubDate>Fri, 22 Jul 2016 01:25:28 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=892#p892</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=891#p891</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMaps.AddMarker<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a6c679ddafa4ed3149bdfab4123f84113">http://infinity-code.com/doxygen/online … 4123f84113</a></p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerClickExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 21 Jul 2016 15:17:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=891#p891</guid>
		</item>
		<item>
			<title><![CDATA[How to create 2D marker in script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=890#p890</link>
			<description><![CDATA[<p>Hi <br />How to create 2D marker in script?</p>]]></description>
			<author><![CDATA[null@example.com (adepter)]]></author>
			<pubDate>Thu, 21 Jul 2016 15:13:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=890#p890</guid>
		</item>
	</channel>
</rss>
