Export (0) Print
Expand All

Code examples

Bing

The following table describes code examples for common scenarios found on the API reference pages. Click the API reference topic to see all samples.

You can also download a list of complete samples at Bing Maps SDK for Windows Store apps Samples.

Task Featured APIs API Reference Topic

Create a map

Map

Map

Add a pushpin to the map

Map, Pushpin

Pushpin

Set the map center, zoom level and specify the map imagery.

Map

Map

Rotate the map

Map

Map

Change the map view and animation

Map

Map

Add map layers with images to a map

MapLayer

MapLayer

Add a filled shape to a map

MapLayer, MapPolygon

MapPolygon

Add a shape made from multiple lines to a map

MapShapeLayer, MapPolyline

MapPolyline

Add a map tile layer to the map

MapTileLayer

MapTileLayer

Specify the map imagery to display

MapType

MapType

Specify the animation time when the map view changes.

MapAnimationDuration

MapAnimationDuration

Calculate route directions

DirectionsManager, WaypointCollection

DirectionsManager

Geocode an address

SearchManager, GeocodeRequestOptions

SearchManager

Display traffic incidents on the map

TrafficManager, TrafficIncidentCollection

TrafficManager

Show:
© 2015 Microsoft