Jvectormap very small on div change

前端 未结 5 515
抹茶落季
抹茶落季 2021-02-09 01:54

I have two divs, one with the world map and one with the US map. When the USA is clicked on the world map I want to hide that div and bring the US map into view.

This wo

5条回答
  •  独厮守ぢ
    2021-02-09 02:35

    You also can add logic to your code that when container of your map appears code executes a method called updateSize. In particular this looks like:

    $('$world-map').vectorMap('get','mapObject').updateSize();
    

提交回复
热议问题