I have implemented the "Customizing a Map Pin" example from xamarin website (sorry i can't put links), the only change i did to the code is that i get the pin properties from a database so the pins are dynamically layed in the map based on values from that database.
Those pins represent parking spots and there are sensors detecting the parking spot occupancy, so on the application side i take the values from the database and create each pin based on those values, the color of the pin changes based on one of those values, everything is working fine BUT what i need to do now is to update the map and more specifically the pins.
What i thought first was to create a button creating a new instance of the same class (MapPage), but the problem is that the region currently seen on the map changes when the button is clicked, so is not optimal to create a new instance of the class to update the pins,
So the question is, how can i update the pins?, i don't put my code here because is almost identical to the example, i repeat the only difference from that code and mine is that the pin properties are obtained from a database.
Any ideas will be much appreciated!