<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — 3D Marker Clustering]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1164&amp;type=atom" />
	<updated>2021-09-24T12:23:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1164</id>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7762#p7762" />
			<content type="html"><![CDATA[<p>OK thanks I will try harder...</p><p>Best regards<br />Phil</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2021-09-24T12:23:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7762#p7762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7761#p7761" />
			<content type="html"><![CDATA[<p>Yes, this is the latest version of the script.<br />I just tested this again and did not see any problems with zoom in and out.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-09-24T09:05:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7761#p7761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7759#p7759" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>I adapted Clustering3DMarkers for Online Maps v3.<br />The updated script is attached.</p><p>The usage example is the same as for Online Maps v2.<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=1911#p1911">http://forum.infinity-code.com/viewtopi … 1911#p1911</a></p></blockquote></div><p>Hello, is this script the last version ?</p><p>My 3D makers disappear if I zoom in or out, the Group Prefab is not displayed and when I zoom out my markers don&#039;t show again.</p><p>With OLMaps 3.7.11.1</p><p>Best regards<br />Phil</p>]]></content>
			<author>
				<name><![CDATA[philzmz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=606</uri>
			</author>
			<updated>2021-09-24T05:17:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7759#p7759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4960#p4960" />
			<content type="html"><![CDATA[<p>Thanks Alex... am up against a super tight deadline so am not sure I will be able to implement clustering yet.... will post here if I do. Thanks again.</p>]]></content>
			<author>
				<name><![CDATA[sambrick]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=983</uri>
			</author>
			<updated>2019-05-16T15:54:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4960#p4960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4952#p4952" />
			<content type="html"><![CDATA[<p>Please send a video showing the problem.<br />Or send your scene as a package to us for testing (support@infinity-code.com).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-16T11:11:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4952#p4952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4950#p4950" />
			<content type="html"><![CDATA[<p>Thanks so much Alex! I really appreciate it.</p><p>My markers are currently being created using the OnlineMapsMarker3DManager....</p><div class="codebox"><pre><code>ChargeRecord[] records = APILoader.Instance.CarChargingResponse.records;

        foreach (ChargeRecord record in records)
        {
            // Assign prefab a unique ID
            carChargingPrefab.name = record.recordid;

            // Extract coordinates
            double[] coordinates = record.geometry.coordinates;
            Vector2 location = new Vector2((float)coordinates[0], (float)coordinates[1]);

            // Pass prefab + location to OnlineMaps
            OnlineMapsMarker3D marker = OnlineMapsMarker3DManager.CreateItem(location, carChargingPrefab);
            marker[&quot;record&quot;] = record;
            
            // Init marker tool tips
            markerToolTip.OnDataLoaded(marker);
        }</code></pre></div><p>I swapped this out to work similarly to the TestClustering.cs script you provided in the linked thread and it seems to work pretty well..... however, markers and cluster prefabs disappear and reappear in quite a glitchy way if you zoom and pan the map. Specifically when you zoom to a new level, some of the clusters might disappear but if you pan around a bit they might come back. There are no console errors (apart from switching a legacy method DestroyImmediate out to Destroy - which I did) I know it is hard to say but do you know what might be happening here?</p><p>Thanks,</p><p>Sam</p>]]></content>
			<author>
				<name><![CDATA[sambrick]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=983</uri>
			</author>
			<updated>2019-05-16T08:41:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4950#p4950</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4949#p4949" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I adapted Clustering3DMarkers for Online Maps v3.<br />The updated script is attached.</p><p>The usage example is the same as for Online Maps v2.<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=1911#p1911">http://forum.infinity-code.com/viewtopi … 1911#p1911</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-16T00:51:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4949#p4949</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[3D Marker Clustering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4946#p4946" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I am looking to introduce clustering on my 3D markers. I am using the 3DMarkerManager to handle the 3D markers. I found this post from a couple of years ago which has a sample script for clustering...</p><p><a href="http://forum.infinity-code.com/viewtopic.php?id=377">http://forum.infinity-code.com/viewtopic.php?id=377</a></p><p>Is this the best available solution for clustering in Online Maps? Is it still useable with the latest versions? If so, I a have attached it to my map GameObject and once the markers have been added I am calling Clustering3DMarkers.UpdatePositions();</p><p>I have attached a Group Prefab.</p><p>However, I am not getting any clustering behaviour happening, my markers are not visible and there are no errors in the console.</p><p>Any advice or input would be amazing.</p><p>Much thanks,</p><p>Sam</p>]]></content>
			<author>
				<name><![CDATA[sambrick]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=983</uri>
			</author>
			<updated>2019-05-15T20:16:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4946#p4946</id>
		</entry>
</feed>
