Class Index | File Index

Classes


Class khtml.maplib.overlay.Marker


Defined in: Marker.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Puts a marker at the specified position on the map.
Method Summary
Method Attributes Method Name and Description
 
add a callback function
 
attachEvent(t, f, fc, c)
attaching Eventhandlers to the marker e.g.
 
remove the marker from the map, marker still exists, will still be rendered
 
destroy the marker
 
get the current position of the marker
 
init(owner)
initialize the marker on the map
 
making the marker moveable by function
 
get the pixelOffset of the markers anchorpoint to the anchorpoint of the infowindow
 
render marker, shadow, dragcross
 
set a new position for the marker
Class Detail
khtml.maplib.overlay.Marker(MarkerOptions)
Puts a marker at the specified position on the map.
Has the possibility to add arbitrary html as marker.
Minimum code for a static marker:
  

  var marker = new khtml.maplib.overlay.Marker({
  	position: new khtml.maplib.LatLng( latitude, longitude), 
  	map: map,
  	title:"static marker on a position"
  });
  
Parameters:
{khtml.maplib.overlay.MarkerOptions} MarkerOptions
markerOptions for Marker
See:
Example with other markers: Markers
Method Detail
addCallbackFunction(func)
add a callback function
Parameters:
func

attachEvent(t, f, fc, c)
attaching Eventhandlers to the marker e.g. for showing infobox on a click on the marker
Parameters:
t
f
fc
c

clear()
remove the marker from the map, marker still exists, will still be rendered

destroy()
destroy the marker

getPosition()
get the current position of the marker

init(owner)
initialize the marker on the map
Parameters:
owner

makeMoveable()
making the marker moveable by function

pixelOffset()
get the pixelOffset of the markers anchorpoint to the anchorpoint of the infowindow

render()
render marker, shadow, dragcross

setPosition(pos)
set a new position for the marker
Parameters:
pos

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Oct 09 2011 20:46:56 GMT+0200 (MESZ)