iOS Question xSD_OpenMaps Creating a hole in a polygon

Davisbc

Member
Licensed User
Does anyone know how to create a hole in a map polygon? I assume i can overlay a second polygon (the hole) on top of the original but i would expect the top polygon fill would combine with the original and look abnormal. This is a normal feature of geoJson, and i assume other exchange formats. The B4A google maps also supports this but not the b4i version.

Thanks in advance,
B
 

Attachments

  • polygon with hole.png
    polygon with hole.png
    107.3 KB · Views: 4

Sandman

Expert
Licensed User
Longtime User
Someone here will surely know the exact answer (and I feel like I've known this, but forgot). But I do know how holes in font characters work, and perhaps it's the same here?

If so, it's only a matter of making sure that the points in the inner polygon goes in the other direction from the outer polygon.

Meaning, if the outer polygon has its points clockwise, the inner one should have its points counterclockwise.
 
Upvote 0
Top