diff --git a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts index c7446f19fd..94c49f0b58 100644 --- a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts +++ b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts @@ -1,4 +1,11 @@ -declare module Microsoft.Maps.AdvancedShapes { +// Type definitions for Microsoft.Maps.AdvancedShapes 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh921952.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Microsoft.Maps.AdvancedShapes { export class EntityCollection { @@ -12,7 +19,7 @@ indexOf(entity: Entity): number; insert(entity: Entity, index: number): void; pop(): Entity; - push(entity: Entity); + push(entity: Entity): void; remove(entity: Entity): Entity; removeAt(index: number): Entity; setOptions(options: EntityCollectionOptions): void; diff --git a/bingmaps/Microsoft.Maps.Directions.d.ts b/bingmaps/Microsoft.Maps.Directions.d.ts index b55262c97c..670a04361b 100644 --- a/bingmaps/Microsoft.Maps.Directions.d.ts +++ b/bingmaps/Microsoft.Maps.Directions.d.ts @@ -1,4 +1,11 @@ -declare module Microsoft.Maps.Directions { +// Type definitions for Microsoft.Maps.Directions 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh312813.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Microsoft.Maps.Directions { export interface BusinessDetails { @@ -71,7 +78,7 @@ getShortAddress(): string; isExactLocation(): boolean; isViapoint(): boolean; - setOptions(options: WaypointOptions); + setOptions(options: WaypointOptions): void; changed: (args: WaypointEventArgs) => void; geocoded: (args: WaypointEventArgs) => void; @@ -161,44 +168,44 @@ constructor(map: Microsoft.Maps.Map); resetDirections(): void; - addWaypoint(waypoint: Waypoint, index?: number) : void; + addWaypoint(waypoint: Waypoint, index?: number): void; calculateDirections(): void; clearDisplay(): void; dispose(): void; getAllWaypoints(): Array; getMap(): Map; - getNearbyMajorRoads(location: Location, callback: any, errorCallback: any, userData: any) : void; + getNearbyMajorRoads(location: Location, callback: any, errorCallback: any, userData: any): void; getRenderOptions(): DirectionsRenderOptions; getRequestOptions(): DirectionsRequestOptions; getRouteResult(): Array; - removeWaypoint(waypoint: Waypoint) : void; - removeWaypoint(index: number) : void; - resetDirections(options: ResetDirectionsOptions) : void; - reverseGeocode(location: Location, callback: any, errorCallback: any, userData: any); + removeWaypoint(waypoint: Waypoint): void; + removeWaypoint(index: number): void; + resetDirections(options: ResetDirectionsOptions): void; + reverseGeocode(location: Location, callback: any, errorCallback: any, userData: any): void; setMapView(): void; setRenderOptions(options: DirectionsRenderOptions): void; - setRequestOptions(options: DirectionsRequestOptions):void; + setRequestOptions(options: DirectionsRequestOptions): void; - afterRouteSelectorRender: (args:RouteSelectorRenderEventArgs) => void; - afterStepRender: (args:DirectionsStepRenderEventArgs) => void; - afterSummaryRender: (args:RouteSummaryRenderEventArgs) => void; - afterWaypointRender: (args:WaypointRenderEventArgs) => void; - beforeDisambiguationRender: (args:DisambiguationRenderEventArgs) => void; - beforeRouteSelectorRender: (args:RouteSelectorRenderEventArgs) => void; - beforeStepRender: (args:DirectionsStepRenderEventArgs) => void; - beforeSummaryRender: (args:RouteSummaryRenderEventArgs) => void; - beforeWaypointRender: (args:WaypointRenderEventArgs) => void; - directionsError: (args:DirectionsErrorEventArgs) => void; - directionsUpdated: (args:DirectionsEventArgs) => void; + afterRouteSelectorRender: (args: RouteSelectorRenderEventArgs) => void; + afterStepRender: (args: DirectionsStepRenderEventArgs) => void; + afterSummaryRender: (args: RouteSummaryRenderEventArgs) => void; + afterWaypointRender: (args: WaypointRenderEventArgs) => void; + beforeDisambiguationRender: (args: DisambiguationRenderEventArgs) => void; + beforeRouteSelectorRender: (args: RouteSelectorRenderEventArgs) => void; + beforeStepRender: (args: DirectionsStepRenderEventArgs) => void; + beforeSummaryRender: (args: RouteSummaryRenderEventArgs) => void; + beforeWaypointRender: (args: WaypointRenderEventArgs) => void; + directionsError: (args: DirectionsErrorEventArgs) => void; + directionsUpdated: (args: DirectionsEventArgs) => void; dragDropCompleted: () => void; - itineraryStepClicked: (args:DirectionsStepEventArgs) => void; - mouseEnterRouteSelector: (args:RouteSelectorEventArgs) => void; - mouseEnterStep: (args:DirectionsStepEventArgs) => void; - mouseLeaveRouteSelector: (args:RouteSelectorEventArgs) => void; - mouseLeaveStep: (args:DirectionsStepEventArgs) => void; - routeSelectorClicked: (args:RouteSelectorEventArgs) => void; - waypointAdded: (args:WaypointEventArgs) => void; - waypointRemoved: (args:WaypointEventArgs) => void; + itineraryStepClicked: (args: DirectionsStepEventArgs) => void; + mouseEnterRouteSelector: (args: RouteSelectorEventArgs) => void; + mouseEnterStep: (args: DirectionsStepEventArgs) => void; + mouseLeaveRouteSelector: (args: RouteSelectorEventArgs) => void; + mouseLeaveStep: (args: DirectionsStepEventArgs) => void; + routeSelectorClicked: (args: RouteSelectorEventArgs) => void; + waypointAdded: (args: WaypointEventArgs) => void; + waypointRemoved: (args: WaypointEventArgs) => void; } export interface DirectionsStepEventArgs { diff --git a/bingmaps/Microsoft.Maps.Search.d.ts b/bingmaps/Microsoft.Maps.Search.d.ts index b1ef8be5ae..47169bb363 100644 --- a/bingmaps/Microsoft.Maps.Search.d.ts +++ b/bingmaps/Microsoft.Maps.Search.d.ts @@ -1,4 +1,11 @@ - declare module Microsoft.Maps.Search { +// Type definitions for Microsoft.Maps.Search 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Microsoft.Maps.Search { export interface Address { addressLine: string; diff --git a/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts b/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts index 6d45c78f73..9b009b3d7e 100644 --- a/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts +++ b/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts @@ -1,4 +1,9 @@ -declare module Microsoft.Maps.Themes { +// Type definitions for Microsoft.Maps.Themes 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Microsoft.Maps.Themes { export class BingTheme { constructor(); diff --git a/bingmaps/Microsoft.Maps.Traffic.d.ts b/bingmaps/Microsoft.Maps.Traffic.d.ts index 5978483e0f..312ae4c939 100644 --- a/bingmaps/Microsoft.Maps.Traffic.d.ts +++ b/bingmaps/Microsoft.Maps.Traffic.d.ts @@ -1,4 +1,11 @@ -declare module Microsoft.Maps.Traffic { +// Type definitions for Microsoft.Maps.Traffic 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh312840.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Microsoft.Maps.Traffic { export class TrafficManager { diff --git a/bingmaps/Microsoft.Maps.VenueMaps.d.ts b/bingmaps/Microsoft.Maps.VenueMaps.d.ts index 2d690a7b99..d68688cc77 100644 --- a/bingmaps/Microsoft.Maps.VenueMaps.d.ts +++ b/bingmaps/Microsoft.Maps.VenueMaps.d.ts @@ -1,4 +1,11 @@ -declare module Microsoft.Maps.VenueMaps { +// Type definitions for Microsoft.Maps.VenueMaps 7.0 +// Project: http://msdn.microsoft.com/en-us/library/hh312797.aspx +// Definitions by: [AUTHOR NAME] <[AUTHOR URL]> +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Microsoft.Maps.VenueMaps { export interface MouseResponse { eventArgs: MouseEventArgs; @@ -13,7 +20,7 @@ handleMouseOver(response: MouseResponse): void; isInDOM(): boolean; removeFromDOM(): void; - setHeight(height: number); + setHeight(height: number): void; click: (eventArgs: MouseEventArgs) => any; mouseOut: (eventArgs: MouseEventArgs) => any; @@ -120,15 +127,15 @@ export interface VenueMapCreationOptions { error: (errorCode: number, args: any) => any; success: (venueMap: VenueMap, args: any) => any; - venueMapId:string; + venueMapId: string; } export class VenueMapFactory { - + constructor(map: Map); create(options: VenueMapCreationOptions): void; - getNearbyVenues(options:NearbyVenueOptions):void; + getNearbyVenues(options: NearbyVenueOptions): void; } } \ No newline at end of file diff --git a/bingmaps/Microsoft.Maps.d.ts b/bingmaps/Microsoft.Maps.d.ts index fd9b244d5a..e01db13b34 100644 --- a/bingmaps/Microsoft.Maps.d.ts +++ b/bingmaps/Microsoft.Maps.d.ts @@ -1,4 +1,9 @@ -declare module Microsoft.Maps { +// Type definitions for Microsoft.Maps 7.0 +// Project: http://msdn.microsoft.com/en-us/library/gg427611.aspx +// Definitions by: Eric Todd +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Microsoft.Maps { export enum AltitudeReference { ground, @@ -14,8 +19,8 @@ latitude: number; longitude: number; - static areEqual(location1: Location, location2: Location); - static normalizeLongitude(longitude: number); + static areEqual(location1: Location, location2: Location): boolean; + static normalizeLongitude(longitude: number): number; clone(): Location; toString(): string; @@ -32,7 +37,7 @@ static fromCorners(northwest: Location, southeast: Location): LocationRect; static fromEdges(north: number, west: number, south: number, east: number, altitude: number, altitudeReference: AltitudeReference): LocationRect; static fromLocations(locations: Array): LocationRect; - static fromString(value: string); + static fromString(value: string): LocationRect; clone(): LocationRect; contains(location: Location): boolean; @@ -65,8 +70,8 @@ static addHandler(target: any, eventName: string, handler: () => void): any; static addThrottledHandler(target: any, eventName: string, handler: () => void, throttleInterval: number): any; static hasHandler(target: any, eventName: string): boolean; - static invoke(target: any, eventName: string, args: any); - static removeHandler(handlerId: any); + static invoke(target: any, eventName: string, args: any): void; + static removeHandler(handlerId: any): void; } export interface KeyEventArgs { @@ -129,11 +134,11 @@ isDownloadingTiles(): boolean; isMercator(): boolean; isRotationEnabled(): boolean; - setMapType(mapTypeId: MapTypeId); - setOptions(options: MapOptions); - setView(options: ViewOptions); - tryLocationToPixel(locations: Array, reference?: PixelReference); - tryPixelToLocation(points: Array, reference?: PixelReference); + setMapType(mapTypeId: MapTypeId): void; + setOptions(options: MapOptions): void; + setView(options: ViewOptions): void; + tryLocationToPixel(locations: Array, reference?: PixelReference): any; + tryPixelToLocation(points: Array, reference?: PixelReference): any; click: (eventArgs: MouseEventArgs) => void; copyrightchanged: () => void; @@ -284,7 +289,7 @@ indexOf(entity: Entity): number; insert(entity: Entity, index: number): void; pop(): Entity; - push(entity: Entity); + push(entity: Entity): void; remove(entity: Entity): Entity; removeAt(index: number): Entity; setOptions(options: EntityCollectionOptions): void; @@ -330,7 +335,7 @@ export interface Action { label?: string; icon?: string; - eventHandler: (args?:any) => void; + eventHandler: (args?: any) => void; } export interface InfoboxOptions { @@ -564,5 +569,5 @@ export function loadModule(moduleKey: string, options: ModuleOptions): void; export function moduleLoaded(moduleKey: string): void; - export function registerModule(moduleKey: string, scriptUrl: string, options?: ModuleOptions); + export function registerModule(moduleKey: string, scriptUrl: string, options?: ModuleOptions): void; } \ No newline at end of file