public override string Code() { if (label == null) { return(base.Code()); } return(string.Format(@"new OL.LM(new OL.LL({0},{1}), new OL.I('{2}',{3}, {4}),{5}, {6})", Longitud.ToString(CultureInfo.InvariantCulture), Latitud.ToString(CultureInfo.InvariantCulture), ImageUrl, Size, Offset, !string.IsNullOrEmpty(Label) ? "'" + Label + "'" : "null", !string.IsNullOrEmpty(LabelStyle) ? "'" + LabelStyle + "'" : "null")); }
public override string ToString() { return(string.Concat(Latitud.ToString(CultureInfo.InvariantCulture), ",", Longitud.ToString(CultureInfo.InvariantCulture))); }