×
Namespaces

Variants
Actions
(Difference between revisions)

Maps Examples for Windows phone

From Nokia Developer Wiki
Jump to: navigation, search
symbianyucca (Talk | contribs)
(Symbianyucca -)
 
symbianyucca (Talk | contribs)
(Symbianyucca -)
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Draft]][[Category:Code Examples]][[Category:Windows Phone]][[Category:Location]]
+
[[Category:Code Examples]][[Category:Windows Phone]][[Category:Location]]
  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:
+
{{ArticleMetaData <!-- v1.2 -->
with XAML files add it to the CredentialsProviderwith cs files set it to “String ApplicationId” so it will be     used with services
+
|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]]
Qt versions of similar use case can be found from [http://www.developer.nokia.com/Community/Wiki/Qt_Maps_Examples Qt_Maps_Examples]  
+
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= LG Quantum
 +
|sdk= Windows Phone 7.1 SDK
 +
|platform= Windows Phone 7.5
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20110822
 +
|author= [[User:Symbianyucca]]
 +
}}
 +
 
 +
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]
 +
 
 +
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:
 +
# with XAML files add it to the {{Icode|CredentialsProvider}}
 +
# 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]]
 +
 
 
== Hello Map ==   
 
== 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).   
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_HelloMap.zip WP7_HelloMap.zip]   
+
Download example: [[Media:WP7 HelloMap.zip]]   
  
 
== Map events ==  
 
== Map events ==  
 
Show how different events can be captured, and which events are generated with different map changes.   
 
Show how different events can be captured, and which events are generated with different map changes.   
 
   
 
   
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapEvents.zip WP7_MapEvents.zip]
+
Download example: [[Media:WP7 MapEvents.zip]]
 
   
 
   
 
== Map interaction ==   
 
== Map interaction ==   
 
   
 
   
 
Show basic zooming and moving to different locations in the map as well as toggling map mode between street and Arial view.
 
Show basic zooming and moving to different locations in the map as well as toggling map mode between street and Arial view.
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapInteraction.zip WP7_MapInteraction.zip]
+
Download example: [[Media:WP7 MapInteraction.zip]]
  
 
== Simple Map content ==
 
== 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.   
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_SimpleMapContent.zip WP7_SimpleMapContent.zip]
+
Download example: [[Media:WP7 SimpleMapContent.zip]]
 
   
 
   
 
== More Map content ==   
 
== 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).
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MoreMapContent.zip WP7_MoreMapContent.zip]
+
Download example: [[Media:WP7 MoreMapContent.zip]]
 
   
 
   
 
== Map markers ==   
 
== Map markers ==   
 
 
Shows how to personalize Pushpins, use Draggable Pushpins, add and remove PushPind individually as well as with layers   
 
Shows how to personalize Pushpins, use Draggable Pushpins, add and remove PushPind individually as well as with layers   
  
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapMarkers.zip WP7_MapMarkers.zip]
+
Download example: [[Media:WP7 MapMarkers.zip]]
  
 
== Dynamic polyline ==   
 
== 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.   
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_DynamicPolyLine.zip WP7_DynamicPolyLine.zip]
+
Download example: [[Media:WP7 DynamicPolyLine.zip]]
 +
 
 
== My Map position ==
 
== 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.
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MyLocation.zip WP7_MyLocation.zip]
+
 
 +
Download example: [[Media:WP7 MyLocation.zip]]
 +
 
 
== Geo Coding ==
 
== Geo Coding ==
 
Simple example showing on how you can Geo code an address to a location utilizing the Geo coding service
 
Simple example showing on how you can Geo code an address to a location utilizing the Geo coding service
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_GeoCoding.zip WP7_GeoCoding.zip]
+
 
 +
Download example: [[Media:WP7 GeoCoding.zip]]
 
   
 
   
 
== Reverse Geo coding ==   
 
== Reverse Geo coding ==   
Line 51: Line 82:
 
Simple example showing on how you can Reverse Geo code location from an address by utilizing the reverse Geo coding service   
 
Simple example showing on how you can Reverse Geo code location from an address by utilizing the reverse Geo coding service   
  
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_RevGeoCode.zip WP7_RevGeoCode.zip]
+
Download example: [[Media:WP7 RevGeoCode.zip]]
 
   
 
   
 
== Map search ==
 
== Map search ==
 
Simple example showing how to do a simple text based search for places and show them in the map.   
 
Simple example showing how to do a simple text based search for places and show them in the map.   
  
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapSearch.zip WP7_MapSearch.zip]
+
Download example: [[Media:WP7 MapSearch.zip]]
 
   
 
   
 
== Routing ==
 
== 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.
 
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]]
Download example: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapRouting.zip WP7_MapRouting.zip]
+
 
    
 
    
 
 
== Maps Imagenary ==
 
== 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.
 
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: [http://www.developer.nokia.com/Community/Wiki/File:WP7_MapImagery.zip WP7_MapImagery.zip]
+
 
 +
Download example: [[Media:WP7 MapImagery.zip]]

Revision as of 10:16, 8 November 2012

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

Qt versions of similar use case can be found from Qt Maps Examples

Contents

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

Map events

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

Download example: Media:WP7 MapEvents.zip

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

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

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

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

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

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

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

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

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

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

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

428 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×