<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Elevation in 3.0]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1140&amp;type=atom" />
	<updated>2019-05-11T10:11:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1140</id>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4921#p4921" />
			<content type="html"><![CDATA[<p>Yes, all non-static methods, actions, fields, and properties require an instance.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-11T10:11:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4921#p4921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4920#p4920" />
			<content type="html"><![CDATA[<p>Looking at how you dealt with obsolete references, it seems I needed to add a reference to the instance:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.instance.OnElevationRequested += OnElevationRequested;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.instance.OnElevationFails += OnElevationFails;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.instance.OnElevationUpdated += OnElevationUpdated;</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-11T01:04:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4920#p4920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4919#p4919" />
			<content type="html"><![CDATA[<p>I&#039;m now trying to update my callback events, since OnElevationUpdated has been moved. I was trying to use the following code so I don&#039;t have to specify which Elevation Manager I&#039;m using in the code, but it&#039;s telling me an object reference is required. The action is defined in the base class. I&#039;m sure I&#039;m just rusty and missing something obvious.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.OnElevationRequested += OnElevationRequested;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.OnElevationFails += OnElevationFails;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsElevationManagerBase.OnElevationUpdated += OnElevationUpdated;</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-10T22:43:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4919#p4919</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4899#p4899" />
			<content type="html"><![CDATA[<p>Bing Maps - no. You will not get any benefits.<br />Mapbox - sometimes. This has tile based elevations, and it is much more convenient if you want to make caching elevation data.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-08T00:46:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4899#p4899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4898#p4898" />
			<content type="html"><![CDATA[<p>Thanks, that&#039;s good to know. I&#039;ll go with ArcGIS for now.</p><p>Is there any reason to go with the others? Are they superior in some way that makes having a key worthwhile? Or is it more a matter of going with a data provider you&#039;re already coding for?</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-08T00:33:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4898#p4898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4897#p4897" />
			<content type="html"><![CDATA[<p>Hello.</p><p>The main rule in the development of Online Maps v3 was not to break the existing projects of users who updates from Online Maps v2. So all changed APIs have an Obsolete attribute explaining how to update user scripts.</p><p>Use Elevation feature moved in separate scripts Online Maps XXX Elevation Manager, where XXX is the source of data.<br />Online Maps v3 supports elevation data from Bing Maps, ArcGIS and Mapbox.<br />Bing Maps requires an API key, and has a quota.<br />ArcGIS does not require any keys.<br />Mapbox requires a key, but (at least for now) requests for elevations data are not counted in the quota.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-07T23:29:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4897#p4897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4894#p4894" />
			<content type="html"><![CDATA[<p>It appears that you&#039;ve got Bing hardcoded in there if calls are made using the old way:</p><p>&nbsp; &nbsp; [Obsolete(&quot;Use OnlineMapsElevationManager.OnElevationRequested&quot;)]<br />&nbsp; &nbsp; public Action OnElevationRequested<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; get { return OnlineMapsBingMapsElevationManager.instance.OnElevationRequested; }<br />&nbsp; &nbsp; &nbsp; &nbsp; set { OnlineMapsBingMapsElevationManager.instance.OnElevationRequested = value; }<br />&nbsp; &nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-07T22:33:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4894#p4894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4893#p4893" />
			<content type="html"><![CDATA[<p>Looking around, it seems like it&#039;s been split up into several different Elevation Managers for different sources. Is there someplace where I can go to learn the costs and benefits of the different sources? If possible, I&#039;d like to avoid using a source that requires me to set up a billing plan, but I&#039;d also like to know if there are reasons aside from cost to use one source over another.</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-07T22:27:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4893#p4893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Elevation in 3.0]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4892#p4892" />
			<content type="html"><![CDATA[<p>I&#039;m coming back to OnlineMaps after a lengthy break and am upgrading from 2.0 to 3.0.</p><p>In 2.0 there was a checkbox allowing elevation to be enabled and reflected in the geometry of the map. I notice that there doesn&#039;t appear to be that in 3.0. I&#039;ve checked the documentation and searched the forum but can&#039;t seem to nail down an explanation of how to enable elevation that way in 3.0.</p><p>Could you point me in the right direction?</p><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[Quidam]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=76</uri>
			</author>
			<updated>2019-05-07T22:18:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4892#p4892</id>
		</entry>
</feed>
