[ka-Map-users] how to realize such effect
Ed Cooley
ecooley at strategy5.com
Fri Aug 3 10:37:18 EDT 2007
Put your onclick on the img in the innterHTML before addObjectGeo:
var start_icon_canvas = myKaMap.createDrawingCanvas( 502 );
var start_icon_object = document.createElement('div');
start_icon_object.innerHTML = "<span class='myItems'> " +
start_icon_label + " </span><br><img src='" + start_icon_image + "'>";
start_icon_object.xOffset=start_icon_xOffset;
start_icon_object.yOffset=start_icon_yOffset;
myKaMap.addObjectGeo( start_icon_canvas, start_point[0],
start_point[1], start_icon_object );
---
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 stin wang
Sent: Friday, August 03, 2007 4:35 AM
To: ka-map-user
Subject: [ka-Map-users] how to realize such effect
how to realize such effect. i add some point data, and when i click one
point , it's open a new windows do some work(show a image, or execute a
python script
--
----------------------------------------------
Tie Wang
TianJin Climate Center
TianJin Meteorological Bureau
Tianjin, China, 300074
Email: stin.wang at gmail.com
Tel:+86-22-23331566-2377
----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070803/86d3154a/attachment.html
More information about the ka-Map-users
mailing list