added new map styles
This commit is contained in:
Родитель
636159ef33
Коммит
cd4e96c9cf
|
@ -41,6 +41,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Enums\AvoidType.cs" />
|
<Compile Include="Enums\AvoidType.cs" />
|
||||||
<Compile Include="Enums\ConfidenceLevel.cs" />
|
<Compile Include="Enums\ConfidenceLevel.cs" />
|
||||||
|
<Compile Include="Enums\ImageResolutionType.cs" />
|
||||||
<Compile Include="Enums\ImageFormatType.cs" />
|
<Compile Include="Enums\ImageFormatType.cs" />
|
||||||
<Compile Include="Enums\ImageryType.cs" />
|
<Compile Include="Enums\ImageryType.cs" />
|
||||||
<Compile Include="Enums\RouteAttributeType.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,
|
BirdseyeWithLabels,
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
Road,
|
Road,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Roads without additional imagery. Uses dynamic tile service.
|
||||||
|
/// </summary>
|
||||||
|
RoadOnDemand,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ordnance Survey imagery.
|
/// Ordnance Survey imagery.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -191,6 +191,11 @@ namespace BingMapsRESTToolkit
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RouteOptions RouteOptions { get; set; }
|
public RouteOptions RouteOptions { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies the resolution of the labels on the image to retrieve.
|
||||||
|
/// </summary>
|
||||||
|
public ImageResolutionType Resolution { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
@ -282,6 +287,11 @@ namespace BingMapsRESTToolkit
|
||||||
sb.Append("&he=1");
|
sb.Append("&he=1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Resolution == ImageResolutionType.High)
|
||||||
|
{
|
||||||
|
sb.Append("&dpi=Large");
|
||||||
|
}
|
||||||
|
|
||||||
//Routing Parameters
|
//Routing Parameters
|
||||||
|
|
||||||
if (isRoute)
|
if (isRoute)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче