Search code examples
javascripttwitter-bootstraptabspopupopenlayers-3

Openlayers 3 popup with Bootstrap


I want to integrate Bootstrap tabs in a openlayers 3 popup (See the example: http://openlayers.org/en/v3.4.0/examples/popup.html)

The problem is the tabs doesn't work on the popup. But I find it's only when Openlayers 3 redefined the position of the popup overlay.


Solution

  • I guess it's some initailizing thing, so one way would be adding this:

    $(".nav-tabs a").click(function(){
        $(this).tab('show');
    });