[ka-Map-users] Mouse hover
Ed Cooley
ecooley at strategy5.com
Thu Jan 11 11:30:29 EST 2007
Here is a function I use to plot my icons. I think all you need to do is
add onmouseover and onmouseout the Points.
function PlotItem( PlotLat, PlotLon, PlotLabel, PlotType, PlotIndex,
PlotDiv, PlotxOffset, PlotyOffset, clickFunction )
{
if (!poiCanvas) {
poiCanvas = myKaMap.createDrawingCanvas( 501 );
}
Points[map_icons] = document.createElement('div');
Points[map_icons].innerHTML= PlotDiv;
Points[map_icons].alt = PlotLabel;
Points[map_icons].title = PlotLabel;
if ( clickFunction == null )
Points[map_icons].onclick = myPOI_onclick;
else
Points[map_icons].onclick = clickFunction;
Points[map_icons].pointIndex = map_icons; //can be used later in an
onclick
Points[map_icons].style.cursor = 'pointer'; //change cursor
Points[map_icons].xOffset=PlotxOffset;
Points[map_icons].yOffset=PlotyOffset;
Points[map_icons].PlotStatus = 1;
Points[map_icons].PlotType = PlotType;
Points[map_icons].PlotIndex = PlotIndex;
Points[map_icons].PlotLat = PlotLat;
Points[map_icons].PlotLon = PlotLon;
myKaMap.addObjectGeo( poiCanvas, PlotLat, PlotLon, Points[map_icons] );
map_icons=map_icons+1;
}
---
Ed Cooley
Strategy Systems, Inc.
http://www.strategysystems.com
479-271-7400 Fax: 479-271-7401
________________________________________
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Gupteshwar
Joshi
Sent: Wednesday, January 10, 2007 7:34 AM
To: ka-map-users at lists.maptools.org
Subject: [ka-Map-users] Mouse hover
Hello All,
I am new user to GIS application
and tried some basic level demo with ka-map 1.0
with features as search and query etc on ka-map (aqua theme).
Now I am interested in mouse hover (bubble popup) kind of thing
for representing query result simply by mouse movement .
Can anyone help me in this regard?
Thank you
Regards.
--
(((())))
(@ @)
(_)
+----oOO------------Ooo----------+
| Gupteshwar D Joshi |
| |
+------------------------------------+
|___|___|
| | | |
ooO Ooo
More information about the ka-Map-users
mailing list