protected virtual void ConvertProperties(KmlIconStyle style, GeoJsonProperties properties) { if (style == null) { return; } if (string.IsNullOrWhiteSpace(style.Icon?.Href) == false) { properties.MarkerSymbol = style.Icon.Href; } if (style.Scale > 0) { properties.MarkerSize = style.Scale.ToString("N2"); } if (style.Color.HasValue()) { properties.MarkerColor = style.Color; } }
public KmlStyle() { IconStyle = new KmlIconStyle(); LabelStyle = new KmlLabelStyle(); }