<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Is it possible to create different zones?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2058</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2058&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Is it possible to create different zones?.]]></description>
		<lastBuildDate>Wed, 10 Jan 2024 15:45:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Is it possible to create different zones?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9341#p9341</link>
			<description><![CDATA[<p>If it&#039;s a question for me, it&#039;s not the right question.<br />I provide technical support for the asset, and only that.<br />I can&#039;t help with game design questions.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 10 Jan 2024 15:45:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9341#p9341</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is it possible to create different zones?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8729#p8729</link>
			<description><![CDATA[<p>Something like that?<br /></p><div class="codebox"><pre><code>using UnityEngine;

namespace InfinityCode.OnlineMapsSupport
{
    public class OtherStyleInArea : MonoBehaviour
    {
        public double leftLongitude = -10;
        public double rightLongitude = 10;
        public double topLatitude = 10;
        public double bottomLatitude = -10;
        public string otherStyle = &quot;osm.mapnik&quot;;

        private OnlineMapsProvider.MapType mapType;

        private void Start()
        {
            mapType = OnlineMapsProvider.FindMapType(otherStyle);
            if (mapType != null)
            {
                OnlineMapsTileManager.OnPrepareDownloadTile += OnPrepareDownloadTile;
            }
        }

        private void OnPrepareDownloadTile(OnlineMapsTile tile)
        {
            OnlineMapsVector2d tl = tile.topLeft;
            OnlineMapsVector2d br = tile.bottomRight;

            if (tl.x &lt; leftLongitude &amp;&amp; br.x &lt; leftLongitude ||
                tl.x &gt; rightLongitude &amp;&amp; br.x &gt; rightLongitude ||
                tl.y &lt; bottomLatitude &amp;&amp; br.y &lt; bottomLatitude ||
                tl.y &gt; topLatitude &amp;&amp; br.y &gt; topLatitude) return;

            (tile as OnlineMapsRasterTile).mapType = mapType;
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 16 Nov 2022 08:53:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8729#p8729</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is it possible to create different zones?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8728#p8728</link>
			<description><![CDATA[<p>I&#039;m making a location based game and I would like to know if it is possible to make a script that will change the style of the map only on a certain area?</p>]]></description>
			<author><![CDATA[null@example.com (Azrod)]]></author>
			<pubDate>Tue, 15 Nov 2022 21:05:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8728#p8728</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is it possible to create different zones?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8726#p8726</link>
			<description><![CDATA[<p>Hello.</p><p>Unfortunately, I didn&#039;t understand your question.<br />Please rephrase this in more detail.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 15 Nov 2022 17:52:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8726#p8726</guid>
		</item>
		<item>
			<title><![CDATA[Is it possible to create different zones?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8725#p8725</link>
			<description><![CDATA[<p>Hello I would like to know if it is possible to define specific places on the map to create different zones with the Online Maps v3 asset in unity? Like for exemple combining 2 differents map style automatically</p>]]></description>
			<author><![CDATA[null@example.com (Azrod)]]></author>
			<pubDate>Tue, 15 Nov 2022 17:49:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8725#p8725</guid>
		</item>
	</channel>
</rss>
