BattleMaster Community

BattleMaster => Development => Feature Requests => Topic started by: m2rt on July 12, 2013, 10:04:41 AM

Title: Hide tooltip in Dynamic map
Post by: m2rt on July 12, 2013, 10:04:41 AM
Title: Hide tooltip in Dynamic map

Summary: At the moment you can not hide the tooltip on the Dynamic map. It makes the dynamic map at my resolution unusable sometimes.

Details: When you click on a region, then a tooltip comes up. For me it lands on top of the "selection box" where you can switch which layers to show. Rendering the layers unusable for me. Its easy to fix, just add an "X" which calls this javascript: $(".ui-tooltip-default").qtip("hide");

Benefits: Hiding tooltip makes it easy to make the layer selection box usable again.

Possible Exploits: Unknown to me.
Title: Re: Hide tooltip in Dynamic map
Post by: Atanamir on July 12, 2013, 10:51:24 AM
I don't use the Dynamic map as I prefer to work with Political Map but if it helps another player and it can't harm anyone, I support it. :)
Title: Re: Hide tooltip in Dynamic map
Post by: Jaden on July 12, 2013, 12:33:44 PM
I had the same problem before, though you can get rid of the tooltip by clicking outside of the dynamic map..
Title: Re: Hide tooltip in Dynamic map
Post by: Anaris on July 12, 2013, 01:28:59 PM
I will try adding that, though it won't help for the erroneous "loading" tooltips that appear if you click outside of a realm or region...

(If anyone has significant experience with OpenLayers, your assistance with the Dynamic Map would be welcome...)
Title: Re: Hide tooltip in Dynamic map
Post by: Foundation on July 12, 2013, 02:04:05 PM
Man... pro feature request - includes js snippet to fix. Go m2rt! :)
Title: Re: Hide tooltip in Dynamic map
Post by: Tom on July 12, 2013, 08:00:58 PM
I think the fix is even easier than that, qtip almost certainly has an option to render a close icon/button. Just need to enable that.
Title: Re: Hide tooltip in Dynamic map
Post by: m2rt on July 12, 2013, 08:29:40 PM
Quote from: Foundation on July 12, 2013, 02:04:05 PM
Man... pro feature request - includes js snippet to fix. Go m2rt! :)

Heh, thats what I use in Firebug when my connection is too bad to refresh the map.
Title: Re: Hide tooltip in Dynamic map
Post by: m2rt on July 12, 2013, 10:19:34 PM
Quote from: Tom on July 12, 2013, 08:00:58 PM
I think the fix is even easier than that, qtip almost certainly has an option to render a close icon/button. Just need to enable that.

Indeed! http://craigsworks.com/projects/qtip/docs/reference/

add button: "Close" in the title element in the content. Though at the moment there is no title element.
Title: Re: Hide tooltip in Dynamic map
Post by: Foundation on July 12, 2013, 10:48:52 PM
Even uses firebug! (though Chrome dev tools man, shameless pitch)