Skip to content

Commit

Permalink
Merge pull request openlayers#11379 from jipexu/tooltipbranch
Browse files Browse the repository at this point in the history
tooltip bs on fullscreen
  • Loading branch information
ahocevar authored Aug 2, 2020
2 parents 7591df8 + 6f59216 commit 10dd6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/button-title.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
shortdesc: This example shows how to customize the buttons tooltips with Bootstrap.
docs: >
This example shows how to customize the buttons tooltips with <a href="https://getbootstrap.com/docs/4.5/components/tooltips/">Bootstrap</a>.
For the tooltips to work in fullscreen mode, set the container property to a selector that matches the map target.
tags: "custom, tooltip"
resources:
- https://code.jquery.com/jquery-3.5.1.min.js
Expand Down
2 changes: 2 additions & 0 deletions examples/button-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const map = new Map({

$('.ol-zoom-in, .ol-zoom-out').tooltip({
placement: 'right',
container: '#map',
});
$('.ol-rotate-reset, .ol-attribution button[title]').tooltip({
placement: 'left',
container: '#map',
});

0 comments on commit 10dd6ce

Please sign in to comment.