我想在带有指令的页面上显示带有关闭按钮的工具提示。当页面加载工具提示应该带有关闭按钮时,因此在阅读说明后人们可以关闭工具提示。当前使用此代码我设法加载工具提示,但我想添加一个关闭按钮,如弹出窗口以关闭工具提示。我怎样才能添加这个?
var tooltip = L.tooltip({
direction: 'center',
permanent: true,
interactive: true,
noWrap: true,
opacity: 0.9
});
tooltip.setContent( "instructions" );
tooltip.setLatLng(new L.LatLng(23.951,149.861));
tooltip.addTo(map);