Comparing version
{ | ||
"name": "bingmaps", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "These are the official TypeScript definitions for the Bing Maps V8 SDK. These can be used to provide intellisense and rich error detection to your IDE.", | ||
"typings": "index.d.ts", | ||
"typings": "Microsoft.Maps.All.d.ts", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "type": "git", |
@@ -44,2 +44,3 @@  | ||
``` | ||
/// <reference path="scripts/MicrosoftMaps/CustomMapStyles.d.ts" /> | ||
/// <reference path="scripts/MicrosoftMaps/Microsoft.Maps.d.ts" /> | ||
@@ -64,2 +65,3 @@ ``` | ||
| [GeoJson](https://msdn.microsoft.com/en-us/library/mt712806.aspx) | scripts/MicrosoftMaps/Modules/GeoJson.d.ts | | ||
| GeoXml | scripts/MicrosoftMaps/Modules/GeoXml.d.ts | | ||
| [Heat Map Layer](https://msdn.microsoft.com/en-us/library/mt712868.aspx) | scripts/MicrosoftMaps/Modules/HeatMapLayer.d.ts | | ||
@@ -103,2 +105,6 @@ | [Search](https://msdn.microsoft.com/en-us/library/mt712846.aspx) | scripts/MicrosoftMaps/Modules/Search.d.ts | | ||
## Related Projects ## | ||
* [Bing Maps V8 Code Samples](https://github.com/Microsoft/BingMapsV8CodeSamples) | ||
## Additional Resources ## | ||
@@ -105,0 +111,0 @@ |
/* | ||
* Copyright(c) 2016 Microsoft Corporation. All rights reserved. | ||
* Copyright(c) 2017 Microsoft Corporation. All rights reserved. | ||
* | ||
@@ -25,5 +25,2 @@ * This code is licensed under the MIT License (MIT). | ||
/// <reference path="Microsoft.Maps.d.ts"/> | ||
/* | ||
@@ -90,2 +87,5 @@ * The following are TypeScript definitions for the custom map styles JSON object which can be used witht he Bing Maps V8 SDK. | ||
landColor?: string; | ||
/** Specifies whether or not to draw elevation shading on the map. */ | ||
shadedReliefVisible?: boolean; | ||
} | ||
@@ -105,5 +105,2 @@ | ||
/** Not sure if it works */ | ||
archipelago?: IMapElementStyle; | ||
/** Area of land use, not to be confused with Structure */ | ||
@@ -118,5 +115,2 @@ area?: IMapElementStyle; | ||
/** A line on a property beyond which no building is allowed. */ | ||
buildingLine?: IMapElementStyle; | ||
/** Restaurant, hospital, school, etc. */ | ||
@@ -170,6 +164,3 @@ business?: IMapElementStyle; | ||
/** An military area. */ | ||
military?: IMapElementStyle; | ||
/** An island or isle is any piece of sub-continental land that is surrounded by water. */ | ||
/** Labeling of area of an island. */ | ||
island?: IMapElementStyle; | ||
@@ -188,2 +179,5 @@ | ||
medicalBuilding?: IMapElementStyle; | ||
/** A military area. */ | ||
military?: IMapElementStyle; | ||
@@ -236,3 +230,3 @@ /** A natural point of interest. */ | ||
/** Sign representing a compact name for a road. For example, I-5. */ | ||
roadShield?: IMapElementStyle; | ||
//roadShield?: IMapElementStyle; | ||
@@ -248,2 +242,5 @@ /** Land area covered by a runway. See also Airport for the land area of the whole airport. */ | ||
/** Area of a stadium. */ | ||
stadium?: IMapElementStyle; | ||
/** A street. */ | ||
@@ -250,0 +247,0 @@ street?: IMapElementStyle; |
/* | ||
* Copyright(c) 2016 Microsoft Corporation. All rights reserved. | ||
* Copyright(c) 2017 Microsoft Corporation. All rights reserved. | ||
* | ||
@@ -36,2 +36,3 @@ * This code is licensed under the MIT License (MIT). | ||
/// <reference path="Modules/GeoJson.d.ts"/> | ||
/// <reference path="Modules/GeoXml.d.ts"/> | ||
/// <reference path="Modules/HeatMapLayer.d.ts"/> | ||
@@ -38,0 +39,0 @@ /// <reference path="Modules/Search.d.ts"/> |
@@ -231,4 +231,4 @@ /* | ||
/** The name of the maneuver image. */ | ||
maneuverImageName: string; | ||
/** The type of maneuver being performed. */ | ||
maneuver: string; | ||
@@ -255,4 +255,25 @@ /** An array of strings, where each string is a hint to help determine when to move to the next direction step. Not all direction steps have hints. */ | ||
transitTerminus: string; | ||
/** An array of route warnings associated with this step. */ | ||
warnings: IDirectionsStepWarning[]; | ||
} | ||
/** Represents a route direction warning, such as a traffic congestion warning. */ | ||
export interface IDirectionsStepWarning { | ||
/** Where the warning starts. */ | ||
origin: string; | ||
/** The severity of the warning. Values can be: Low Impact, Minor, Moderate, Serious or None. */ | ||
severity: string; | ||
/** The warning text. */ | ||
text: string; | ||
/** Where the warning ends. */ | ||
to: string; | ||
/** The type of warning. A list of Warning type values can be found here: https://msdn.microsoft.com/en-us/library/hh441731.aspx */ | ||
warningType: string; | ||
} | ||
/** Represents a route. */ | ||
@@ -363,4 +384,3 @@ export interface IRoute { | ||
/** | ||
* The address string, business name, or search string of the waypoint. For example, the following strings are valid for this parameter: “Seattle”, | ||
* “Microsoft”, “pizza”, or “pizza Seattle”. Either the address or location property must be specified. | ||
* The address string of the waypoint. For example, the following strings are valid for this parameter: "Seattle", "1 Microsoft Way, Redmond, WA". Either the address or location property must be specified. | ||
*/ | ||
@@ -367,0 +387,0 @@ address?: string; |
@@ -37,2 +37,11 @@ /* | ||
} | ||
/** An object that contains options to change the settings of the drawing manager. */ | ||
export interface IDrawingManagerOptions { | ||
/** The fill color used for pushpins and polygons. */ | ||
fill: string | Color; | ||
/** The stroke color used for polylines and polygons. */ | ||
stroke: string | Color; | ||
} | ||
@@ -101,2 +110,8 @@ /** | ||
setDrawingMode(mode: DrawingTools.DrawingMode): void; | ||
/** | ||
* Sets the drawing tool options. | ||
* @param options The options to use with the drawing manager. | ||
*/ | ||
setOptions(options: IDrawingManagerOptions): void; | ||
@@ -103,0 +118,0 @@ /** |
@@ -28,7 +28,2 @@ /* | ||
declare module Microsoft.Maps { | ||
/** A standard dictionary object (associative array). */ | ||
export interface IDictionary<T> { | ||
[K: string]: T; | ||
} | ||
/** Options for customizing how the heat map is rendered. */ | ||
@@ -35,0 +30,0 @@ export interface IHeatMapLayerOptions { |
@@ -32,23 +32,3 @@ /* | ||
declare module Microsoft.Maps.Search { | ||
/** | ||
* Defines the match precision of a geocdoed result. | ||
* @requires The Microsoft.Maps.Search module. | ||
*/ | ||
export enum LocationPrecision { | ||
/** The geocode result was matched to a point on a road using interpolation. */ | ||
interpolated, | ||
/** | ||
* The geocode result was matched to a point on a road using interpolation with an additional offset to shift the | ||
* Location to the side of the street. | ||
*/ | ||
InterpolatedOffset, | ||
/** The geocode result was matched to the center of a parcel (property boundary). */ | ||
parcel, | ||
/** The geocode result was matched to the rooftop of a building. */ | ||
rooftop | ||
} | ||
/** | ||
@@ -93,6 +73,9 @@ * Defines the geocoding level of the location match found by the geocoder. | ||
/** A object that represents a geocoded location. */ | ||
/** An object that represents a geocoded location. */ | ||
export interface IGeocodeLocation { | ||
/** The map location of this geocode location match. */ | ||
location: Location; | ||
/** The latitude of the location. */ | ||
latitude: number; | ||
/** The longitude of the location. */ | ||
longitude: number; | ||
@@ -102,4 +85,7 @@ /** The name of this geocode location match. */ | ||
/** The precision of this geocode location match. */ | ||
precision: string | LocationPrecision; | ||
/** | ||
* The precision of this geocode location match. | ||
* Possible Values: Interpolated, InterpolatedOffset, Rooftop, Parcel | ||
*/ | ||
precision: string ; | ||
} | ||
@@ -106,0 +92,0 @@ |
@@ -207,3 +207,3 @@ /* | ||
*/ | ||
export function getBoundary(locations: string | Location | (string | Location)[], request: IGetBoundaryRequestOptions, credentials: string | Map, callback: (results: IGeoDataResultSet) => void): void; | ||
export function getBoundary(locations: string | Location | (string | Location)[], request: IGetBoundaryRequestOptions, credentials: string | Map, callback: (results: IGeoDataResultSet) => void, styles?: IPolygonOptions): void; | ||
} | ||
@@ -418,3 +418,3 @@ | ||
/** Specifies a conditional expression for a list of properties and values. */ | ||
filter?: IFilter; | ||
filter?: string | IFilter; | ||
@@ -462,2 +462,4 @@ /** Specifies whether or not to return a count of the results in the response. Default: false */ | ||
* @param styles - (Optional) Styles of the data that needs to be rendered on map | ||
* @param withoutLocationInfo - | ||
* @param errorCallback - | ||
*/ | ||
@@ -464,0 +466,0 @@ export function search(queryOptions: IQueryAPIOptions, |
Sorry, the diff of this file is too big to display
297885
7.86%22
4.76%5427
9.15%115
5.5%