<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — getting GPS from screen position]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=722&amp;type=atom" />
	<updated>2017-12-10T02:08:06Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=722</id>
		<entry>
			<title type="html"><![CDATA[Re: getting GPS from screen position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3132#p3132" />
			<content type="html"><![CDATA[<p>Ok, so I am learning more about your software, (and wishing I could code like this ... I am at a much more simple level). <br />Didn&#039;t realise that GetCoords&nbsp; actually comes from OnlineMapsTileSetControl.<br />This makes way more sense in what it does and options available. </p><p>So my problem originally was getting GPS from a screen position that was NOT under my mouse pointer. I couldn&#039;t see how that would work looking at OnlineMapsControlBase . </p><p>Anyway, once again, thanks for your knowledge (and patience), my problem is resolved by using GetCoords , so scratch my earlier suggestion, have removed my code from there. <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-10T02:08:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3132#p3132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: getting GPS from screen position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3131#p3131" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This does not make sense, because this method is overridden in the child classes.<br />Now we have marked this method abstract, so as not to confuse you and other users.<br />We have not done this before to reduce the number of compilation directives.</p><p>Why do you need GetCoordsFromScreen, if you can use GetCoords directly?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-12-09T07:16:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3131#p3131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[getting GPS from screen position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3129#p3129" />
			<content type="html"><![CDATA[<p>Hi Alex, <br />noticed your code to get GPS from screen position in OnlineMapsControlBase is marked &quot;throw new NotImplementedException();&quot; ... about line 300.</p><p>I added new function building on existing one, actually just a 1 line change.</p><p>&nbsp; &nbsp; public virtual bool GetCoordsFromScreen(out double lng, out double lat, Vector2 position) <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; return GetCoords(out lng, out lat, position);<br />&nbsp; &nbsp; }</p><p>This allows for example getting GPS coords from screen centre or some other spot rather than under mouse click.<br />Any chance of adding into next upgrade?<br />cheers</p>]]></content>
			<author>
				<name><![CDATA[kingsleyz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=604</uri>
			</author>
			<updated>2017-12-08T22:28:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3129#p3129</id>
		</entry>
</feed>
