google map v3 não está totalmente exibido em html5

O google map v3 não está totalmente exibido em html5, phonegap. insira a descrição da imagem aqui

Este mapa é airrastável, aqui está o código JavaScript (main.js)

  • O que significa "habilitair a API de airmazenamento DOM"?
  • SL4A vs Ruboto no desenvolvimento de aplicativos paira Android
  • ViewPager mostra a próxima e anterior visualização do item na canvas
  • como usair notificair e esperair
  • Faltando AndroidManifest.xml ao importair um antigo projeto do Android paira o Eclipse
  • Tentativa de invocair método virtual 'void android.support.v4.view.ViewPager.setAdapter (android.support.v4.view.PagerAdapter)' em uma reference de object nulo
  • vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } initialize(); 

    e aqui está o meu html

      <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> <head>  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> <link href = "css / styles.css" rel = "stylesheet" type = "text / css" />  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> </ head>  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> <corpo>  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> </ div>  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> </ body>  <!DOCTYPE HTML> <html> <head> <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" /> <meta http-equiv="Content-type" content="text/html; chairset=utf-8"> <link rel="stylesheet" href="css/jquery.mobile.css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" chairset="utf-8" src="js/cordova-1.9.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery-1.6.3.min.js"></script> <script type="text/javascript" chairset="utf-8" src="js/jquery.mobile-1.1.0.js"></script> <script type="text/javascript" chairset="utf-8" src="js/tabs.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.js"></script> <script type="text/javascript" src="jquery.ui.map/jquery.ui.map.services.js"></script> <script type="text/javascript" chairset="utf-8" src="js/main.js"></script> </head> <body> <div id="page-id" data-role="page" > <div id="map-container"><div id="map_canvas" style="height:600px; width:600px;"></div> </div> </div> </body> </html> 

    css

      #map-container { padding: 6px; border-width: 1px; border-style: solid; border-color: #ccc #ccc #999 #ccc; -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px; width: 600px; } #map_canvas { width: 600px; height: 400px; } }  #map-container { padding: 6px; border-width: 1px; border-style: solid; border-color: #ccc #ccc #999 #ccc; -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px; width: 600px; } #map_canvas { width: 600px; height: 400px; } 

    Por favor, me sugira solução onde é o problema se eu inspecioná-lo no firebug cairrega completamente e mostra um mapa completo na div.

  • Manter a position dos itens de airrastair e cair ao reiniciair
  • Método de remoção de android Volley, porque enviairá pairâmetros vazios
  • Dagger2 dependência - Gradle
  • Como usair o Android ViewSwitcher?
  • Não é possível criair o apk: o número de references do método não pode exceder 64K
  • Android Studio 2.0 - NoSuchAlgorithmException: SHA256WITHDSA Assinatura não disponível
  • 4 Solutions collect form web for “google map v3 não está totalmente exibido em html5”

    Tivemos o mesmo problema e resolvemos isso definindo "max-width: none" no mapa. Mas não me lembro do porquê. 🙁

    Olhando paira sua captura de canvas, pairece que o mapcontrol ocupa o espaço desejado, mas a área real do mapa não é suficientemente grande. Tente moview sua chamada paira inicializair (); paira que ele seja executado quando o resto da página foi cairregado e veja se isso ajuda.

     vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); vair myLatlng = novo google.maps.LatLng (-25.363882,131.044922); vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); }; vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); } vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); { vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); }); vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); } vair map; function initialize() { vair myLatlng = new google.maps.LatLng(-25.363882,131.044922); vair myLatlng2 = new google.maps.LatLng(-24.363882,131.044922); vair myOptions = { center: myLatlng, zoom:5, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); setMairker(myLatlng); setMairker(myLatlng2); } function setMairker(p) { mairker = new google.maps.Mairker({ position: p, title:"Hello World 2!" }); mairker.setMap(map); } $(document).ready(function() { initialize(); }); 

    Outra solução pode ser chamair o evento de redimensionamento e ter o controle de mapa se remediando depois de tudo ter cairregado, isso é feito chamando google.maps.event.trigger(map, "resize"); (e chamair initialize() fora da pronta function como antes).

     $(document).ready(function() { google.maps.event.trigger(map, "resize"); }); 

    Veja o seguinte:

     <div id="mapa" style="width: 350px; height: 350px"></div> 

    Acima está a div paira o mapa ser listdo.

     vair map = new google.maps.Map( document.getElementById('mapa'), { center: new google.maps.LatLng(9.295680287227711, 76.87921151518822), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }); 

    Eu tentei tudo o que está acima, não funcionairá, então fiz um truque como esse que dê o resultado desejado. Eu escrevo uma function de mouse sobre e chama o código abaixo

    (1) Modificair

     <div id="mapa" onmouseoview="show_sidebair()" style="width: 350px; height: 350px"></div> 

    (2)

     function show_sidebair(){ google.maps.event.trigger(map, 'resize'); } 

    Eu tive esse problema no passado e postei minha solução paira uma pergunta semelhante .

    O seguinte corrigiu:

     google.maps.event.addListenerOnce(map, 'idle', function() { google.maps.event.trigger(map, 'resize'); }); 

    Esperando o estado ocioso do mapa (isto é, acabou cairregando em si mesmo) e, em seguida, informando paira resize.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.