[ka-Map-users] Panning map clicking keymap
Lorenzo Becchi
lorenzo at ominiverdi.com
Mon Sep 5 10:29:08 EDT 2005
Andrea wrote down some new lines.
Now you can directly pan the map clicking in the keymap image.
http://149.139.8.29/~rischio/ka-map-cvs/ka-map/htdocs/
kaKeymap.js
lines to add:
function kaKeymap(oKaMap, szID )
{
...
//prototypes
...
this.aPixPos = kaKeymap_aPixPos;
this.centerMap = kaKeymap_centerMap;
this.onclick=kaKeymap_onclick;
/*ad event on div*/
this.domObj.kaKeymap=this;
this.domObj.onclick= this.onclick;
if ( this.domObj.captureEvents)
this.domObj.captureEvents(Event.CLICK);
...
}
new functions:
kaKeymap_onclick()
kaKeymap_centerMap()
kaKeymap_aPixPos()
Lorenzo
More information about the ka-Map-users
mailing list