예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="marker">HtmlMarker to update.</param>
 /// <param name="options">Options to update the HtmlMarker with</param>
 public HtmlMarkerUpdate(HtmlMarker marker, HtmlMarkerOptions options)
 {
     if (!Guid.TryParse(marker?.Id, out _))
     {
         throw new ArgumentException("Please provide a marker which has already been added to the map");
     }
     Marker  = marker;
     Options = options;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options">Options of the HtmlMarker</param>
 /// <param name="eventActivationFlags">Events to activate on the marker</param>
 public HtmlMarker(HtmlMarkerOptions options, HtmlMarkerEventActivationFlags eventActivationFlags)
 {
     Id      = Guid.NewGuid().ToString();
     Options = options;
     EventActivationFlags = eventActivationFlags;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options">Options of the HtmlMarker</param>
 public HtmlMarker(HtmlMarkerOptions options) : this(options, HtmlMarkerEventActivationFlags.None())
 {
 }