<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Dynamic MapBox Map type at runtime in Unity]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1586&amp;type=atom" />
	<updated>2020-08-20T14:44:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1586</id>
		<entry>
			<title type="html"><![CDATA[Re: Dynamic MapBox Map type at runtime in Unity]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6601#p6601" />
			<content type="html"><![CDATA[<p><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#acfd2a26de72270ca41657685773567ac">https://infinity-code.com/doxygen/onlin … 85773567ac</a><br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#ad7be7c10a1dae1819d087d3d23da3796">https://infinity-code.com/doxygen/onlin … 3d23da3796</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-08-20T14:44:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6601#p6601</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dynamic MapBox Map type at runtime in Unity]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6600#p6600" />
			<content type="html"><![CDATA[<p>Is there a way to get the current provider and style loaded from OnlineMaps?</p><p>We need to validate what style is loaded on first run, currently we simply set it again but i&#039;m concerned that will cause a cache clear?</p>]]></content>
			<author>
				<name><![CDATA[clueduppstephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1169</uri>
			</author>
			<updated>2020-08-20T14:02:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6600#p6600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dynamic MapBox Map type at runtime in Unity]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6599#p6599" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>Most likely you have created the styles url incorrectly.<br />Please send me the map id and user id of your styles.<br />If your styles are not public, also send your access token.<br />I will check it.</p><p>P.S. The information I requested is private, so in this case it is better to use email (support@infinity-code.com) rather than the forum.<br />And of course, I guarantee that the information will not be shared to third parties, or used for purposes not related to providing support to you.</p></blockquote></div><p>Hello Alex, I believe it was a malformed URL, I got it working by the end of the day by copying the format of the provider from&nbsp; OnlineMapsProvider.cs and making my own provider.</p><p>urlWithLabels = &quot;<a href="https://api.mapbox.com/styles/v1/{userid}/{mapid}/tiles/256/{z}/{x}/{y}?events=true&amp;access_token={accesstoken}">https://api.mapbox.com/styles/v1/{useri … cesstoken}</a>&quot;,</p><p>Thank you for your reply.</p>]]></content>
			<author>
				<name><![CDATA[clueduppstephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1169</uri>
			</author>
			<updated>2020-08-20T13:17:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6599#p6599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dynamic MapBox Map type at runtime in Unity]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6592#p6592" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Most likely you have created the styles url incorrectly.<br />Please send me the map id and user id of your styles.<br />If your styles are not public, also send your access token.<br />I will check it.</p><p>P.S. The information I requested is private, so in this case it is better to use email (support@infinity-code.com) rather than the forum.<br />And of course, I guarantee that the information will not be shared to third parties, or used for purposes not related to providing support to you.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-08-19T20:48:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6592#p6592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dynamic MapBox Map type at runtime in Unity]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6591#p6591" />
			<content type="html"><![CDATA[<p>Hi Community</p><p>We use prefabs of Infinity maps with different MapIDs set in the inspector, the idea is to load a different prefab when a user changes game.</p><p>This is not working at present, which ever mapID style that loaded first persists, we tried to solve this by detecting a change and telling the Online_Maps_cache&nbsp; to clear the cache and reload the map, but this doesn&#039;t work either.</p><p>I looked at this guide: <a href="http://infinity-code.com/atlas/online-maps/pages/CreateCustomStylesExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>But I am unable to make them work with our custom mapbox styles, I just get blank maps.</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[clueduppstephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1169</uri>
			</author>
			<updated>2020-08-19T14:09:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6591#p6591</id>
		</entry>
</feed>
