<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to create 2D marker in script?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=197&amp;type=atom" />
	<updated>2016-07-22T10:44:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=197</id>
		<entry>
			<title type="html"><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=895#p895" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-22T10:44:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=895#p895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=892#p892" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[adepter]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=190</uri>
			</author>
			<updated>2016-07-22T01:25:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=892#p892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to create 2D marker in script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=891#p891" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-21T15:17:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=891#p891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to create 2D marker in script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=890#p890" />
			<content type="html"><![CDATA[<p>Hi <br />How to create 2D marker in script?</p>]]></content>
			<author>
				<name><![CDATA[adepter]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=190</uri>
			</author>
			<updated>2016-07-21T15:13:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=890#p890</id>
		</entry>
</feed>
