SciGaP / simccs-maptool

Online maptool that provides novel decision-support capabilities for evaluating carbon capture, utilization and storage technologies (CCUS).
5 stars 0 forks source link

Portal tooltips don't display in maptool #168

Closed machristie closed 3 years ago

machristie commented 3 years ago

The left hand side navigation tooltip don't display in maptool, but do when in build tool. @webgisdeveloper brought this to my attention, here was my initial investigation

I found the issue, jQuery UI, which maptool loads, has it's own tooltip function that overwrites the Bootstrap one that the Django Portal is using. But, the jQuery UI one is also broken. I get "elem.getClientRects is not a function" in the console. Upgrading to jQuery UI 1.13 seems to fix it, but now the tooltip is the jQuery UI one, so we need to fix that.

machristie commented 3 years ago

@webgisdeveloper I've fixed the tooltip conflict. Now $(...).tooltip() uses the Bootstrap one. I don't think the maptool code was using the jQuery UI tooltip, but if needed it is available as .uitooltip().

I think the jQuery UI code was only used for the sliders? I did a brief test of the sliders and they seem fine. If there is any other jQuery UI code that we're using it might be good to test it out.

machristie commented 3 years ago

This StackOverflow answer was very helpful: https://stackoverflow.com/a/19247955