-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Bootstrap-like tooltips for menu items #1249
base: main
Are you sure you want to change the base?
Changes from 19 commits
87f5076
f6225c3
4976617
c71fc06
8db3a8e
1dca9e3
7cbcb80
24df784
47f1aa2
07c7e94
773c2fe
13c6402
67b2862
54b59a3
439e1f3
5af6baf
8a74edb
bae479d
87ab889
bee6134
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,16 @@ | |
<link rel="stylesheet" href="../dist/vendor.css"> | ||
<link rel="stylesheet" href="../dist/leaflet.distortableimage.css" media="screen" title="no title"> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
|
||
<script src="../node_modules/leaflet/dist/leaflet.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="../dist/vendor.js"></script> | ||
<script src="../dist/leaflet.distortableimage.js"></script> | ||
<script src="./js/index.js" defer></script> | ||
<script src="https://maps.googleapis.com/maps/api/js?key=<key>&libraries=places"></script> | ||
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk" crossorigin="anonymous"></script> | ||
</head> | ||
<body style="margin:0;"> | ||
<form id="test_form"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="top"]') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, here is I think the issue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, I tried what you suggested
This is how it looks like now. I'm still not able to see the tooltip : ( |
||
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)) | ||
let map; | ||
|
||
(function() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, just noting this seems like an unrelated change -- can you try reverting it with: