Closed chrillewoodz closed 5 years ago
@SittingFox Since you made the original Polygon implementation, can you also help on this one? Please 😄
I recommend finding the Android and iPhone equivalents to that JavaScript example you've posted, as that would help someone solve this. Although Nativescript uses Typescript, you have to code these features with the languages native to the OSs.
I used a separate library at the time to generate shapes with holes based on coordinates. Haven't really used Nativescript in over a year.
@SittingFox Which library was that?
I have now implemented this. Please check #329
This official Google examples for how to create holes in a polygon doesn't work:
https://developers.google.com/maps/documentation/javascript/examples/polygon-hole
When I look at the type of
addPoints
it expectsPosition[]
so therefore it doesn't work. And putting the coordinates in the same array doesn't work either because that gives you very strange results.Can this be fixed please? I'd do it myself but idk how to do it.
EDIT:
I found the Android/IOS equivalents to the web solution:
Android:
IOS (Swift):
The Android version should be pretty straightforward to implement but the IOS one I don't understand at all, it doesn't seem to work with straight coordinates..