I have a problem with jQuery Mobile and Google Maps. I have to create a mobile application with jQuery Mobile. My problem is that I can't display the map in the content, I see only grey space and browsers like Safari and Chrome can't see any type of errors or warnings. Firefox's console instead see a lot of warnings such as "unknown property "-moz-border-radius-topleft” Declaration Dropped.", "Error in parsing value for background-image. Declaration Dropped."
I loaded the code without jQueryMobile, like I did for a normal webpage, and it worked.
EDIT: What I can see, and to see what the console shows you can look here:
http://riccardocelli.altervista.org/temporaneo.php
I tried to change versions of jQuery and jQueryMobile but it doesn't work..
$(document).on("pagecreate", "#pagemap", function () {
//here the google map is created and loaded
...
...
Options = {
enableHighAccuracy: true,
timeout: 10000,
maximumAge: 0,
zoom:20
};
...
map = new google.maps.Map(document.getElementById("map_container"), Options);
...
<div data-role="page" id="pagemap" data-title="home">
<div data-role="header" data-position="fixed" data-tap-toggle="false">
<div id="top">
<a id="top1" href="index.php" data-role="button" data-icon="home" data-iconpos="notext">Home</a>
<a id="top2" href="#search" data-role="button" data-icon="search" data-iconpos="notext">Search</a>
</div>
</div>
<div role="main" class="ui-content" id="map_container">
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
<div id="bottom">
<a id="bottom1" href="#friends" data-role="button" data-icon="star" data-iconpos="notext">Home</a>
<a id="bottom2" href="Settings.php" data-role="button" data-icon="gear" data-iconpos="notext">Search</a>
</div>
</div>
</div>
Anyone can help me? All the errors are in the file: http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css .
Thank you!