JQuery Mobile and Google Maps Not Rendering Correctly

后端 未结 5 2027
星月不相逢
星月不相逢 2021-02-06 00:22

I am simply trying to display a google map within a jquery mobile page. If I load the page directly it works. However, if I navigate to the page from another page it only rend

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 01:22

    I found the issue for me was that JQuery mobile uses Ajax to load the pages. I am not sure if it is the best practice but I simply forced it to load my map page normally by putting the following code in the anchor tag:

    data-ajax="false"
    

提交回复
热议问题