ALKMaps.Marker.Box

Inherits from

Summary
ALKMaps.Marker.Box
Properties
bounds{ALKMaps.Bounds}
div{DOMElement}
Constructor
ALKMaps.Marker.Box
Functions
destroy
setBorderAllow the user to change the box’s color and border width
draw
onScreen{Boolean} Whether or not the marker is currently visible on screen.
displayHide or show the icon

Properties

div

{DOMElement}

Constructor

ALKMaps.Marker.Box

Parameters

bounds{ALKMaps.Bounds}
borderColor{String}
borderWidth{int}

Functions

destroy

destroy: function()

setBorder

setBorder: function (color,
width)

Allow the user to change the box’s color and border width

Parameters

color{String} Default is “red”
width{int} Default is 2

draw

draw: function(px,
sz)

Parameters

px{ALKMaps.Pixel}
sz{ALKMaps.Size}

Returns

{DOMElement} A new DOM Image with this markerĀ“s icon set at the location passed-in

onScreen

onScreen:function()

Rreturn

{Boolean} Whether or not the marker is currently visible on screen.

display

display: function(display)

Hide or show the icon

Parameters

display{Boolean}
Instances of this class represent bounding boxes.
destroy: function()
setBorder: function (color,
width)
Allow the user to change the box’s color and border width
draw: function(px,
sz)
onScreen:function()
{Boolean} Whether or not the marker is currently visible on screen.
display: function(display)
Hide or show the icon
Deprecated.
This class represents a screen coordinate, in x and y coordinates
Instances of this class represent a width/height pair
Close