|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Object | +--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(<Object> content, <float> left, <float> top, <int> width, <int> height, <int> xOffset, <int> yOffset)
content - the content to be displayed by the map decoration feature. It can be an html String that specifies the html code or a map control object in one of the following types, MVScaleBar, MVNavigationPanel and MVOverviewMap.
left - left specifies the horizontal position of the map decoration object relative to the left border of the map window.
top - top specifies the vertical position of the map decoration object relative to the top border of the map window.
width - width specifies the width(in screen pixels) of the map decoration.
height - height specifies the height(in screen pixels) of the map decoration.
xOffset - xOffset is an integer that specifies the horizontal offset in pixels
yOffset - yOffset is an integer that specifies the vertical offset in pixels
| Method Detail |
void addEventListener(eventType, listener)
void attachEventListener(type, <Function> listener)
listener - listener specifies the listener function.
eventType - eventType specifies the event type.
void collapse()
void detachEventListener(type, <Function> listener)
listener - the reference to listener function.
event - a String that specifies the type of event to be handled by the listener. It can be either MVEvent.MOUSE_CLICK, MVEvent.MOUSE_OVER, MVEvent.MOUSE_OUT, MVEvent.COLLAPSE, MVEvent.AFTER_COLLAPSE, MVEvent.RESTORE, MVEvent.AFTER_RESTORE , MVEvent.DRAG_START, MVEvent.DRAG and MVEvent.DRAG_END.
void enableEventPropagation(<boolean> enabled)
enabled - true (to enable event propagation) or false (to disable event propagation).
object(DIV) getContainerDiv()
Object getPosition()
boolean isCollapsed()
Boolean isDraggable()
Boolean isVisible()
void setCollapsible(collapsible, minimizeWhenCreated)
True - if the map decoration is collapsible. The default value is false
True - if the map decoration is minimized when the map decoration is added to the map. The default value is false.
void setDraggable(<boolean> movable)
movable - whether the map decoration can be dragged.
void setEventListener(eventType, listener)
void setMouseCursorStyle(<String> cursorStyle)
cursorStyle - A string that specifies the cursor style to be used, which must be one of the standard CSS cursor style names such as "crosshair", "pointer" and "move".
void setOffset(<int> xOffset,<int> yOffset)
xOffset - xOffset is an integer that specifies the horizontal offset in pixels
yOffset - yOffset is an integer that specifies the vertical offset in pixels
void setPosition(<float> left, <float> top, <int> xOffset,<int> yOffset)
left - left specifies the horizontal position of the map decoration object relative to the left border of the map window.
top - top specifies the vertical position of the map decoration object relative to the top border of the map window.
xOffset - xOffset is an integer that specifies the horizontal offset in pixels
yOffset - yOffset is an integer that specifies the vertical offset in pixels
void setPrintable(<Boolean> printable)
printable - if the parameter is true, the map decoration could be printed when you call the mapview.print function. The default value is false
void setTitleBar(<String> titleText, <String> titleIconURL, <String> titleInfoTip)
titleText - a html string that specifies the title text that is displayed in the center of the title bar.
titleIconURL - the URL of the title icon image that is displayed at the left corner of the title bar. The title icon is also displayed when the map decoration is minimized. If this parameter is omitted, the minimization icon(down arrow) is displayed in its place.
titleInfoTip - the info tip string that is displayed when the mouse moves over the title bar.
void setVisible(<Boolean> visible)
visible - visible is a Boolean true (make the map decoration object visible) or false (make the map decoration object not visible).
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||