Instances of OpenSpace.Layer.MapOverlay are used to display HTML data that scrolls and zooms with the map. The overlay has a given position and size in map units.
| OpenSpace. | Instances of OpenSpace.Layer.MapOverlay are used to display HTML data that scrolls and zooms with the map. |
| Properties | |
| position | {OpenSpace.MapPoint} Position of the overlay on the map. |
| size | {OpenSpace.MapSize} Size of the overlay on the map. |
| html | {<String>} Contents of the overlay to display on the map. |
| Constructor | |
| OpenSpace. | |
| Functions | |
| destroy | Destroy this overlay layer. |
| setHTML | Set new HTML contents for this overlay. |
| setPosition | Set a new position for this overlay. |
| setSize | Set a new size for this overlay. |
| moveTo | Move the overlay when the base map layer is moved. |
{OpenSpace.MapPoint} Position of the overlay on the map.
{OpenSpace.MapSize} Size of the overlay on the map.
Destroy this overlay layer.
destroy: function()
Set new HTML contents for this overlay.
setHTML: function( html )
Set a new position for this overlay.
setPosition: function( px )
Set a new size for this overlay.
setSize: function( size )
Move the overlay when the base map layer is moved.
moveTo:function( bounds, zoomChanged, dragging )