Class nokia.maps.map.Display
Class Summary
This class displays a geographical map, allowing multiple optional layers (containers)
and objects such as markers, polylines, polygons, cirles, etc., to be added to it.
Method Summary
addListener
(type, listener, useCapture)
: Object
This method registers an event listener.
destroy
()
This method destroys the map Display instance and frees the resources.
destroy
()
This method clean up itself and remove instance from all connected Displays.
dispatch
(evt)
: Boolean
This method dispatches an event.
enableDrag
()
: nokia.maps.dom.EventTarget
This method enables dragging of this event target and disables the user selection, allowing this event target to receive dragstart, drag and dragend events.
click
(evt)
This event is fired after a mousedown/mouseup sequence at the same target has occurred.
dblclick
(evt)
This event is fired after two click events have been fired within a certain time period.
dbltap
(evt)
This event is fired after a two tap events have been fired in a certain amount of time.
drag
(evt)
This event is fired at the target object of the dragstart event while a drag operation is in propgress.
dragend
(evt)
This event is fired at the end of a drag operation at the object that was dragged (the target of the dragstart event).
dragenter
(evt)
This event is fired at an object if the mouse/finger is moved into the visible area of the object during a drag operation.
dragleave
(evt)
This event is fired at the current drop target if the the mouse/finger leaves the visible area of the target.
dragover
(evt)
This event is fired at the current drop target while the mouse/finger is on/above the drop target.
dragstart
(evt)
This event is fired at an object that has the property draggable set to true and after a mousedown/touch has occurred and the mouse/finger was moved at least three pixels.
drop
(evt)
This event is fired at the current drop target if the mouse button or finger is released on/above it, which means that the dragenter event and the dragover events were canceled, so their preventDefault methods were called and the allowedEffect property matches the dropEffect property.
gesturechange
(evt)
This high-level event is fired whenever either of the two finger making a gesture is moved, changing the properties of the gesture.
gestureend
(evt)
This high-level event is fired as soon as the gesture ends, for example because one of the two fingers touching the touch screen are lifted.
gesturestart
(evt)
This high-level event is fired when two or more fingers touch the touch screen and are used to make a "gesture".
longpress
(evt)
This event is fired after a finger has been pressed against the screen for a certain amount of time without starting a drag or gesture.
longpress
(evt)
This event is fired after a mouse button has been pressed for a certain amount of time without starting a drag.
mousedown
(evt)
This event is fired if a mouse button has been pressed.
mouseenter
(evt)
This event is fired if the mouse cursor enters the visible area of a node -- it is fired at the node that the mouse has entered.
mouseleave
(evt)
This event is fired when the mouse cursor leaves the physical area of a node -- it is fired at the node the mouse has left.
mousemove
(evt)
This event is fired if the mouse is moved.
mouseout
(evt)
This event is fired if the mouse cursor leaves the visible area of a node -- the event is fired at the node that the mouse has left.
mouseover
(evt)
This event is fired when the mouse cursor enters the visible area of a node -- the event is fired at the node that is entered.
mouseup
(evt)
This event is fired if a mouse button has been released.
mousewheel
(evt)
This event is fired if the mousewheel is moved.
event:resize
(event)
This event is fired each time a change of the display's size is detected.
event:resizeend
(event)
This event is fired when a resizing operation has been finished (i.e.
event:resizestart
(event)
This event is fired immediately after the size of the display has been changed.
tap
(evt)
This event is fired after a touchstart and touchend has occurred at the same target and only if neither of the touchstart nor the touchend event has been canceled and no gesture was started in between.
touchend
(evt)
This event is fired when a finger is lifted from a touch screen.
touchmove
(evt)
This event is fired when a finger touches and moves on a touch screen.
touchstart
(evt)
This event is fired when a finger is touches a touch screen.
geoToPixel
(coord)
: nokia.maps.util.Point
This method translates the received point object containing WGS84 coordinates into pixel coordinates relative to the top left corner of the map view.
get
(key)
: Variant
This method retrieves the value of the property with the name provided by the caller.
getBestZoomLevel
(bBoxes)
: Number
This method computes the minimum zoom level at which each of the given bounding boxes fit into the display area.
getObjectsWithin
(left, top, right, bottom)
: nokia.maps.map.Object[]
This method returns all objects found within a rectangle defined in terms of the pixel coordinates of its top left and bottom right corners.
hitTest
(pageX, pageY)
: Boolean
This method tests if the given x/y position relative to the document lies within the outer bounding box of the node corresponding to the given EventTarget object.
insertListener
(type, listener, useCapture)
: Object
This method registers an event listener as the first listener in the listener chain.
insertListenerNS
(namespaceURI, type, listener, useCapture)
: nokia.maps.dom.EventTarget
This method registers an event listener for events originating from a specific namespace as the first in the listener chain.
isAdded
(display)
This method checks if the given map object has been added to the instance of map.Display specified by the caller.
isVisible
(display)
This method checks if the given map object is visible.
pan
(startX, startY, endX, endY, [animation])
This mehtod pans the map from the start point to the end point specified by the caller.
removeComponent
(component)
: Number
The method decrements the reference counter of the supplied component and if the counter has reached zero, the method removes the component from display.
set
(nameOrObject, [value, [force]])
: nokia.maps.util.OObject
This method sets property values, using the property names and values supplied by the caller.
setAttributes
(animation, center, level, tilt, heading)
This method sets a number of properties of the map.
setCenter
(coord, [animation])
This method centers the map on the location specified by the caller.
setHeading
(heading, [animation])
This method sets the heading (bearing) of the map.
setTilt
(tilt, [animation])
This method sets the tilt of the map.
setZoomLevel
(level, [animation, [toX, [toY]]])
This method sets the zoom level to the value specified by the caller.
zoomTo
(boundingBox, keepCenter, [animation])
This method zooms the map to ensure that the bounding box provided by the caller is visible in its entirety in the map viewport.
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.map.Provider
SMART_PT
This type indicates a public transport map; is using the smart map color scheme with additional public transport route lines on top.
nokia.maps.map.Provider
TRAFFIC
This type indicates a traffic info map; is using the smart map color scheme with additional traffic coloring for major streets and highways on top.
String
copyrightAlignment
This property specifies the position of the copyright information relative to the display.
Number
copyrightHeight
The height in pixels of the frame containing the text "Copyright by .
Number
copyrightWidth
The width in pixels of the frame containing the text "Copyright by .
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)(,…)
Number
fading
This property holds a value indicating the length of time (in milliseconds) over which new asynchronously provided tiles are faded into the display.
Boolean
fixedCenter
This property is a flag indicating if the center of the map should remain unchanged if the display is resized or padding changes.
Number
heading
This property holds the heading (bearing) of the map in degrees.
Number
height
The height of the map area in pixels.
Number
margin
This property holds the size of the supplemental rendering area.
Number
maxHeading
The maximum supported map heading (bearing).
Number
maxTilt
The maximum supported map tilt.
Number
maxZoomLevel
The maximum zoom level supported by the map (considering the current heading/tilting).
Number
minHeading
The minimum supported map heading (bearing).
Number
minTilt
The minimum supported map tilt.
Number
minZoomLevel
The minimum zoom level supported by the map (considering the current heading/tilting).
nokia.maps.util.IBox
padding
This property defines the padding in pixels for each side of the map display, thus setting a virtual viewport.
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.
Number
poweredByHeight
The height in pixels of the frame containing the logo "Powered by .
Number
poweredByWidth
The width in pixels of the frame containing the logo "Powered by .
Number
tilt
This property holds the value of the map tilt in degrees.
Boolean
visibility
A flag that determines the visibility of the given Object instance.
Number
width
The width of the map area in pixels.
Number
zIndex
The z-index relative to the container.
Number
zoomLevel
This property holds the zoom level of the current view.
Direct Inheritance
Indirect Inheritance
Constructor Detail
This method displays a geographical map, allowing multiple containers and objects
to be added to it.
new nokia.maps.map.Display(container, props)
Events
mapviewchangestart(event)
Method Detail
getBestZoomLevel
(bBoxes)
: Number
pan
(startX, startY, endX, endY, [animation])
removeComponent
(component)
: Number
setAttributes
(animation, center, level, tilt, heading)
setCenter
(coord, [animation])
setCopyrightAlignment
(alignment)
setHeading
(heading, [animation])
setPadding
(padding1, [padding2, [padding3, [padding4]]])
setTilt
(tilt, [animation])
setZoomLevel
(level, [animation, [toX, [toY]]])
zoomTo
(boundingBox, keepCenter, [animation])
Field Detail
String
copyrightAlignment
Documentation generated on Thu Dec 15 2011 15:14:34 GMT+0100 (CET).