<?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 — Changing marker texture on runtime]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=358</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=358&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Changing marker texture on runtime.]]></description>
		<lastBuildDate>Sat, 24 Dec 2016 20:21:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Changing marker texture on runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1578#p1578</link>
			<description><![CDATA[<p>Hello</p><p>Online Maps takes time to redraw the map with the new marker texture.</p><p>There is one way around this:<br />Online Maps / Troubleshooting / Render In Thread - OFF.<br />Replace «map.Redraw» to «map.RedrawImmediately».</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 24 Dec 2016 20:21:05 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1578#p1578</guid>
		</item>
		<item>
			<title><![CDATA[Changing marker texture on runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1577#p1577</link>
			<description><![CDATA[<p>I want the new marker texture to show up instantly. This is not happening. It takes a lot of time before the new marker shows up on the map. Any help would be much appreciated. Thanks.</p><p>&nbsp; &nbsp; private void OnMarkerClick(OnlineMapsMarkerBase marker)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; float distanceInMeters = OnlineMapsUtils.DistanceBetweenPoints(marker.position, playerLocation).magnitude*1000f;<br />&nbsp; &nbsp; &nbsp; &nbsp; if (distanceInMeters &lt; 64f)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //change texture;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsMarker m = (OnlineMapsMarker)marker;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m.texture = markerTexureSolved;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m.Init();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.Redraw();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (13bscsfgul)]]></author>
			<pubDate>Sat, 24 Dec 2016 09:56:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1577#p1577</guid>
		</item>
	</channel>
</rss>
