Hello,
So, the little bug that I have is that the turbines take a long time, hance the map take time to load
This is not a bug, but expected behavior.
Since you load the data in the OnAppearing method of the page, it will be reloaded from the network request on every page load.
LoadTurbinePins
is a very expensive method, which contains service initialization and two collection traversals.
You should try to reduce the number of executions of this method. For example, you can write data to a local file, and if the local file already exists, read the data from the local file. If the user does not update the data, there is no need to initiate a network request again.
You can refer to the documentation provided by .net on how to serialize objects to json files and deserialize from json files to objects.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.