SiteWatch API Help

addMarker

addMarker

Previous topic Next topic  

addMarker

Previous topic Next topic  

A method to add a marker 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.

text: string

Title of marker.

url (to image file)

Image of marker.

 

Return

Value

object:

A marker object.

 

 

Example:

var marker = map.addMarker("house",
SWPoint.create(359583, 406481),
"Samsyn", "http://kort.samsyn.is/api/img/house.png");