Class Index | File Index

Classes


Class khtml.maplib.overlay.InfoWindow


Defined in: InfoWindow.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
khtml.maplib.overlay.InfoWindow(InfoWindowOptions)
Generates an InfoWindow-object with the specified InfoWindowOptions.
Method Summary
Method Attributes Method Name and Description
 
close the infowindow
 
open(mapObj, anchorObject)
open the infowindow on the map at an anchorObject
 
render infowindow, pointer, shadow, .
Class Detail
khtml.maplib.overlay.InfoWindow(InfoWindowOptions)
Generates an InfoWindow-object with the specified InfoWindowOptions.
Can be opened on any anchorObject, that exposes position and pixelOffset function.
Minimum code to open an infowindow on a marker:
   

  var infowindow = new mr.overlay.InfoWindow({
  	content: 'Text in the InfoWindow'
  });
  
  marker.attachEvent( 'click', function() {
  	// Opening the InfoWindow
  	infowindow.open(map, this);
  }); 
  
Parameters:
{khtml.maplib.overlay.InfoWindowOptions} InfoWindowOptions
Options for InfoWindow
See:
Example (click on the marker): Infowindow}
Method Detail
close()
close the infowindow

open(mapObj, anchorObject)
open the infowindow on the map at an anchorObject
Parameters:
mapObj
anchorObject

render()
render infowindow, pointer, shadow, ...

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