<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — What is the total amount of markers that can be created?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=125&amp;type=atom" />
	<updated>2016-06-20T16:44:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=125</id>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=769#p769" />
			<content type="html"><![CDATA[<p>Hello.</p><p>It is very difficult to say what wrong using small piece of code, without any error messages, etc.<br />Please describe your problem in detail.<br />If possible, please send your project to support (support@infinity-code.com).<br />We will check this and give you advice how to fix it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-20T16:44:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=769#p769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=767#p767" />
			<content type="html"><![CDATA[<p>sorry here is the code that generates the marker. its basically the replacement of the GenerateMarkers() function in the example given.</p><div class="codebox"><pre><code>if (x.Status == AzureServicesForUnity.CallBackResult.Success)
{
    foreach (var userDataObj in x.Result.results)
    {
        //Debug.Log(string.Format(&quot;ID is {0},score is {1}&quot;, item.id, item.hwsh_user_popular ));
        marker = map.AddMarker(new Vector2(userDataObj.hwsh_user_loc_geox, userDataObj.hwsh_user_loc_geoy), null, userDataObj.fb_user_name);
        // Create new XML and store it in customData.
        OnlineMapsXML customXML = new OnlineMapsXML(&quot;MarkerData&quot;);
        customXML.Create(&quot;UserName&quot;, userDataObj.fb_user_name);
        customXML.Create(&quot;UserFBID&quot;, userDataObj.fb_user_id);
        customXML.Create(&quot;UserDBID&quot;, userDataObj.id);
        customXML.Create(&quot;PostID&quot;, userDataObj.fb_user_post_id);
        customXML.Create(&quot;UserPopularity&quot;, userDataObj.hwsh_user_popular);
        customXML.Create(&quot;UserRank&quot;, myRank);
        marker.customData = customXML;
        MakeToolTips();


        marker.Init();
        int my = (int) (( userDataObj.hwsh_user_loc_geoy + 90) / 10); ///lat
        int mx = (int) (( userDataObj.hwsh_user_loc_geox + 180) / 10); //long

        int index = mx * 18 + my;

        if (markers[index] == null) markers[index] = new List&lt;OnlineMapsMarker&gt;(32);
        else if (markers[index].Count == markers[index].Capacity) markers[index].Capacity += 32;
        markers[index].Add(marker);

        TotalX += 1;
        myRank += 1;
    }
    if (includeTotalCount)
    {
        Debug.Log(string.Format(&quot;Brought {0} rows out of {1}&quot;, TotalX, x.Result.count));
    }
    else
    {
        Debug.Log(string.Format(&quot;Brought {0} rows&quot;, x.Result.results.Count()));
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-06-20T10:10:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=767#p767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=766#p766" />
			<content type="html"><![CDATA[<p>Hey Alex</p><p>The script works perfectly if one uses it with the old GUI label tooltip method. but for some reason trying to implement it with this method&nbsp; uGUICustomTooltipOnClick.cs <a href="http://forum.infinity-code.com/viewtopic.php?id=122">http://forum.infinity-code.com/viewtopic.php?id=122</a> I&#039;m having major issues.</p><p>can you please assist?</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-06-20T09:02:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=766#p766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=674#p674" />
			<content type="html"><![CDATA[<p>Hey Alex</p><p>Thanks that did the trick. </p><p>still not entirely sure how it all works exactly but it works. thank you so much.</p><p>kind Regards</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-06T16:57:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=674#p674</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=673#p673" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Modify line 86:<br />if (markers[cx + y] != null) ms.AddRange(markers[cx + y]);</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-05-06T14:08:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=673#p673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=672#p672" />
			<content type="html"><![CDATA[<p>Yo Alex </p><p>Finally tested with your recommend settings and it works perfectly, except for one thing. when i change the count to another number except for 1 million, like 3. i receive the following errors:</p><div class="codebox"><pre><code>ArgumentNullException: Argument cannot be null.
Parameter name: collection
System.Collections.Generic.List`1[OnlineMapsMarker].CheckCollection (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:435)
System.Collections.Generic.List`1[OnlineMapsMarker].AddRange (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:136)
OneMillionMarkers.UpdateMarkers () (at Assets/OneMillionMarkers.cs:86)
OneMillionMarkers.Start () (at Assets/OneMillionMarkers.cs:59)</code></pre></div><p>The issue here is that we won&#039;t have a million markers right at the launch of our app. instead they will build up to a million. meaning as our app installs increase so will our marker count. How can we fix this?</p><p>could i also maybe ask for comments on the code as I&#039;m finding it difficult to understand whats happening.</p><p>Kind Regards<br />Luke Carelsen</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-06T11:31:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=672#p672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=671#p671" />
			<content type="html"><![CDATA[<p>ok cool, i thought i would have to go that approach if it is only in 3d. all good i will start working on the new solution. thanks for putting up with all my question.</p><p>kind regards</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T10:45:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=671#p671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=670#p670" />
			<content type="html"><![CDATA[<p>No, it&#039;s two different modes. You can not combine it.</p><p>Tileset much faster and has many additional features.<br />«Drawing to texture» - is a universal mode. You can show the map anywhere (almost).</p><p>If you configure the scene and the camera, Tileset can look like UIImage.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-05-05T10:43:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=670#p670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=669#p669" />
			<content type="html"><![CDATA[<p>sorry do you have a tutorial on how to set up a UIIImage with tileset because when adding the tiles controller nothing happens. I&#039;ve connected the camera but i think its trying to access the renderer which a uiImage doesn&#039;t have. or is it only available for 3d maps?</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T10:37:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=669#p669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=668#p668" />
			<content type="html"><![CDATA[<p>You are using an incorrect control.<br />For &quot;target - tileset&quot; you need to use a tileset control.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-05-05T10:28:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=668#p668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=667#p667" />
			<content type="html"><![CDATA[<p>sorry alex i just updated to the latest beta and when converting the uiimage/map from texture to tile set produces a umber of errors</p><div class="codebox"><pre><code>NullReferenceException: Object reference not set to an instance of an object
OnlineMaps.GetMarkerFromScreen (Vector2 screenPosition) (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1087)
OnlineMaps.ShowMarkersTooltip (Vector2 screenPosition) (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1678)
OnlineMapsControlBase.Update () (at Assets/Infinity Code/Online maps/Scripts/Controls/OnlineMapsControlBase.cs:694)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T10:23:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=667#p667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=666#p666" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Component / Infinity Code / Online Maps / Check Updates</p><p>or</p><p>Online Maps Inspector / Help / Check Updates</p></blockquote></div><br /><p>ohhhh coooool. very cool!</p><p>thanks signing up right now.</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T09:50:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=666#p666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=665#p665" />
			<content type="html"><![CDATA[<p>Component / Infinity Code / Online Maps / Check Updates</p><p>or</p><p>Online Maps Inspector / Help / Check Updates</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-05-05T09:47:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=665#p665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=664#p664" />
			<content type="html"><![CDATA[<p>oh, how can i get the beta from you? must i pm my invoice number?</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T09:05:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=664#p664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What is the total amount of markers that can be created?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=663#p663" />
			<content type="html"><![CDATA[<p>Hey Alex,</p><p>i was meaning to get around in changing it to tileset. my apologies, i will get back to you once I&#039;ve tested it with the new settings. thanks for the info.</p>]]></content>
			<author>
				<name><![CDATA[luke.carelsen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=117</uri>
			</author>
			<updated>2016-05-05T08:48:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=663#p663</id>
		</entry>
</feed>
