Nokia Maps API Reference

Contents

Class nokia.maps.kml.Geometry

Class Summary

This class represents the abstract <Geometry> tag from the KML specification.

The constructor initializes a new instance of the class, using the arguments provided by the caller.

Method Summary
addObserver (key, callback, [context]) : nokia.maps.util.OObject This method registers an observer for the property named by the caller.
get (key) : Variant This method retrieves the value of the property with the name provided by the caller.
abstract getCenterCoordinate () : nokia.maps.geo.Coordinate This method calculates the arithmetic average of all coordinates.
abstract getStyle () : Object Returns the style of the Geometry as a set of properties which can be used while creating equivalent map object
load (onReadyCallback, parentNode) This method recursively parses a node and all its child nodes.
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.
Field Summary
Number weight "Weight" of the geometry.
Direct Inheritance
Indirect Inheritance
Method Detail
abstract getCenterCoordinate () : nokia.maps.geo.Coordinate
This method calculates the arithmetic average of all coordinates.
Exceptions:
{NotImplementedException} When trying to create object of this class and call this method.
Returns:
{nokia.maps.geo.Coordinate} An instance of nokia.maps.geo.Coordinate representing the calculated average
abstract getStyle () : Object
Returns the style of the Geometry as a set of properties which can be used while creating equivalent map object
Exceptions:
{NotImplementedException} When trying to create object of this class and call this method.
Returns:
{Object} An object containing style properties to draw the given object on map
Field Detail
Number weight
"Weight" of the geometry. This attribute is used to measure how heavy geometries are. For example if it is a polyline with 100 connection points, its weight is 100, and if it is a simple point object, than it has a weight of 1.
Default Value:
0
Documentation generated on Thu Feb 09 2012 12:59:03 GMT+0100 (CET).