SiteWatch API Help

addDivMarker

addDivMarker

Previous topic Next topic  

addDivMarker

Previous topic Next topic  

A method to add a divmarker to a map location.

 

Parameter

Value

id: string

Identity of object.

point: a point set object (SWPoint)

-or-

point: a point set array

isn93 map point locations.

config (optional):

Configuration.

 offset: a point set

Point locations { x: <x>, y: <y>} in pixels from the center point of the divmarker the text should be moved to. This is useful so that the text doesn't appear directly inside the center point.

 

Return

Value

object:

A divmarker object.

 

 

Example:

var divmarker = map.addDivMarker("hello",

SWPoint.create(500000, 500000));

 

var dom = divmarker.getDom();

dom.innerHTML = "Hello World";

 

divmarker.update(); //Update the divmarker so the location is updated.