Class MVMapDecoration

Object
   |
   +--MVMapDecoration

class MVMapDecoration


MVMapDecoration defines a stationary map decoration feature on the map. The map decoration object is not moved when the map is dragged or recentered. Its size is not changed when the map is zoomed in or out. The MVMapDecoration is displayed above all base map and FOI layers.

The positioning of the MVMapDecoration object is specified by its position relative to the upper-left corner from the map. The relative position is not specified in pixels, instead it is specified in the percentage relative to the map window size.

The horizontal position is specified by parameter left, which should be a float number in the range of 0-1. The absolute offset of the MVMapDecoration object center from the left map window border in pixels is left*map_window_width.

The vertical position is specified by parameter top, which should be a float number in the range of 0-1. The absolute offset of the MVMapDecoration object center from the top map window border in pixels is top*map_window_height.


Constructor Summary
MVMapDecoration (<Object> content, <float> left, <float> top, <int> width, <int> height, <int> xOffset, <int> yOffset)
           
 
Method Summary
 void addEventListener(eventType, listener)
           This method is deprecated.
 void attachEventListener(type, <Function> listener)
           This method attaches an event listener to the MVMapDecoration.
 void collapse()
           This method minimizes the map decoration object and displays it as a minimized icon.
 void detachEventListener(type, <Function> listener)
           This method detaches an event listener that has previously been attached to the MVMapDecoration by attachEventListener().
 void enableEventPropagation(<boolean> enabled)
           This method enables event propagation from the map decoration.
 object(DIV) getContainerDiv()
           This method returns the container DIV object of the map decoration.
 Object getPosition()
           This method gets the current screen location of the map decoration.
 boolean isCollapsed()
           This method returns whether the map decoration is collapsed.
 Boolean isDraggable()
           This method gets whether the map decoration can be moved by dragging it using the mouse.
 Boolean isVisible()
           This method gets the visibility of the map decoration object
 void setCollapsible(collapsible, minimizeWhenCreated)
           This methods sets whether the map decoration object is collapsible.
 void setDraggable(<boolean> movable)
           This method sets whether the user can drag and move the map decoration using the mouse.
 void setEventListener(eventType, listener)
           This method is deprecated.
 void setMouseCursorStyle(<String> cursorStyle)
           This method sets the mouse cursor style when the mouse is over the map decoration object.
 void setOffset(<int> xOffset,<int> yOffset)
           This method sets the pixel offset of the map decoration object relative to its position specified by the left and top parameter in the constructor.
 void setPosition(<float> left, <float> top, <int> xOffset,<int> yOffset)
           This method sets the position of the map decoration object relative to its position specified by the left and top parameter in the constructor.
 void setPrintable(<Boolean> printable)
           This methods sets whether the map decoration will be printed when the MVMapView.print method is called.
 void setTitleBar(<String> titleText, <String> titleIconURL, <String> titleInfoTip)
           This methods sets the title bar content of the map decoration.
 void setVisible(<Boolean> visible)
           This method sets the visibility of the map decoration object

Constructor Detail

MVMapDecoration

MVMapDecoration(<Object> content, <float> left, <float> top, <int> width, <int> height, <int> xOffset, <int> yOffset)

Method Detail

addEventListener

void addEventListener(eventType, listener)

attachEventListener

void attachEventListener(type, <Function> listener)