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 8435705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:59:08+00:00 2026-06-10T06:59:08+00:00

I added a loading image to Google map api v3. On button click, the

  • 0

I added a loading image to Google map api v3. On button click, the loading image shows up, but I am unable to hide the loading image after the map is loaded. Please help me with some tips.

Google map is present under div id: map_canvas

Loading image is present under div id: inner

I am using the code: $(‘div.inner’).show(); to show the loading image after button click.

I tried this code to hide the loading image but it didn’t work:

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(window).load(function(){
      $("#inner").hide();
})
</script>

I also tried using $(map_canvas).load(function()…

and I also tried adding $(“#inner”).hide(); in the last line of map code. but nothing worked.

Please help me hide the loading image after google map is loaded completely.

Edit:…………………………………………………………………

I got it.

create a function like this:

function hide()
    {
        $('div.inner').hide();
    }

and call it in the last line of map code, it worked.

  • 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-06-10T06:59:09+00:00Added an answer on June 10, 2026 at 6:59 am

    I don’t use jQuery, so I’d do it like this:

    var loadingDiv = document.getElementById('inner');
    loadingDiv.style.display = 'none';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added Jquery toggle/show hide in my site (click the plus sign) http://pligg.marsgibson.info if
I have a jQuery function that shows a 'loading' image and disable the submit
Currently I'm loading the image from the local disk but I would like to
I added an event handler to the WebClient's DownloadProgressChanged event, but it never seems
which type of image to be added as the background of windows form gives
I've got a FlowDocument which has some elements like so: <InlineUIContainer> <Button Click=Button_Click Tag=123456789890>
I have a UIView on which i am loading my image view as a
NOTE: I am using ARC I have a lazy image loading technique that works
Please read this statement carefully: let's assume before ANY elements are added to the
I have a Google map that is showing a number of markers. When the

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.