A collection of examples for Windows Phone 8 illustrating both basic and advanced Map usage scenarios.
Перейти к файлу
Tomi Paananen 2d748b1f38 Update README.md 2014-11-12 15:14:46 +02:00
AreaSelector Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
CustomTileSource Custom tile source example 2013-05-30 20:04:55 +03:00
DraggableMarker Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
DynamicPolyLine Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
GeoCoding Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
GetMyGeoposition Added some location codes 2013-03-25 10:09:28 +02:00
HelloMap Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
LaunchDirectionsTask Added maps launchers examples 2013-03-04 11:49:42 +02:00
LaunchMapSearchTask Added maps launchers examples 2013-03-04 11:49:42 +02:00
LaunchMapTask Added maps launchers examples 2013-03-04 11:49:42 +02:00
LocationSelector Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MapEvents Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MapInteraction Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MapMarkers Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MapRouting Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MoreMapContent Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
MyLocation Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
RevGeoCoding Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
RoutingAdvanced Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
SaveMapImageEx Save map control snapshot 2013-05-13 15:43:10 +03:00
SimpleContent Cleaned UIs and code a lot, added special number-input-box class, remade the advanced routing example. 2013-03-01 15:20:02 +02:00
TrackMeInBackground Added some location codes 2013-03-25 10:09:28 +02:00
TrackMyPosition Added some location codes 2013-03-25 10:09:28 +02:00
TrackMyPositionTwo Added some location codes 2013-03-25 10:09:28 +02:00
doc Added README.md and license file. 2013-10-30 13:13:55 +02:00
.gitignore Custom tile source example 2013-05-30 20:04:55 +03:00
Licence.txt Updated copyright and license information. 2014-04-25 13:55:56 +03:00
README.md Update README.md 2014-11-12 15:14:46 +02:00

README.md

Windows Phone 8 Maps Examples

This project is just a collection of Maps examples for Windows Phone 8. The basic use cases were previously implemented for other platforms and the examples are available on the wiki:

This project is hosted in GitHub: https://github.com/Microsoft/maps-samples

Hello map

Basic map with kinetic panning and pinch zooming. Also includes menu option for disabling the map (makes it static).

Map events

Shows on how different events can be captured, and which events are generated with different map changes.

Map interaction

Shows map moving to predefined locations:

  • Switching different animation modes (parabolic, linear, none)
  • Changing heading, pitch & zoom levels
  • Switching between map color (light/dark) modes & map types (road, Arial, hybrid, terrain)
  • Toggling pedestrian features & landmarks on/off
  • Setting multiple values with setview()

Simple map content

Shows how to add and remove Markers (MapOverlay), Polyline and Polygon to the Map. Example also shows how to zoom the map in order to fit the selected map content into the view.

There is also related wiki articles for this example code: Fitting content into the view with Windows Phone maps API and Hiding map content with Windows Phone maps API.

More map content

Shows how to make rectangle & circle with polygon and how to add them into the map. Also shows differences adding ellipse & rectangle objects to the map (non-map objects).

There is also related wiki articles for this example code: Drawing shapes with Windows Phone maps_API.

Draggable marker

Just an simple example illustrating minimal implementation for draggable markers. There is also Wiki page made to explain the code a bit: Draggable markers with Windows Phone maps API

Map markers

Work in progress, is here just so it could be compared with other platform examples.

Dynamic polyline

Shows how to add and remove markers to the map with click events, as well as how to dynamically add and remove points from polyline.

My location

Shows how to use GeoCoordinateWatcher to get and monitor GPS position and how to show that on the map using circle polygon to show the accuracy of the position.

Geo coding

Simple example showing on how you can Geo code an address to a location(s) utilizing the Geo coding service.

Reverse geo coding

Simple example showing on how you can Reverse Geo code location from an address by utilizing the reverse Geo coding service .

Routing

Very Simple example showing how you can route between two points and show the route in a map.

Advanced routing

Nicer UI example for the routing.

Location selector

Example showing how to implement location selector page and add it to your project.

Area selector

Example showing how to implement Circle Area selector page and add it to your project. The special numeric input box used in this project is explained in Implementing numerical inputbox wiki article.

LaunchDirectionsTask

Example based on advanced routing UI, which shows how to instead draw the route to Maps application by utilizing the MapsDirectionsTask API.

LaunchMapSearchTask

Example showing how to use mapsTask API for location based searching with Maps.

LaunchMapTask

Example showing how to use mapsTask API for showing Map location.

GetMyGeoposition

Very simple example illustrating how to use Geolocator to get single shot location.

TrackMyPosition and TrackMyPositionTwo

Simple Examples showing the differences for the the location tracking between the Geolocator and GeoCoordinateWatcher API.

TrackMeInBackground

Very simple example for showing how to run position tracking in the background.


Copyright (c) 2012-2014 Microsoft Mobile. All rights reserved.