This commit is contained in:
Ricky Brundritt 2017-05-05 11:46:58 -07:00
Родитель 636159ef33
Коммит cd4e96c9cf
4 изменённых файлов: 50 добавлений и 1 удалений

Просмотреть файл

@ -41,6 +41,7 @@
<ItemGroup>
<Compile Include="Enums\AvoidType.cs" />
<Compile Include="Enums\ConfidenceLevel.cs" />
<Compile Include="Enums\ImageResolutionType.cs" />
<Compile Include="Enums\ImageFormatType.cs" />
<Compile Include="Enums\ImageryType.cs" />
<Compile Include="Enums\RouteAttributeType.cs" />

Просмотреть файл

@ -0,0 +1,18 @@
namespace BingMapsRESTToolkit
{
/// <summary>
/// An enumeration for image resolution.
/// </summary>
public enum ImageResolutionType
{
/// <summary>
/// The default resolution.
/// </summary>
Default,
/// <summary>
/// High DPI resolution.
/// </summary>
High
}
}

Просмотреть файл

@ -50,10 +50,30 @@ namespace BingMapsRESTToolkit
BirdseyeWithLabels,
/// <summary>
/// Roads without additional imagery.
/// A dark version of the road maps.
/// </summary>
CanvasDark,
/// <summary>
/// A lighter version of the road maps which also has some of the details such as hill shading disabled.
/// </summary>
CanvasLight,
/// <summary>
/// A grayscale version of the road maps.
/// </summary>
CanvasGray,
/// <summary>
/// Roads without additional imagery. Uses legacy static tile service.
/// </summary>
Road,
/// <summary>
/// Roads without additional imagery. Uses dynamic tile service.
/// </summary>
RoadOnDemand,
/// <summary>
/// Ordnance Survey imagery.
/// </summary>

Просмотреть файл

@ -191,6 +191,11 @@ namespace BingMapsRESTToolkit
/// </summary>
public RouteOptions RouteOptions { get; set; }
/// <summary>
/// Specifies the resolution of the labels on the image to retrieve.
/// </summary>
public ImageResolutionType Resolution { get; set; }
#endregion
#region Public Methods
@ -282,6 +287,11 @@ namespace BingMapsRESTToolkit
sb.Append("&he=1");
}
if(Resolution == ImageResolutionType.High)
{
sb.Append("&dpi=Large");
}
//Routing Parameters
if (isRoute)