Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7617299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:06:51+00:00 2026-05-31T03:06:51+00:00

This is my Google Maps code (it works perfectly by itself): <table width=99%> <tr><td

  • 0

This is my Google Maps code (it works perfectly by itself):

<table width=99%>

<tr><td align="center">

<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false">

</script>

<script type="text/javascript">


 var map;

function initialize() {


  var mapOptions = {
center: new google.maps.LatLng(<?php echo $row['latitude_deg']; ?>,<?php echo $row['longitude_deg']; ?>),
zoom: 13,
mapTypeId: google.maps.MapTypeId.HYBRID

  };

map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);

  map.setTilt(45);

  map.setHeading(90);

}


function autoRotate() {

  // Determine if we're showing aerial imagery

  if (map.getTilt() != 0) {
map.setHeading(180);
setTimeout('map.setHeading(270)',3000);
setTimeout('map.setHeading(0)',6000);
setTimeout('map.setHeading(90)',9000);

  }

}

</script>

<body onload="initialize()">

  <div id="map_canvas" style="width:100%; height:350px"></div>

</td></tr></table>

Here is my code for my show/hide function:

 <div style="background-color:black; width:80%; cursor:pointer;hand" onClick="showhide('id6'); return(false);"><table width="100%"><tr><td width=80% align=left><font color="white" size="4"><strong>&nbsp;Airport Maps</strong></font></td><td align=right><font color="white" size="1"></font></td></tr></table></div>

<span id="id6" style="display: none">    
****Google Maps Code goes here****
</span>

I’m having an issue when I put my google map code inside of the “span””/span” where it does not function properly. Google Maps shows up but the imagery says no image available and it’s in the wrong place.

Do you have any idea how to resolve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:06:53+00:00Added an answer on May 31, 2026 at 3:06 am

    SOLVED!

    function displayMap() {
                    document.getElementById('map_canvas').style.display="block";
                    initialize();
                }
    

    Inside Show All Div:

       onClick="showall('id1','id2','id3','id4','id5','id6','id7'); displayMap(); return(false);"
    

    Inside Individual Show/Hide Div:

       onClick="showhide('id6'); displayMap(); return(false);"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my code : <script type=text/javascript src=http://maps.google.com/maps/api/js?sensor=true></script> <script type=text/javascript> function load() { if
I have some C# code that generates google maps. This codes looks at all
When I run this code url = ('http://maps.google.com/maps/nav?'+ 'q=from%3A'+from_address+ '+to%3A'+to_address+ '&output=json&oe=utf8&key='+api_key) request = urllib2.Request(url)
I have this weird problem where my Google Maps API script doesn't work, no
This code have been working until I updated last night. The code works perfectly
I have the following code for google maps. The purpose of this code is
This is kind of a brainteaser question, since the code works perfectly fine as-is,
I am creating a Circle using the google.maps.Circle() method. This all works fine and
This is inside the google initialize function and works fine. It's the code below
This code works perfectly in Chrome, but is blank in mobile Safari. Tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.