Instances of OpenSpace.Layer.ScreenOverlay are used to display HTML data that does not scroll and zooms with the map, but remains fixed to the map window. The overlay has a given position and size in screen units.
| OpenSpace. | Instances of OpenSpace.Layer.ScreenOverlay are used to display HTML data that does not scroll and zooms with the map, but remains fixed to the map window. |
| Properties | |
| position | {OpenSpace.ScreenPoint} Position of the overlay on the screen. |
| size | {OpenSpace.ScreenSize} Size of the overlay on the screen. |
| html | {<String>} Contents of the overlay to display on the screen. |
| isFixed | {Boolean} Whether the layer remains in one place while dragging the map. |
| zIndex | {Number} The zIndex determines the rendering order for a this ScreenOvarlay Layer. |
| Constructor | |
| OpenSpace. | |
| Functions | |
| setHTML | Set new HTML contents for this overlay. |
| setPosition | Set a new position for this overlay. |
| setZIndex | |
| setSize | Set a new size for this overlay. |
| moveTo | Move the overlay when the base map moves. |
{OpenSpace.ScreenPoint} Position of the overlay on the screen.
{OpenSpace.ScreenSize} Size of the overlay on the screen.
setPosition: function( px )
Set a new position for this overlay.
| px | {OpenSpace.Control.ControlPosition} Position of the overlay on the map window. |
setSize: function( size )
Set a new size for this overlay.
| px | {OpenSpace.ScreenSize} Size of the overlay. |
Set new HTML contents for this overlay.
setHTML: function( html )
Set a new position for this overlay.
setPosition: function( px )
setZIndex: function ( zIndex )
Set a new size for this overlay.
setSize: function( size )
Move the overlay when the base map moves.
moveTo:function( bounds, zoomChanged, dragging )