PreciousStones

PreciousStones

269k Downloads

API().getFieldsProtectingArea() not returning multiple fields protecting the same location.

vk2gpz opened this issue ยท 2 comments

commented

I've tried to use API().getFieldsProtectingArea(FieldFlag, Location) to obtain all the overlapping Fields, all of which protect the specified location.

However, this function does not seem to return all the overlapping fields. I always get just one field. Because of the return value (List), I assumed that I would be able to retrieve all the Field objects, which contain the specified location.

It would be appreciated if you could point me to the right direction in how to obtain the all fields, which contain the specified location.

thanks
vk2gpz

commented

It will return all fields that are protecting that location that are enabled and that contain that enabled flag.

commented

ty!!!