Nokia Maps API Reference

Contents

Class nokia.maps.positioning.component.Positioning

Class Summary

This class represents a component that switches positioning on and off. It is currently only supported in the nokia_generic UI package. Due to the missing support of the W3C Geolocation API it is not working in all Internet Explorer versions up to version 8.

Method Summary
addObserver (key, callback, [context]) : nokia.maps.util.OObject This method registers an observer for the property named by the caller.
attach (mapDisplay) This method will be invoked when the component is attached to a map and is not meant to be called directly.
destroy () This method is called from Display when Display is destroyed.
detach (mapDisplay) This method will be invoked when the component is detached from a map and is not meant to be called directly
get (key) : Variant This method retrieves the value of the property with the name provided by the caller.
getId () : String This method retrieves the unique identifier of the component.
remove (key) : nokia.maps.util.OObject This method removes the property with the name provided by the caller.
removeObserver (key, callback, context) : nokia.maps.util.OObject This method removes the observer for the property named by the caller.
requestPosition (successCallback, errorCallback) This method requests the current geo positioning information from the positioning manager.
set (nameOrObject, [value, [force]]) : nokia.maps.util.OObject This method sets property values, using the property names and values supplied by the caller.
Field Summary
nokia.maps.map.Display mapDisplay This property holds a reference to the map.Display instance to which the given component belongs.
Constructor Detail

This method initializes a new instance of Positioning.

new nokia.maps.positioning.component.Positioning()
Method Detail
requestPosition (successCallback, errorCallback)
This method requests the current geo positioning information from the positioning manager. When the position information has been retrieved, the map moves to the current position and an accuracy circle is drawn using the method #showPosition().
Parameters:
{[function]} successCallback if a position is found this function will be called.
{[function]} errorCallback if error occurs this callback will be executed.
See:
nokia.maps.positioning.Manager
Documentation generated on Wed Jun 27 2012 16:54:15 GMT+0200 (CEST).