×
Namespaces

Variants
Actions
(Difference between revisions)

Maps Examples for Windows phone

From Nokia Developer Wiki
Jump to: navigation, search
symbianyucca (Talk | contribs)
(Symbianyucca -)
hamishwillee (Talk | contribs)
m (Hamishwillee - Point projects link to github)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Code Examples]][[Category:Windows Phone]][[Category:Location]]
+
[[Category:Maps on Windows Phone‎]][[Category:Windows Phone 7.5]][[Category:Code Examples]]
 
{{ArticleMetaData <!-- v1.2 -->
 
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= [[Media:WP7 SimpleMapContent.zip]] [[Media:WP7 MapRouting.zip]] [[Media:WP7 MapInteraction.zip]] [[Media:WP7 HelloMap.zip]] [[Media:WP7 GeoCoding.zip]] [[Media:WP7 MapEvents.zip]] [[Media:WP7 RevGeoCode.zip]] [[Media:WP7 DynamicPolyLine.zip]] [[Media:WP7 MapImagery.zip]] [[Media:WP7 MapSearch.zip]] [[Media:WP7 MapMarkers.zip]] [[Media:WP7 MyLocation.zip]] [[Media:WP7 MoreMapContent.zip]]  
 
|sourcecode= [[Media:WP7 SimpleMapContent.zip]] [[Media:WP7 MapRouting.zip]] [[Media:WP7 MapInteraction.zip]] [[Media:WP7 HelloMap.zip]] [[Media:WP7 GeoCoding.zip]] [[Media:WP7 MapEvents.zip]] [[Media:WP7 RevGeoCode.zip]] [[Media:WP7 DynamicPolyLine.zip]] [[Media:WP7 MapImagery.zip]] [[Media:WP7 MapSearch.zip]] [[Media:WP7 MapMarkers.zip]] [[Media:WP7 MyLocation.zip]] [[Media:WP7 MoreMapContent.zip]]  
Line 5: Line 5:
 
|devices= LG Quantum
 
|devices= LG Quantum
 
|sdk= Windows Phone 7.1 SDK
 
|sdk= Windows Phone 7.1 SDK
|platform= Windows Phone 7.5
+
|platform= Windows Phone 7.5 (only)
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
Line 23: Line 23:
 
}}
 
}}
  
If you are looking for WP8 Maps Examples, you could find these same use case from [http://projects.developer.nokia.com/WP8MapsExamples Windows Phone 8 Maps Examples project]
+
If you are looking for WP8 Maps Examples, you could find these same use case from [http://github.com/nokia-developer/maps-sampless Windows Phone 8 Maps Examples project]
  
 
These Examples were tested on WP7.1 SDK emulator as well as on LG Quantum device. Note that in order to get these examples to work you do need to get Key from [http://www.bingmapsportal.com/ bingmapsportal] and add that to the following places:
 
These Examples were tested on WP7.1 SDK emulator as well as on LG Quantum device. Note that in order to get these examples to work you do need to get Key from [http://www.bingmapsportal.com/ bingmapsportal] and add that to the following places:
Line 29: Line 29:
 
# with cs files set it to {{Icode|String ApplicationId}} so it will be used with services
 
# with cs files set it to {{Icode|String ApplicationId}} so it will be used with services
  
Qt versions of similar use case can be found from [[Qt Maps Examples]]  
+
 
 +
* Qt versions of similar use case can be found from [[Qt Maps Examples]]
 +
* An HTML and JavaScript version of similar use cases can be found from [[Maps_Examples_for_Nokia_Maps_API | JavaScript Map Examples]]
  
 
== Hello Map ==   
 
== Hello Map ==   

Latest revision as of 08:43, 1 November 2013

SignpostIcon HereMaps 99.png
SignpostIcon WP7 70px.png
Article Metadata

If you are looking for WP8 Maps Examples, you could find these same use case from Windows Phone 8 Maps Examples project

These Examples were tested on WP7.1 SDK emulator as well as on LG Quantum device. Note that in order to get these examples to work you do need to get Key from bingmapsportal and add that to the following places:

  1. with XAML files add it to the CredentialsProvider
  2. with cs files set it to String ApplicationId so it will be used with services


Contents

[edit] Hello Map

Basic map with kinetic panning and pinch zooming. Also includes menu options for disabling animations (disables kinetic panning as well), as well as disabling the map (makes it static).

Download example: Media:WP7 HelloMap.zip

[edit] Map events

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

Download example: Media:WP7 MapEvents.zip

[edit] Map interaction

Show basic zooming and moving to different locations in the map as well as toggling map mode between street and Arial view. Download example: Media:WP7 MapInteraction.zip

[edit] Simple Map content

Shows how to add and remove Pushpins (markers), polyline and polygon to the Map, as well as how to Z-order then, toggle visibility of the map items. Example also shows how to zoom the map in order to fit the selected map content into the view.

Download example: Media:WP7 SimpleMapContent.zip

[edit] 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). Download example: Media:WP7 MoreMapContent.zip

[edit] Map markers

Shows how to personalize Pushpins, use Draggable Pushpins, add and remove PushPind individually as well as with layers

Download example: Media:WP7 MapMarkers.zip

[edit] 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.

Download example: Media:WP7 DynamicPolyLine.zip

[edit] My Map position

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.

Download example: Media:WP7 MyLocation.zip

[edit] Geo Coding

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

Download example: Media:WP7 GeoCoding.zip

[edit] Reverse Geo coding

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

Download example: Media:WP7 RevGeoCode.zip

[edit] Map search

Simple example showing how to do a simple text based search for places and show them in the map.

Download example: Media:WP7 MapSearch.zip

[edit] Routing

Simple example showing how you can route between two points and show the route in a map. Start and end points are implemented with draggable pushpins.

Download example: Media:WP7 MapRouting.zip

[edit] Maps Imagenary

Simple example showing on how you can get an Url for and maps image from selected point, as well as how to get meta data for that image.

Download example: Media:WP7 MapImagery.zip

This page was last modified on 1 November 2013, at 08:43.
557 page views in the last 30 days.
×