[ka-Map-users] info about index_winman.html

stefyp72 at libero.it stefyp72 at libero.it
Thu Feb 15 09:33:33 EST 2007


Hi everyone,
I have created a copy of index_winman.html to display mouse coordinates.

I have tried to insert this code into 'start_winman.js'
    myKaMap.registerForEvent( KAMAP_MOUSE_TRACKER, null, myMouseMoved );

My function 'myMouseMoved' is very simply because is a test:
function myMouseMoved( eventID, position) {
	alert(' pippo ' + position);
}


I have created in 'setWindowManager'
myPointInfoWin = kaWinMan.createWin('MyPoint');

I have put in 'drawWindowManager'
myPointInfoWin.setValues('Informazioni Punto',0,vieportH/5 + vieportH/3 + vieportH/3.5,vieportW/5, vieportH - (vieportH/5 + vieportH/3.5 + vieportH/3),true,true);
	myPointInfoWin.pushContent(getRawObject('geoPositionReference'));
	

and into index_winman.html I have put
<div id="geoPositionReference"> 
    <div id="geoPosition"> x: 0.00 y: 0.00 </div>
  </div>


When I load the index_winman.html the browser shows to me a page very strange, there are not all components, but if I remove the instruction  myKaMap.registerForEvent( KAMAP_MOUSE_TRACKER, null, myMouseMoved );
from 'start_winman.js', it works fine.
Please, help me.

Stefania Pappagallo

stefyp72 at libero.it
http://stefyp72.supereva.it



------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada15feb07





More information about the ka-Map-users mailing list