/// <summary> /// Creates a new marker and adds it to the control. /// </summary> /// <param name="style">Style for the new marker.</param> /// <param name="location">Location for the new marker.</param> /// <returns></returns> public GoogleStaticMapControl AddMarker(MapMarkerStyle style, Location location) { return AddMarker( new MapMarker { Style = style, Location = location }); }
/// <summary> /// Creates a new marker and adds it to the control. /// </summary> /// <param name="style">Style for the new marker.</param> /// <param name="latitude">Latitude to use for the location.</param> /// <param name="longitude">Longitude to center the location.</param> /// <returns></returns> public GoogleStaticMapControl AddMarker(MapMarkerStyle style, double latitude, double longitude) { return AddMarker(style, new Location(latitude, longitude)); }
/// <summary> /// Creates a new marker and adds it to the control. /// </summary> /// <param name="style">Style for the new marker.</param> /// <param name="locations">Locations for the new marker.</param> /// <returns></returns> public GoogleStaticMapControl AddMarker(MapMarkerStyle style, IEnumerable<Location> locations) { return AddMarker( new MapMarker { Style = style, Locations = locations }); }
/// <summary> /// Creates a new marker and adds it to the control. /// </summary> /// <param name="style">Style for the new marker.</param> /// <param name="address">Address to be resolved and to used for the location.</param> /// <returns></returns> public GoogleStaticMapControl AddMarker(MapMarkerStyle style, string address) { return AddMarker(style, new Location(address)); }