<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to get the bounds of the horizon?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1295&amp;type=atom" />
	<updated>2019-07-15T19:44:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1295</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get the bounds of the horizon?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5308#p5308" />
			<content type="html"><![CDATA[<p>You ask about coordinates of the bounds, right?!</p><p>1. Get the coordinates of the center point of the map (OnlineMaps.GetPosition).<br />2. Convert it to tile position using zoom = map.zoom - horizon.zoomOffset.<br />3. left = tileX - countX / 2.<br />top = tileY - countY / 2.<br />etc.<br />4. Convert tile position of the corners to geographic coordinates.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-07-15T19:44:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5308#p5308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get the bounds of the horizon?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5305#p5305" />
			<content type="html"><![CDATA[<p>Just like the title<br />Thank-you!</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-07-15T17:32:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5305#p5305</id>
		</entry>
</feed>
