<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Get/Set current map scroll location center lat/lon coordinates]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=132&amp;type=atom" />
	<updated>2016-04-10T11:17:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=132</id>
		<entry>
			<title type="html"><![CDATA[Re: Get/Set current map scroll location center lat/lon coordinates]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=573#p573" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Single precision - OnlineMaps.position<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#acde81704855130ca5eb2f083961edbce">http://infinity-code.com/doxygen/online … 83961edbce</a></p><p>Double precision - OnlineMaps.GetPosition / OnlineMaps.SetPosition<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a91ce37bbcffa6a90f06a68b84e75f062">http://infinity-code.com/doxygen/online … b84e75f062</a><br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a1aa95950865ecec7677236e65d01d9b7">http://infinity-code.com/doxygen/online … e65d01d9b7</a></p><p>Examples:<br /></p><div class="codebox"><pre><code>OnlineMaps.instance.position = new Vector2(10, 20); // X - Longitude, Y - Latitude</code></pre></div><div class="codebox"><pre><code>double lng, lat;
OnlineMaps.instance.GetPosition(out lng, out lat);
OnlineMaps.instance.SetPosition(lng, lat);</code></pre></div><p>Single precision - OnlineMapsMarkerBase.position<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#aaeb6baa3068f0ee8a29a190a8c559dcd">http://infinity-code.com/doxygen/online … 0a8c559dcd</a></p><p>[Online Maps v2.4.0.4+] Double precision - OnlineMapsMarkerBase.GetPosition / OnlineMapsMarkerBase.SetPosition</p><p>Examples:<br /></p><div class="codebox"><pre><code>marker.position = new Vector2(10, 20); // X - Longitude, Y - Latitude</code></pre></div><div class="codebox"><pre><code>double lng, lat;
marker.GetPosition(out lng, out lat);
marker.SetPosition(lng, lat);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-04-10T11:17:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=573#p573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get/Set current map scroll location center lat/lon coordinates]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=572#p572" />
			<content type="html"><![CDATA[<p>How would I both get and set the current center of the map (at runtime) by inputting some lat/lon coordinates? Is there a function/method for this? If so, where/how would I use this? And if not, could anyone show me the code to do this?</p><p>I&#039;d also like to get/set marker coordinates too in realtime, but I can&#039;t seem to find any documentation on how to go about this. Any help would be much appreciated!</p>]]></content>
			<author>
				<name><![CDATA[astraldata]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=118</uri>
			</author>
			<updated>2016-04-10T11:03:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=572#p572</id>
		</entry>
</feed>
