Nokia Maps API Reference

Contents

Class nokia.maps.map.Polygon

Class Summary

This class represents map object that is, in effect, a closed polyline (nokia.maps.map.Polyline). In other words, the last point in the array of points that define the line is connected with the first point.

new nokia.maps.map.Polygon (path, props)
Properties This interface defines the properties (keys) that can be passed to the constructor of nokia.maps.map.Polygon.
Field Summary
Number CHANGE_SPATIAL Represents the invalidation type for spatial changes
Number CHANGE_VISUAL Represents the invalidation type for visual changes
Number CHANGE_ZINDEX Represents the invalidation type for zIndex changes
nokia.maps.util.IBrush brush This property specifies the brush used to fill the shape of the polygon.
Boolean draggable This property indicates if the given event target is draggable and may receive a dragstart, drag and dragend events (true); false otherwise.
Object eventListener This property is either undefined or holds a hash table that, for every event type, contains an array with the values: (listener, useCapture, namespaceURI)(, listener, useCapture, namespaceURI)(,…)
Boolean isEventTarget This property indicates whether an object implements the nokia.maps.dom.EventTarget interface (true>) or not (false).
nokia.maps.dom.EventTarget parentNode This property holds a reference to the parent node of the event target (if set).
Object parentNodes If this property is set it holds a hash table that contains the "namespaceURI" as key and the corresponding value is the parent node of the given event target.
nokia.maps.geo.Shape path The path to define the shape.
Number simplify The value of this property is specified as a number of pixels and indicates if and how much the rendering result is to be simplified.
Boolean visibility A flag that determines the visibility of the given Object instance.
Number zIndex The z-index relative to the container.
Constructor Detail

This class represents map object that is, in effect, a closed polyline (nokia.maps.map.Polyline). In other words, the last point in the array of points that define the line is connected with the first point.

new nokia.maps.map.Polygon(path, props)
Parameters:
{nokia.maps.geo.Strip | nokia.maps.geo.Coordinate[]} path An object containing the points (geographical locations) that define the polygon; the object can be an instance of nokia.maps.geo.Strip or an array of objects, each containing the latitude and longitude of a geographical location
{nokia.maps.map.Polygon.Properties} props An object that names polygon properties to initialize and provides their values
Documentation generated on Mon Oct 24 2011 14:24:38 GMT+0200 (CEST).