Permalink
Browse files

July Update

  • Loading branch information...
1 parent e6d7cc4 commit 0621d4ddc1a8057bc7add3d9e89ceaf9b19ea3d3 richbrun committed Aug 10, 2017
View
@@ -27,6 +27,7 @@ Microsoft.Maps.Events.addOne(pin, 'changed', (e: Microsoft.Maps.IPrimitiveChange
//e.sender => reference to the pushpin object that changed.
});
+
layer.add(pin);
map.layers.insert(layer);
@@ -101,6 +102,17 @@ Microsoft.Maps.loadModule('Microsoft.Maps.DataBinning', () => {
});
+Microsoft.Maps.loadModule('Microsoft.Maps.GeoXml', () => {
+ var kml = Microsoft.Maps.GeoXml.write(pin, {
+ indentChars: '\t',
+ newLineChars: '\n',
+ prettyPrint: true,
+ roundLocations: true,
+ validate: true,
+ xmlFormat: Microsoft.Maps.GeoXmlFormat.Kml
+ });
+});
+
/***********************
* Custom Overlay Example
************************/
View
@@ -1,7 +1,7 @@
![Bing Maps Logo](images/BingMapsLogoTeal.png)
-[![NuGet](https://img.shields.io/badge/NuGet-1.0.14-blue.svg)](https://www.nuget.org/packages/Microsoft.BingMaps.V8.TypeScript/)
-[![npm](https://img.shields.io/badge/npm-1.0.14-red.svg)](https://www.npmjs.com/package/bingmaps)
+[![NuGet](https://img.shields.io/badge/NuGet-1.0.15-blue.svg)](https://www.nuget.org/packages/Microsoft.BingMaps.V8.TypeScript/)
+[![npm](https://img.shields.io/badge/npm-1.0.15-red.svg)](https://www.npmjs.com/package/bingmaps)
[![license](https://img.shields.io/badge/license-MIT-yellow.svg)](LICENSE.md)
# Bing Maps V8 TypeScript Definitions #
@@ -61,6 +61,7 @@ or you can add a reference to the individual module definitions.
| [Directions](https://msdn.microsoft.com/en-US/library/mt748655.aspx) | scripts/MicrosoftMaps/Modules/Directions.d.ts |
| [Drawing Tools](https://msdn.microsoft.com/en-us/library/mt750543.aspx) | scripts/MicrosoftMaps/Modules/DrawingTools.d.ts |
| [GeoJson](https://msdn.microsoft.com/en-us/library/mt712806.aspx) | scripts/MicrosoftMaps/Modules/GeoJson.d.ts |
+| [GeoXml](https://msdn.microsoft.com/en-us/library/mt825057.aspx) | scripts/MicrosoftMaps/Modules/GeoXml.d.ts |
| [Heat Map Layer](https://msdn.microsoft.com/en-us/library/mt712868.aspx) | scripts/MicrosoftMaps/Modules/HeatMapLayer.d.ts |
| [Search](https://msdn.microsoft.com/en-us/library/mt712846.aspx) | scripts/MicrosoftMaps/Modules/Search.d.ts |
| [Spatial Data Services](https://msdn.microsoft.com/en-us/library/mt712849.aspx) | scripts/MicrosoftMaps/Modules/SpatialDataServices.d.ts |
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.BingMaps.V8.TypeScript</id>
- <version>1.0.14</version>
+ <version>1.0.15</version>
<title>Bing Maps V8 TypeScript Definitions</title>
<authors>Microsoft</authors>
<owners>microsoft bingmaps</owners>
@@ -25,12 +25,13 @@
<file src="..\scripts\MicrosoftMaps\Modules\Directions.d.ts" target="content\scripts\MicrosoftMaps\Modules\Directions.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\DrawingTools.d.ts" target="content\scripts\MicrosoftMaps\Modules\DrawingTools.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\GeoJson.d.ts" target="content\scripts\MicrosoftMaps\Modules\GeoJson.d.ts" />
+ <file src="..\scripts\MicrosoftMaps\Modules\GeoXml.d.ts" target="content\scripts\MicrosoftMaps\Modules\GeoXml.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\HeatMapLayer.d.ts" target="content\scripts\MicrosoftMaps\Modules\HeatMapLayer.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\Search.d.ts" target="content\scripts\MicrosoftMaps\Modules\Search.d.ts" />
- <file src="..\scripts\MicrosoftMaps\Modules\SpatialDataService.d.ts" target="content\scripts\MicrosoftMaps\Modules\SpatialDataService.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\SpatialMath.d.ts" target="content\scripts\MicrosoftMaps\Modules\SpatialMath.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\Traffic.d.ts" target="content\scripts\MicrosoftMaps\Modules\Traffic.d.ts" />
<file src="..\scripts\MicrosoftMaps\Modules\WellKnownText.d.ts" target="content\scripts\MicrosoftMaps\Modules\WellKnownText.d.ts" />
+ <file src="..\scripts\MicrosoftMaps\Modules\SpatialDataService.d.ts" target="content\scripts\MicrosoftMaps\Modules\SpatialDataService.d.ts" />
<file src="..\scripts\MicrosoftMaps\CustomMapStyles.d.ts" target="content\scripts\MicrosoftMaps\CustomMapStyles.d.ts" />
<file src="..\scripts\MicrosoftMaps\Microsoft.Maps.All.d.ts" target="content\scripts\MicrosoftMaps\Microsoft.Maps.All.d.ts" />
<file src="..\scripts\MicrosoftMaps\Microsoft.Maps.d.ts" target="content\scripts\MicrosoftMaps\Microsoft.Maps.d.ts" />
View
@@ -1,8 +1,8 @@
{
"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": {
"type": "git",
"url": "git+https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions.git"
@@ -1,5 +1,5 @@
/*
- * Copyright(c) 2016 Microsoft Corporation. All rights reserved.
+ * Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
@@ -22,9 +22,6 @@
* THE SOFTWARE.
*/
-
-/// <reference path="Microsoft.Maps.d.ts"/>
-
/*
* The following are TypeScript definitions for the custom map styles JSON object which can be used witht he Bing Maps V8 SDK.
*/
@@ -86,6 +83,9 @@ declare module Microsoft.Maps {
export interface ISettingsStyle {
/** A hex color value that all land is first flushed to before things are drawn on it. */
landColor?: string;
+
+ /** Specifies whether or not to draw elevation shading on the map. */
+ shadedReliefVisible?: boolean;
}
/** Map Elements which can be styled. */
@@ -100,9 +100,6 @@ declare module Microsoft.Maps {
/** Area of land encompassing an airport. */
airport?: IMapElementStyle;
- /** Not sure if it works */
- archipelago?: IMapElementStyle;
-
/** Area of land use, not to be confused with Structure */
area?: IMapElementStyle;
@@ -112,9 +109,6 @@ declare module Microsoft.Maps {
/** A structure such as a house, store, factory. */
building?: IMapElementStyle;
- /** A line on a property beyond which no building is allowed. */
- buildingLine?: IMapElementStyle;
-
/** Restaurant, hospital, school, etc. */
business?: IMapElementStyle;
@@ -163,10 +157,7 @@ declare module Microsoft.Maps {
/** An area of land reserved for Indigenous people. */
indigenousPeoplesReserve?: 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;
/** Major roads. */
@@ -180,6 +171,9 @@ declare module Microsoft.Maps {
/** A building which provides medical services. */
medicalBuilding?: IMapElementStyle;
+
+ /** A military area. */
+ military?: IMapElementStyle;
/** A natural point of interest. */
naturalPoint?: IMapElementStyle;
@@ -227,7 +221,7 @@ declare module Microsoft.Maps {
roadExit?: IMapElementStyle;
/** Sign representing a compact name for a road. For example, I-5. */
- roadShield?: IMapElementStyle;
+ //roadShield?: IMapElementStyle;
/** Land area covered by a runway. See also Airport for the land area of the whole airport. */
runway?: IMapElementStyle;
@@ -238,6 +232,9 @@ declare module Microsoft.Maps {
/** A shopping center or mall. */
shoppingCenter?: IMapElementStyle;
+ /** Area of a stadium. */
+ stadium?: IMapElementStyle;
+
/** A street. */
street?: IMapElementStyle;
@@ -1,5 +1,5 @@
/*
- * Copyright(c) 2016 Microsoft Corporation. All rights reserved.
+ * Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
@@ -33,6 +33,7 @@
/// <reference path="Modules/Directions.d.ts"/>
/// <reference path="Modules/DrawingTools.d.ts"/>
/// <reference path="Modules/GeoJson.d.ts"/>
+/// <reference path="Modules/GeoXml.d.ts"/>
/// <reference path="Modules/HeatMapLayer.d.ts"/>
/// <reference path="Modules/Search.d.ts"/>
/// <reference path="Modules/SpatialDataService.d.ts"/>
Oops, something went wrong.

0 comments on commit 0621d4d

Please sign in to comment.