<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Several issues with drawing polygons on the map]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=474&amp;type=atom" />
	<updated>2017-03-30T11:54:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=474</id>
		<entry>
			<title type="html"><![CDATA[Re: Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2125#p2125" />
			<content type="html"><![CDATA[<p>It&#039;s not so easy.<br />I have marked your request, and we will try to implement it in future versions.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-30T11:54:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2125#p2125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2102#p2102" />
			<content type="html"><![CDATA[<p>In the current code, polygons are added with a certain borderwidth.<br />This width seem to expand in all directions. Is it possible to only have it expand inwards? The outer border/points of our polygons need to always be in the exact same position so the border should fill in more towards the inside of the polygon, not the outside.<br />Thanks <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-03-28T13:02:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2102#p2102</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2101#p2101" />
			<content type="html"><![CDATA[<p>At the end of this week.</p><p>P.S. We added another way to have filled polygons for tileset:<br />drawingElement.checkMapBoundaries = false</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-28T12:39:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2101#p2101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2100#p2100" />
			<content type="html"><![CDATA[<p>Awesome! <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Can&#039;t wait to test the next version.<br />When will it come out?</p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-03-28T12:34:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2100#p2100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2094#p2094" />
			<content type="html"><![CDATA[<p>Hello.</p><p>The problem with accuracy is fixed.<br />In the next version this will work correctly.</p><p>For «Target - Texture» and «drawing as overlay», the larger (size on map) polygon, is requeres a lot more time to draw it.</p><p>The problem with the fill is fixed.<br />In the next version this will work correctly.</p><p>The commented code is wrong. Actually, therefore, it is commented out.<br />It is not removed, so we had some starting point for continuing the work on filling the polygons for tileset.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-27T12:28:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2094#p2094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Several issues with drawing polygons on the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2090#p2090" />
			<content type="html"><![CDATA[<p>Hello Alex,</p><p>We&#039;re having several images with drawing polygons on the map.<br />We are currently displaying some farm areas but we&#039;ve run across the follow few issues:</p><p>* The shape of the polygons differ greatly depending on the zoomlevel, as shown in this image:<br /><a href="https://ibb.co/meCHiv"><span class="postimg"><img src="https://thumb.ibb.co/meCHiv/lvl_versus.png" alt="https://thumb.ibb.co/meCHiv/lvl_versus.png" /></span></a><br />The one on zoomlevel 14 is more accurate to how it looks in real life.<br />Note: At zoomlevel 16 the whole program crashes, which leads to the following issue:</p><p>* It seems like one larger polygon is a lot more performance heavy than a lot of smaller polygons. Is this correct?<br />* The way the polygons are shown differs greatly between methods:<br /><a href="https://ibb.co/emJt6F"><span class="postimg"><img src="https://thumb.ibb.co/emJt6F/differences.png" alt="https://thumb.ibb.co/emJt6F/differences.png" /></span></a></p><p>All images use zoomlvl 12. On the first image the regular polygon drawing method is used with only outlines.<br />Using the overlay method (which is really slow, which we knew beforehand), a few polygons go missing and some get pretty different shapes.<br />We also tried uncommenting the triangulation code in OnlineMapsDrawingPoly and it works pretty nicely although most polygons actually disappear completely..</p><p>The overlay method seems to be more accurate in shape, but it&#039;s pretty ugly and slow and it skips some polygons.<br />Is there a reason why the regular polygon meshes don&#039;t use accurate shapes on higher zoomlevels?<br />Are there any fixes?</p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-03-24T12:00:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2090#p2090</id>
		</entry>
</feed>
