[ka-Map-users] overlay image onmouseover

Paul Spencer pspencer at dmsolutions.ca
Fri May 19 11:30:24 EDT 2006


Steff,

you can just add those to the image you pass to addObjectGeo ... just  
standard js event handling should work

var img = document.createElement('img');
img.src = 'images/marker.png';
img.onclick = myclick;
img.onmouseover = mymouseover;
img.onmouseout = mymouseout;
myKaMap.addObjectGeo(canvas,x,y,img);

Cheers

Paul

On 19-May-06, at 10:39 AM, Stéphane RIFF wrote:

> Hi,
>
> I' ve added some overlay image in ka-map cvs with the addObjectGeo  
> function.
> Now I'd like to handle the onmouseover/onmouseout on those images,  
> how can I achieve this ?
>
> Thanks,
> Steff
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list