Why is the centering of my map off in my jQuery Mobile / Google Maps API3 application?

后端 未结 4 1277
情歌与酒
情歌与酒 2020-12-19 10:49

I have a map powered by Google Maps Javascript API3 in my jQuery Mobile web application. I added a circle with black borders on it.

If you go to this page of my app

4条回答
  •  执念已碎
    2020-12-19 11:41

    Is the page reloading between the home page and the map? If not, and if you're creating or resizing a div, you'll need to call google.maps.event.trigger(map, 'resize') after the div changes (size change or removing a display:none). (edited to show the code to trigger the event, thanks to @Heitor Chang)

提交回复
热议问题