Beispiel #1
0
        private void AddMarkerGroup(MarkerStyle style, IEnumerable <Marker> group)
        {
            var sb    = new StringBuilder();
            var delim = "";

            if (style != default)
            {
                sb.Append(style);
                delim = "|";
            }

            foreach (var point in group)
            {
                sb.Append(delim)
                .Append(point.Center);
                delim = "|";
            }

            AddQuery(nameof(markers), sb);
        }
Beispiel #2
0
 public Marker(LatLngPoint center, MarkerStyle style = default)
     : this(center?.ToString(CultureInfo.InvariantCulture) ?? throw new ArgumentNullException(nameof(center)), style)
 {
 }
Beispiel #3
0
 public Marker(string center, MarkerStyle style = default)
 {
     Center = center;
     Style  = style;
 }