EMS.IconFactory

Inherits from

Summary
EMS.IconFactory
Properties
background{EMS.Gradient} the background gradient for our generated icons.
color{EMS.Color} the color of our generated icons.
hover{EMS.Gradient} the hover color of our generated icons.
offset{OpenLayers.Pixel} the xy offset of each generated icons
size{OpenLayers.Size} the size of generated icon
states{Integer} is the number of states each generated icon has.
Constructor
EMS.IconFactoryCreates a new instance of an iconfactory.
Functions
createIcon

Properties

background

{EMS.Gradient} the background gradient for our generated icons.

color

{EMS.Color} the color of our generated icons.

hover

{EMS.Gradient} the hover color of our generated icons.

offset

{OpenLayers.Pixel} the xy offset of each generated icons

size

{OpenLayers.Size} the size of generated icon

states

{Integer} is the number of states each generated icon has.  This defaults to one.

Constructor

EMS.IconFactory

Creates a new instance of an iconfactory.

Parameters

options{Object} Hashtable of extra options to tag onto the layer.  Use these options to modify the factory

Functions

createIcon

createIcon : function(cluster)

Parameters

combined{c} is one cluster entity from a Combiner Calculator response

Returns

{EMS.Icon} A newly created icon.

createIcon : function(cluster)
Base class used to construct all other classes.
Close