I ended up needing to pass the data object in to the tip.show() function. The final code: map.on("mouseover", function(d){ tip.show(d); }) .on("mouseout", ...
確定! 回上一頁