This code is for the problem of jQuery Mobile using Google Maps API.
When there are the window placed Google Maps (gmap1.html) and Form (gmap2.html), the Map is not rendered after the following transition:
- Access to 'gmap1.html' -- Google Maps shows correctly.
- Move to 'gmap2.html' with a tag link.
- Back to 'gmap1.html' with clicking 'submit' button.
- 'gmap1.html' shown but Google Maps doesn't show.
To fix it, use $.mobile.ajaxEnabled = false; option.
Problem is this aid disables all Ajax functions. Unfortunatel, I have no idea anything else.
For more information, refer the following article:
jQM + Google Maps でマップが表示されない時の対処法 | 1000g. (Japanese only)