×
Namespaces

Variants
Actions
(Difference between revisions)

Qt Maps Examples

From Nokia Developer Wiki
Jump to: navigation, search
symbianyucca (Talk | contribs)
(Created page with 'Category:Qt These are work on progress examples, that are build with currently available public tools. Some examples are not working due bugs, and then there should be a bug …')
 
girishpadia (Talk | contribs)
Line 1: Line 1:
 
[[Category:Qt]]
 
[[Category:Qt]]
These are work on progress examples, that are build with currently available public tools. Some examples are not working due bugs, and then there should be a bug report mentioned for seeing the available fix.
+
These examples are built with currently available public tools. The work is under more enhancement for the given examples. Some examples may not work due to the bugs. You may look into the bug report for the avaiable fix.  
  
 
Anyway, with some of the examples, do also note the bug [http://bugreports.qt.nokia.com/browse/QTMOBILITY-841 QTMOBILITY-841] that prevents selecting map items on some zoom levels.
 
Anyway, with some of the examples, do also note the bug [http://bugreports.qt.nokia.com/browse/QTMOBILITY-841 QTMOBILITY-841] that prevents selecting map items on some zoom levels.
Line 8: Line 8:
 
= HelloMap =  
 
= HelloMap =  
  
A simple map without any additional code, simply showing a map that has no interaction possibilities.
+
This is a simple map without any additional code. It simply showing a map without interaction possibilities.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:HelloMap.zip HelloMap.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:HelloMap.zip HelloMap.zip]
  
 
= Simple map =  
 
= Simple map =  
Line 16: Line 16:
 
Hello world map example which has simple panning included in it.
 
Hello world map example which has simple panning included in it.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:SimpleMap.zip SimpleMap.zip]
+
The example available at [http://wiki.forum.nokia.com/index.php/File:SimpleMap.zip SimpleMap.zip]
  
 
= Simple map 2 =
 
= Simple map 2 =
  
Simple map example with added with kinetic panning
+
This is a simple map example added with kinetic panning
  
Example available at [http://wiki.forum.nokia.com/index.php/File:SimpleMap2.zip SimpleMap2.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:SimpleMap2.zip SimpleMap2.zip]
  
 
= MapInteraction =  
 
= MapInteraction =  
  
Shows how to do zooming, changing map type, moving to coordinates, and getting current coordinate from the map.
+
This example shows how to zoom the map, changing map type, moving to coordinates and getting current coordinate from the map.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MapInteraction.zip MapInteraction.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:MapInteraction.zip MapInteraction.zip]
  
 
= SimpleMapContent =
 
= SimpleMapContent =
  
Shows adding & removing markers, polyline & polygon. Toggling visibility, using z-ordering and zooming to map objects  
+
This example shows adding & removing markers, polyline & polygon. Toggling visibility, using z-ordering and zooming to map objects  
  
Note zooming works on simulator and not in Symbian target device. There is a reported bug on this one [http://bugreports.qt.nokia.com/browse/QTMOBILITY-876  QTMOBILITY-876].
+
Please note that  zooming works well on simulator but not on Symbian target device. There is a bug reported at  [http://bugreports.qt.nokia.com/browse/QTMOBILITY-876  QTMOBILITY-876].
  
Example available at [http://wiki.forum.nokia.com/index.php/File:SimpleMapContent.zip SimpleMapContent.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:SimpleMapContent.zip SimpleMapContent.zip]
  
 
= MoreMapContent =  
 
= MoreMapContent =  
  
Shows handling of circle, rectangle & text map objects with the map.
+
This example shows how to handle circle, rectangle & text map objects with the map.
  
Note zooming works on simulator and not in Symbian target device. There is a reported bug on this one [http://bugreports.qt.nokia.com/browse/QTMOBILITY-876  QTMOBILITY-876].
+
Please note that zooming works well on simulator but not on Symbian target device. There is a bug reported at  [http://bugreports.qt.nokia.com/browse/QTMOBILITY-876  QTMOBILITY-876].
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MoreMapContent.zip MoreMapContent.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:MoreMapContent.zip MoreMapContent.zip]
  
 
= MapMarkers =  
 
= MapMarkers =  
  
Shows different ways on using and loading images to the QGeoMapPixmapObject as well as general marker handlings.
+
This example shows different ways on using and loading images to the QGeoMapPixmapObject as well as general marker handlings.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MapMarkers.zip MapMarkers.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:MapMarkers.zip MapMarkers.zip]
  
 
= MapAreaSelector =  
 
= MapAreaSelector =  
  
An example showing how you could make simple rectangle & circle area selectors. These selectors are used with use in Geo coding & search examples.
+
This is an example showing how you can make simple rectangle & circle area selectors. These selectors are used with Geo coding & search examples.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MapAreaSelector.zip MapAreaSelector.zip]
+
This is example is available at [http://wiki.forum.nokia.com/index.php/File:MapAreaSelector.zip MapAreaSelector.zip]
  
 
= DynamicPolyline =
 
= DynamicPolyline =
  
An example showing dynamic polyline handling via touch events. Polyline points can be added by clicking on the map, and removed by clicking on the marker showing the polyline points already added.
+
This example shows dynamic polyline handling via touch events. Polyline points can be added by clicking on the map and removed by clicking on the marker showing the polyline points already added.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:DynamicPolyline.zip DynamicPolyline.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:DynamicPolyline.zip DynamicPolyline.zip]
  
 
= GeoCodeMap =
 
= GeoCodeMap =
  
Geo coding example that shows how you can find positions for address. This example also shows how a rectangle area selector could be used inside a dialog.
+
This is example of Geo coding that shows how you can find positions for address. This example also shows how a rectangle area selector could be used inside a dialog.
  
Geocoding without any area will not work on device, the bug report can be found from [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1371 QTMOBILITY-1371]
+
Geocoding without any area will not work on device. The bug report can be found from [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1371 QTMOBILITY-1371]
  
Example available at [http://wiki.forum.nokia.com/index.php/File:GeoCodeMap.zip GeoCodeMap.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:GeoCodeMap.zip GeoCodeMap.zip]
  
 
= ReverceGeoCode =  
 
= ReverceGeoCode =  
  
Simple reverse geo coding example showing on how you can get address details of a geo position.
+
This is an example of simple reverse geo coding which shows how you can get address details of a geo position.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:ReverceGeoCode.zip ReverceGeoCode.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:ReverceGeoCode.zip ReverceGeoCode.zip]
  
 
= MapSearch =  
 
= MapSearch =  
  
An example that shows on how you can use the search. It also shows how to use a circle area selector with the search.
+
This example shows how you can use the search. It also shows how to use a circle area selector with the search.
  
Currently the API appears not to give any results, and there is a bug report for this one [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1372 QTMOBILITY-1372].
+
Currently the API appears not to give any results, and there is a bug report for this at [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1372 QTMOBILITY-1372].
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MapSearch.zip MapSearch.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:MapSearch.zip MapSearch.zip]
  
 
= SimpleRouting =  
 
= SimpleRouting =  
  
Very simple two-point routing, without actually doing anything on the route segments etc, simply having two Draggable markers for start&stop points, and then showing the returned route object on the map.
+
The example shows simple two-point routing without actually doing anything on the route segments etc. The example is having two Draggable markers for start & stop points and then showing the returned route object on the map.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:SimpleRouting.zip SimpleRouting.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:SimpleRouting.zip SimpleRouting.zip]
  
 
= MyLocationMap =  
 
= MyLocationMap =  
  
Shows how to get and monitoring location of the device and show it on a map, as well as shows usage of the QGeoAreaMonitor. It also uses circle area selector with the area monitor.
+
This example shows how to get and monitor location of the device and show it on a map, as well as shows usage of the QGeoAreaMonitor. It also uses circle area selector with the area monitor.
  
 
There is a known bug [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1059 QTMOBILITY-1059] and with devices the QGeoAreaMonitor does not work, since it is null.
 
There is a known bug [http://bugreports.qt.nokia.com/browse/QTMOBILITY-1059 QTMOBILITY-1059] and with devices the QGeoAreaMonitor does not work, since it is null.
  
Example available at [http://wiki.forum.nokia.com/index.php/File:MyLocationMap.zip MyLocationMap.zip]
+
The example is available at [http://wiki.forum.nokia.com/index.php/File:MyLocationMap.zip MyLocationMap.zip]

Revision as of 07:18, 4 March 2011

These examples are built with currently available public tools. The work is under more enhancement for the given examples. Some examples may not work due to the bugs. You may look into the bug report for the avaiable fix.

Anyway, with some of the examples, do also note the bug QTMOBILITY-841 that prevents selecting map items on some zoom levels.

Also for some reason I did not get gestures working, thus no fancy zooming available yet.

Contents

HelloMap

This is a simple map without any additional code. It simply showing a map without interaction possibilities.

The example is available at HelloMap.zip

Simple map

Hello world map example which has simple panning included in it.

The example available at SimpleMap.zip

Simple map 2

This is a simple map example added with kinetic panning

The example is available at SimpleMap2.zip

MapInteraction

This example shows how to zoom the map, changing map type, moving to coordinates and getting current coordinate from the map.

The example is available at MapInteraction.zip

SimpleMapContent

This example shows adding & removing markers, polyline & polygon. Toggling visibility, using z-ordering and zooming to map objects

Please note that zooming works well on simulator but not on Symbian target device. There is a bug reported at QTMOBILITY-876.

The example is available at SimpleMapContent.zip

MoreMapContent

This example shows how to handle circle, rectangle & text map objects with the map.

Please note that zooming works well on simulator but not on Symbian target device. There is a bug reported at QTMOBILITY-876.

The example is available at MoreMapContent.zip

MapMarkers

This example shows different ways on using and loading images to the QGeoMapPixmapObject as well as general marker handlings.

The example is available at MapMarkers.zip

MapAreaSelector

This is an example showing how you can make simple rectangle & circle area selectors. These selectors are used with Geo coding & search examples.

This is example is available at MapAreaSelector.zip

DynamicPolyline

This example shows dynamic polyline handling via touch events. Polyline points can be added by clicking on the map and removed by clicking on the marker showing the polyline points already added.

The example is available at DynamicPolyline.zip

GeoCodeMap

This is example of Geo coding that shows how you can find positions for address. This example also shows how a rectangle area selector could be used inside a dialog.

Geocoding without any area will not work on device. The bug report can be found from QTMOBILITY-1371

The example is available at GeoCodeMap.zip

ReverceGeoCode

This is an example of simple reverse geo coding which shows how you can get address details of a geo position.

The example is available at ReverceGeoCode.zip

MapSearch

This example shows how you can use the search. It also shows how to use a circle area selector with the search.

Currently the API appears not to give any results, and there is a bug report for this at QTMOBILITY-1372.

The example is available at MapSearch.zip

SimpleRouting

The example shows simple two-point routing without actually doing anything on the route segments etc. The example is having two Draggable markers for start & stop points and then showing the returned route object on the map.

The example is available at SimpleRouting.zip

MyLocationMap

This example shows how to get and monitor location of the device and show it on a map, as well as shows usage of the QGeoAreaMonitor. It also uses circle area selector with the area monitor.

There is a known bug QTMOBILITY-1059 and with devices the QGeoAreaMonitor does not work, since it is null.

The example is available at MyLocationMap.zip

354 page views in the last 30 days.