地图示例 demo/map/tourmap.frm 中,鼠标悬停在数据点上会显示图片,如图:
http://bbs.fanruan.com/forum.php?mod=image&aid=73313&size=300x300&key=02ebf46f642683cf&nocache=yes&type=fixnonehttp://bbs.fanruan.com/forum.php?mod=image&aid=73315&size=300x300&key=ee90cd18439c9437&nocache=yes&type=fixnone
这是自定义提示里的设置:
http://bbs.fanruan.com/forum.php?mod=image&aid=73316&size=300x300&key=11dca0e6f3d3fd63&nocache=yes&type=fixnone
function(){
if(this.name=="南京市") return ''+this.name+' '+this.value+''; else return this.name; }
可见代码是硬编码。
现在需求是:
1.数据库中有了图片名字的字段,如何使用自定义提示显示每个点对应的图片?