private static void SetTextStyles(SvgWriter writer, Config.Layer layerConfig) { if (layerConfig != null) { SetTextStyles(writer, layerConfig.TextStyle); } else { SetTextStyles(writer, new TextStyle()); } }
private static string GetLabel(Config.Layer layerConfig, IFeature feature) { return(layerConfig == null ? null : layerConfig.LabelStyle == null ? null : string.Format(layerConfig.LabelStyle.Format, layerConfig.LabelStyle.PropertyNames.Select(x => feature[x]).ToArray())); }