FatAl
FatAl

Reputation: 899

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.

Upvotes: 0

Views: 400

Answers (1)

MichaelJS
MichaelJS

Reputation: 193

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

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

Upvotes: 2

Related Questions