<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — hook for when map position restored after timeout]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=723&amp;type=atom" />
	<updated>2017-12-13T01:06:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=723</id>
		<entry>
			<title type="html"><![CDATA[Re: hook for when map position restored after timeout]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3141#p3141" />
			<content type="html"><![CDATA[<p>woo hoo, thankyou.<br />PS I was getting worried that I was doing more wrong things. <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[kingsleyz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=604</uri>
			</author>
			<updated>2017-12-13T01:06:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3141#p3141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: hook for when map position restored after timeout]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3135#p3135" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the suggestion.<br />I think this is a very useful hook.<br />The next version of Online Maps will contain this.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-12-12T00:17:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3135#p3135</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[hook for when map position restored after timeout]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3133#p3133" />
			<content type="html"><![CDATA[<p>Hi Alex, at risk of showing my ignorance (again).<br />Is there a way to call a routine after the map position has been moved by a Restore After (sec) timeout.</p><p>If not I have added a crude one:</p><p>OnlineMapsLocationServiceBase: approx line&nbsp; 40<br />&nbsp; &nbsp; /// &lt;summary&gt;<br />&nbsp; &nbsp; /// This event called after map position restored when timeout &quot;Restore After&quot; expires<br />&nbsp; &nbsp; /// &lt;/summary&gt;<br />&nbsp; &nbsp; public Action OnPositionRestored; // added 4 lines</p><p>OnlineMapsLocationServiceBase: approx line 397, <br />after &quot;restore after&quot; ticks&nbsp; ... <br />_allowUpdatePosition = true;<br /> UpdatePosition();<br /> OnPositionRestored(); //added 1 line</p><p>and for reference: used by subscription<br />OnlineMapsLocationServiceBase.baseInstance.OnPositionRestored += OnPositionRestored; </p><p>public void OnPositionRestored()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; //Debug.Log(&quot;Position restored&quot;);<br />}</p><p>Have I done this correctly ?</p>]]></content>
			<author>
				<name><![CDATA[kingsleyz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=604</uri>
			</author>
			<updated>2017-12-10T23:01:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3133#p3133</id>
		</entry>
</feed>
