Nokia Maps API Reference

Contents

Class nokia.maps.map.component.TypeSelector

Class Summary

This class defines a user interface component that allows the user to change the current base map type. Note that the component might not show all of the available base map types. Please check nokia.maps.map.Display#availableBaseMapTypes to see the complete list of map types.

To instantiate this class, use the default constructor without arguments:

var myTypeSelector = new nokia.maps.map.component.TypeSelector();

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 is a callback invoked when the component is attached to a map.
destroy () This method is called from Display when Display is destroyed.
detach (mapDisplay) This method is a callback invoked when the component is detached from a map.
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.
getVersion () : String This method retrieves the version of the component.
queryReference () : nokia.maps.map.component.Component This method incremements the component's reference count.
releaseReference () : Number This method release a reference to the given component by decrementing the reference count.
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.
set (nameOrObject, [value, [force]]) : nokia.maps.util.OObject This method sets property values, using the property names and values supplied by the caller.
updateType () This method updates the map component when the user has changed the map type.
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 TypeSelector.

new nokia.maps.map.component.TypeSelector()
Method Detail
updateType ()
This method updates the map component when the user has changed the map type.
Documentation generated on Tue May 08 2012 10:23:33 GMT+0200 (CEST).