Example #1
0
 public Markers(MarkerOptions mo)
 {
     markerOptions  = mo;
     Icon           = mo.Icon;
     markerLocation = LatLngDTO.ToLatLngDTO(mo.Position);
     title          = mo.Title;
     snippet        = mo.Snippet;
 }
Example #2
0
 public static LatLng ToLatLng(LatLngDTO latLng)
 {
     if (latLng == null)
     {
         return(null);
     }
     else
     {
         return(new LatLng(latLng.Latitude, latLng.Longitude));
     }
 }
Example #3
0
 private static MarkerOptions ToMarkerOptions(Markers mark)
 {
     if (mark == null)
     {
         return(null);
     }
     else
     {
         return(new MarkerOptions().SetIcon(mark.Icon).SetPosition(LatLngDTO.ToLatLng(mark.markerLocation)).SetTitle(mark.title).SetSnippet(mark.snippet));
     }
 }