Topic: Several issues with drawing polygons on the map

Hello Alex,

We're having several images with drawing polygons on the map.
We are currently displaying some farm areas but we've run across the follow few issues:

* The shape of the polygons differ greatly depending on the zoomlevel, as shown in this image:
https://thumb.ibb.co/meCHiv/lvl_versus.png
The one on zoomlevel 14 is more accurate to how it looks in real life.
Note: At zoomlevel 16 the whole program crashes, which leads to the following issue:

* It seems like one larger polygon is a lot more performance heavy than a lot of smaller polygons. Is this correct?
* The way the polygons are shown differs greatly between methods:
https://thumb.ibb.co/emJt6F/differences.png

All images use zoomlvl 12. On the first image the regular polygon drawing method is used with only outlines.
Using the overlay method (which is really slow, which we knew beforehand), a few polygons go missing and some get pretty different shapes.
We also tried uncommenting the triangulation code in OnlineMapsDrawingPoly and it works pretty nicely although most polygons actually disappear completely..

The overlay method seems to be more accurate in shape, but it's pretty ugly and slow and it skips some polygons.
Is there a reason why the regular polygon meshes don't use accurate shapes on higher zoomlevels?
Are there any fixes?

Re: Several issues with drawing polygons on the map

Hello.

The problem with accuracy is fixed.
In the next version this will work correctly.

For «Target - Texture» and «drawing as overlay», the larger (size on map) polygon, is requeres a lot more time to draw it.

The problem with the fill is fixed.
In the next version this will work correctly.

The commented code is wrong. Actually, therefore, it is commented out.
It is not removed, so we had some starting point for continuing the work on filling the polygons for tileset.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by alexandra 2017-03-28 12:34:45)

Re: Several issues with drawing polygons on the map

Awesome! smile
Can't wait to test the next version.
When will it come out?

Re: Several issues with drawing polygons on the map

At the end of this week.

P.S. We added another way to have filled polygons for tileset:
drawingElement.checkMapBoundaries = false

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Several issues with drawing polygons on the map

In the current code, polygons are added with a certain borderwidth.
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.
Thanks smile

Re: Several issues with drawing polygons on the map

It's not so easy.
I have marked your request, and we will try to implement it in future versions.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.