OpenSpace. Layer. MapOverlay

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.

Inherits from

Summary
Instances of OpenSpace.Layer.MapOverlay are used to display HTML data that scrolls and zooms with the map.
{OpenSpace.MapPoint} Position of the overlay on the map.
{OpenSpace.MapSize} Size of the overlay on the map.
{<String>} Contents of the overlay to display on the map.
Set new HTML contents for this overlay.
Set a new position for this overlay.
Set a new size for this overlay.

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.  Can contain HTML tags.

Constructor

OpenSpace. Layer. MapOverlay

Parameters

name{String}
options{Object} Can set position, size and html contents

Functions

setHTML

setHTML: function(html)

Set new HTML contents for this overlay.

Parameters

html{String}

setPosition

setPosition: function(px)

Set a new position for this overlay.

Parameters

px{OpenSpace.MapPoint}

setSize

setSize: function(size)

Set a new size for this overlay.

Parameters

size{OpenSpace.MapSize}
This class represents an eastings and northings pair of coordinates in British National Grid (BNG) format
Instances of this class represent a width/height pair in map units
setHTML: function(html)
Set new HTML contents for this overlay.
setPosition: function(px)
Set a new position for this overlay.
setSize: function(size)
Set a new size for this overlay.