private string _defaultImage;
private string _titleFieldName = "LinkTitle";
private string _descriptionFieldName = "InfoBoxHtml";
private string _imageFieldName = "PushpinImage";
private string _latitudeFieldName = "Latitude";
private string _longitudeFieldName = "Longitude";
/// <summary>
/// Gets or sets the default image.
/// </summary>
/// <value>The default image.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Default Image")][Description("The default image that's used for pushpins that get added by the connection.")]public string DefaultImage { get { return _defaultImage;
}
set { _defaultImage = value;
}
}
/// <summary>
/// Gets or sets the name of the title field.
/// </summary>
/// <value>The name of the title field.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Title Field Name")][Description("The name of the field that contains the title for the pushpins.")]public string TitleFieldName { get { return _titleFieldName;
}
set { _titleFieldName = value;
}
}
/// <summary>
/// Gets or sets the name of the info window HTML field.
/// </summary>
/// <value>The name of the info window HTML field.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("InfoBoxHtml Field Name")][Description("The name of the field that contains the info box HTML for the pushpins.")]public string InfoBoxHtmlFieldName { get { return _descriptionFieldName;
}
set { _descriptionFieldName = value;
}
}
/// <summary>
/// Gets or sets the name of the latitude field.
/// </summary>
/// <value>The name of the latitude field.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Latitude Field Name")][Description("The name of the field that contains the latitude for the pushpins.")]public string LatitudeFieldName { get { return _latitudeFieldName;
}
set { if (string.IsNullOrEmpty(value)) { throw new WebPartPageUserException("The Latitude Field Name property cannot be null or empty"); }
_latitudeFieldName = value;
}
}
/// <summary>
/// Gets or sets the name of the longitude field.
/// </summary>
/// <value>The name of the longitude field.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Longitude Field Name")][Description("The name of the field that contains the longitude for the pushpins.")]public string LongitudeFieldName { get { return _longitudeFieldName;
}
set { if (string.IsNullOrEmpty(value)) { throw new WebPartPageUserException("The Longitude Field Name property cannot be null or empty"); }
_longitudeFieldName = value;
}
}
/// <summary>
/// Gets or sets the name of the image field.
/// </summary>
/// <value>The name of the image field.</value>
[Browsable(true)]
[Category("Connection Settings")][WebPartStorage(Storage.Shared)]
[FriendlyName("Image Field Name")][Description("The name of the field that contains the image for the pushpins.")]public string ImageFieldName { get { return _imageFieldName;
}
set { _imageFieldName = value;
}
}