<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Location Services not working]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=137&amp;type=atom" />
	<updated>2016-04-17T20:05:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=137</id>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=605#p605" />
			<content type="html"><![CDATA[<p>I will try it out! I&#039;m def giving you five stars on the asset store. Your product and support are unbelievably awesome!</p>]]></content>
			<author>
				<name><![CDATA[dahbur.jamal]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=126</uri>
			</author>
			<updated>2016-04-17T20:05:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=605#p605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=598#p598" />
			<content type="html"><![CDATA[<p>Make some field that will store GPS status. Default - not initialized. In OnLocationChanged you change it to initialized.<br />Or, when starting you show that GPS is not initialized. In OnLocationChanged you hide it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-04-16T11:36:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=598#p598</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=595#p595" />
			<content type="html"><![CDATA[<p>Thanks! That worked great! Is there anyway to check if it&#039;s being initialized and when it&#039;s over, I&#039;m having some time when the app starts off of just the map before it finds my position, I&#039;d love to let the user know they&#039;re waiting for the initialization while that&#039;s happening.</p>]]></content>
			<author>
				<name><![CDATA[dahbur.jamal]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=126</uri>
			</author>
			<updated>2016-04-16T08:12:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=595#p595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=594#p594" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>private void Start ()
{
    OnlineMapsLocationService.instance.OnLocationChanged += OnLocationChanged;
}

private void OnLocationChanged(Vector2 pos)
{
    OnlineMaps.instance.SetPosition(pos.x, pos.y);
}</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-15T18:47:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=594#p594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=593#p593" />
			<content type="html"><![CDATA[<p>It&#039;s still now working, am I doing it wrong? In my update() method I have &nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; locService.OnLocationChanged(pos);<br />&nbsp; &nbsp; &nbsp; &nbsp; lng = pos.x;<br />&nbsp; &nbsp; &nbsp; &nbsp; lat = pos.y;<br />&nbsp; &nbsp; &nbsp; &nbsp; mapsControl.SetPosition (lng, lat);</p><p>I tried using OnlineMapsLocationService.OnLocationInited but I have no idea how. Please help</p>]]></content>
			<author>
				<name><![CDATA[dahbur.jamal]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=126</uri>
			</author>
			<updated>2016-04-15T16:50:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=593#p593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=592#p592" />
			<content type="html"><![CDATA[<p>Hmm, that makes a lot of sense actually, let me try it and get back to you</p>]]></content>
			<author>
				<name><![CDATA[dahbur.jamal]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=126</uri>
			</author>
			<updated>2016-04-15T14:22:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=592#p592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=589#p589" />
			<content type="html"><![CDATA[<p>Hello.</p><p>When you use Location Service in Unity Editor, you can enable GPS Emulator, to test it.<br />OnlineMapsLocationService.position not available in Start, because GPS is not already initialized.<br />Use OnlineMapsLocationService.OnLocationChanged or OnlineMapsLocationService.OnLocationInited (OnlineMaps v2.4.0.17+) to determine the GPS initialization.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-04-15T11:00:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=589#p589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Location Services not working]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=586#p586" />
			<content type="html"><![CDATA[<p>Another question, I&#039;m trying to test the location services option by just having the map make a marker where I&#039;m located and be centered around my location, and it&#039;s not working. Am I missing something? I have done the following, </p><p>-Added the online maps location services script and checked create marker. When the app is built my coordinates seem to be at 0,0</p><p>-Made my own script with a reference to the online maps script and the online maps location services script, and used the SetLocation() method with whatever current lat long positions the online maps locations services script finds, When the app is built my coordinates seem to be at 0,0</p><br /><p>How can I make this work please? I&#039;m trying to make a navigation application.</p>]]></content>
			<author>
				<name><![CDATA[dahbur.jamal]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=126</uri>
			</author>
			<updated>2016-04-15T07:34:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=586#p586</id>
		</entry>
</feed>
