public Markers(MarkerOptions mo) { markerOptions = mo; Icon = mo.Icon; markerLocation = LatLngDTO.ToLatLngDTO(mo.Position); title = mo.Title; snippet = mo.Snippet; }
public static LatLng ToLatLng(LatLngDTO latLng) { if (latLng == null) { return(null); } else { return(new LatLng(latLng.Latitude, latLng.Longitude)); } }
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)); } }