<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Multiple overlay / Shapefiles]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=173&amp;type=atom" />
	<updated>2016-06-24T12:14:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=173</id>
		<entry>
			<title type="html"><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=786#p786" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-24T12:14:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=786#p786</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=785#p785" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2016-06-24T11:55:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=785#p785</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Multiple overlay / Shapefiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=782#p782" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-24T08:37:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=782#p782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Multiple overlay / Shapefiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=776#p776" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2016-06-23T14:50:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=776#p776</id>
		</entry>
</feed>
