/// <summary> /// Creates a new marker and adds it to the control. /// </summary> /// <param name="location">Location for the new marker.</param> /// <returns></returns> public GoogleStaticMapControl AddMarker(Location location) { AddMarker( new MapMarker { Location = location }); return this; }
/// <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> /// Sets the center of the map to the specified location. /// </summary> /// <param name="location">Location to center the map on.</param> /// <returns></returns> public GoogleStaticMapControl CenterOn(Location location) { _urlBuilder.Center = location; return this; }