Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Maps Api v3 Maps in Ui-Tabs are cut
    primarykey
    data
    text
    <p>I know this is a common problem here, i already look at all the topics here for a solution, but still, when i change tabs i continue with this problem:</p> <p><img src="https://i.stack.imgur.com/ssCKV.jpg" alt="enter image description here"></p> <p>please take a look at my js code:</p> <pre><code> function initialize() { //replace 0's on next line with latitude and longitude numbers from earlier on in tutorial. var myLatlng = new google.maps.LatLng(40.654372, -7.914174); var myLatlng1 = new google.maps.LatLng(43.654372, -7.914174); var myOptions = { zoom: 16, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var myOptions1 = { zoom: 16, center: myLatlng1, mapTypeId: google.maps.MapTypeId.ROADMAP } //here's where we call the marker. //getElementById must be the same as the id you gave for the container of the map var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var map1 = new google.maps.Map(document.getElementById("map_canvas1"), myOptions1); //google.maps.event.trigger(map1, 'resize'); //map1.setCenter(myLatlng1); var marker = new google.maps.Marker({ position: myLatlng, title:"ADD TITLE OF YOUR MARKER HERE" }); var marker1 = new google.maps.Marker({ position: myLatlng1, title:"ADD TITLE OF YOUR MARKER HERE" }); var contentString = '&lt;div id="content"&gt;'+ '&lt;div id="siteNotice"&gt;'+ '&lt;\/div&gt;'+ '&lt;h2 id="firstHeading" class="firstHeading"&gt;ADD TITLE HERE&lt;\/h2&gt;'+ '&lt;div id="bodyContent"&gt;'+ '&lt;p style="font-size:1em"&gt;ADD DESCRIPTION HERE&lt;\/p&gt;'+ '&lt;\/div&gt;'+ '&lt;\/div&gt;'; var infowindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); google.maps.event.addListener(marker1, 'click', function() { infowindow.open(map1,marker1); }); google.maps.event.addListener(map, "idle", function(){ marker.setMap(map); }); google.maps.event.addListener(map, "idle", function(){ marker1.setMap(map1); }); // To add the marker to the map, call setMap(); google.maps.event.addListenerOnce(map, 'idle', function() { google.maps.event.trigger(map, 'resize'); map.setCenter(myLatlng); // be sure to reset the map center as well }); google.maps.event.addListenerOnce(map1, 'idle', function() { google.maps.event.trigger(map1, 'resize'); map1.setCenter(myLatlng1); // be sure to reset the map center as well }); } function loadScript() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://maps.google.com/maps/api/js?sensor=false&amp;callback=initialize"; document.body.appendChild(script); } window.onload = loadScript; </code></pre> <p>i have two maps, one ofr each tab. i could solve the problem of the center point being hide on the left corner with this from other post:</p> <pre><code> .ui-tabs .ui-tabs-hide { /* my_tabs-1 contains google map */ display: block !important; position: absolute !important; left: -10000px !important; top: -10000px !important; } </code></pre> <p>but the problem stated here i had no luck even lookin at other topics here.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload