<?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 — How to tell if a latitude-longitude coordinate is on the map view?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1002</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1002&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to tell if a latitude-longitude coordinate is on the map view?.]]></description>
		<lastBuildDate>Thu, 27 Dec 2018 23:39:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to tell if a latitude-longitude coordinate is on the map view?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4448#p4448</link>
			<description><![CDATA[<p>Hello.</p><p>Example:<br /></p><div class="codebox"><pre><code>public static bool InMapView(double longitude, double latitude)
{
    double tlx, tly, brx, bry;
    OnlineMaps.instance.GetCorners(out tlx, out tly, out brx, out bry);

    if (latitude &gt; tly || latitude &lt; bry) return false;

    if (tlx &gt; brx)
    {
        if (longitude &lt; tlx) tlx -= 360;
        else brx += 360;
    }

    return longitude &gt;= tlx &amp;&amp; longitude &lt;= brx;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 27 Dec 2018 23:39:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4448#p4448</guid>
		</item>
		<item>
			<title><![CDATA[How to tell if a latitude-longitude coordinate is on the map view?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4444#p4444</link>
			<description><![CDATA[<p>Is there a way to determine if a lat/long coordinate is on the currently visible map view?</p><p>If so what is it? If not, how can one do that?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Lurch)]]></author>
			<pubDate>Thu, 27 Dec 2018 16:38:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4444#p4444</guid>
		</item>
	</channel>
</rss>
