title: How to set certain icon instead of default pins?
body: <p>I'm trying to use certain icon instead of default Xamarin.Forms pins on Map.
  So I created CustomisePin class that inheritance Pin.</p>
  
  <pre><code>using Xamarin.Forms.Maps;
  namespace agroNet.Tools
  {
      public class CustomPin : Pin
      {
          public string PinIcon { get; set; }
      }
  }
  </code></pre>
  
  <p>Here is what I tried in my ViewModel</p>
  
  <pre><code>private Map _map;
  
          public IrrigNetViewModel(Map map)
          {
              dialog = UserDialogs.Instance.Loading(AppResource.LocalizationResource.Loading);        
              TabTappedCommand = new Command((tabName) =&gt; OnTapClicked(tabName.ToString()));
              HideListOnTapCommand = new Command(HideListOnTap);
              _map = map;
              GetData();
          }
  </code></pre>
  
  <p>And here is method wor set pins on positions.</p>
  
  <pre><code>public void LoadMapTab()
          {
  
              //var irrigNetPins = new List&lt;CustomPin&gt;();
  
              foreach (var item in IrrigNetCollection)
              {
                  //var pins = new CustomPin
                  //{
                  //    Label = item.StationName,
                  //    Position = new Position(item.StationLatitude, item.StationLongitude),
                  //    PinIcon = "satellite.png"
                  //};
  
                  _map.Pins.Add(new CustomPin
                  {
                      Label = item.StationName,
                      Position = new Position(item.StationLatitude, item.StationLongitude),
                      //PinIcon = P
                  });
                  _map.MoveToRegion(
                      MapSpan.FromCenterAndRadius(new Position(item.StationLatitude, item.StationLongitude),
                      Distance.FromKilometers(30)));
  
                  //irrigNetPins.Add(pins);
              }
  
              //return irrigNetPins;
          }
  </code></pre>
  
  <p>In LoadMapTab under the comment lines is what I have tried to set pin icon.</p>
  
  <p>And here is part of View if it's important because of Binding Context.</p>
  
  <pre><code>public partial class IrrigNetPage : ContentPage
      {
  
          public IrrigNetPage()
          {
              InitializeComponent();
              BindingContext = new IrrigNetViewModel(MainMap);
          }
      }
  </code></pre>
  
  <p>I find some examples on Google, like:
  <a href="https://github.com/raechten/BindableMapTest" rel="nofollow noreferrer">https://github.com/raechten/BindableMapTest</a>
  <a href="https://github.com/paulpatarinski/ShouldIWashMyCar" rel="nofollow noreferrer">https://github.com/paulpatarinski/ShouldIWashMyCar</a></p>
  
  <p>For some reason I can't event run them, but still I tried to use code and no matter what I have Pin are alwas default, or not even show.</p>
  
  <p>What is simple way to set certain icon for pin and is it posiple to render it  just with some path to the icon without rendering map also (Because I saw many create costumise map for customised pins).</p>
  
  <p>Also If it's important for someon I'm using MVVM patern.</p>