Google Maps API v3 + Foundation 4 Reveal modal not displaying properly

前端 未结 1 1546
-上瘾入骨i
-上瘾入骨i 2021-01-22 17:05

Before we begin I just want to make clear that I have already read the following SO articles top to bottom, tried to replicate the solution, and so far cannot.

Google Ma

1条回答
  •  无人及你
    2021-01-22 17:47

    You should use

    $('#myModal').foundation('reveal', 'open');
    

    to show the modal.

    Also, google.maps.event.trigger(bigmap, 'resize'); should be bound to the opened event of the #myModal:

    $('#myModal').on('opened', function () { google.maps.event.trigger(bigmap, 'resize'); });

    And check bigmap, it's out of the variable scope.

    0 讨论(0)
提交回复
热议问题