<?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 — Multiple overlay / Shapefiles]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=173</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=173&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Multiple overlay / Shapefiles.]]></description>
		<lastBuildDate>Fri, 24 Jun 2016 12:14:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=786#p786</link>
			<description><![CDATA[<p>This is a known problem that we have described in the documentation.<br />Most likely, this problem will never be solved.</p><p>There is one way to have filled the polygons in the Tileset, but it works very slowly and can be used only in specific cases.<br />Example attached.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 24 Jun 2016 12:14:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=786#p786</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=785#p785</link>
			<description><![CDATA[<p>Hi,</p><p>Thanks for the reply Alex. So I am doing some experiments with both methods today as I want to see at which point the Drawing API becomes problematic. The problem I&#039;m having is the polys I draw are not filled, no matter what I set the background colour and alpha to I only see the outline in the game window? See attached screenshot.</p><p>I am on the latest OSX with the latest OnlineMaps &amp; Unity 5.3.4p4.</p><p>Any ideas?</p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Fri, 24 Jun 2016 11:55:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=785#p785</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=782#p782</link>
			<description><![CDATA[<p>Hello.</p><p>In Online Maps v2.4 is available 3 overlay layer (back, traffic, front).<br />Traffic layer is reserved for traffic, but it can still be used for a custom overlay.</p><p>Another way - is to draw overlay over the map.<br /><a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMapTilerOverlayExample.html">http://infinity-code.com/atlas/online-m … ample.html</a><br />In this case, you can have an unlimited number of layers.</p><p>Unfortunately, there is no built-in way to determine on which overlay is clicked.<br />But you can do it this way:<br />• Get clicking coordinate.<br />• Convert it into the tile coordinates.<br />• Check pixel each overlay layers. If pixel of layer is not transparent, then clicked on the layer.</p><p>Using Drawing API will be very, very slowly.<br />The best way - it is rasterized shapefiles, and used as overlay.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 24 Jun 2016 08:37:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=782#p782</guid>
		</item>
		<item>
			<title><![CDATA[Multiple overlay / Shapefiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=776#p776</link>
			<description><![CDATA[<p>Hi,</p><p>I have a couple of (related) questions. Firstly is it possible to use multiple overlays on a tileset map and if so can you capture which overlay element gets clicked? I have CAD files showing areas on a map that I would like to use as overlays, these overlays relate to specific areas and assets in the real world and I would like to let a user select the individual elements of the overlay.</p><p>In GIS I would probably convert them to shape files but I am aware that shape files are vector not raster graphics so would be of no use with Unity / OnlineMaps, is that correct? So I have considered drawing the shapes over the maptiles using the &#039;DrawingPoly&#039; class, would this be performant enough in your opinion to create lots of these at runtime? Also I am thinking that by drawing the polys rather than using overlay tiles I could make use of the HitTest member of the OnlineMapsDrawingPoly class to check which poly / shape I have clicked, would this work in your opinion?</p><p>I am open to suggestions if you feel there would be a better way of implementing this functionality.</p><p>Thanks <img src="https://forum.infinity-code.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Thu, 23 Jun 2016 14:50:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=776#p776</guid>
		</item>
	</channel>
</rss>
