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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:11:43+00:00 2026-06-14T22:11:43+00:00

I have a page on which I use bootstrap and I added a map

  • 0

I have a page on which I use bootstrap and I added a map (API v3).

It works fine at first, but when I collapse the map – I can’t reopen it.

I’ve looked through similar SO questions, but couldn’t find one addressing this.

My HTML:

<div id="mapHeader" data-toggle="collapse" data-target="#map">
    Header
</div>
<div id="map" class="collapse in">
    <div id="map_canvas"></div>
</div>

CSS:

#map_canvas { height: 100% }
#map {height: 30em; width: 50%;max-height:100%;}

Javascript only loads the map.

A fiddle to demonstrate

Seems related, but I couldn’t implement the same solution

  • 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-14T22:11:44+00:00Added an answer on June 14, 2026 at 10:11 pm

    The problem is that the bootstrap collapse plugin is not registering a dimension for your map canvas so it doesn’t know what height to expand it to. To fix this, add some dimensions to your #map_canvas like so:

    #map_canvas { height: 30em; width: 100%; }
    

    Edit: As OP commented below, an specific height is required on the #map_canvas container to allow the proper expansion of the collapsible container.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have page where I use model which can have different types (depending by
I have a page which displays a form that a logged-in user can use
I have a page which needs to use $.post() but for some reason the
I have a page which shows a Google map. I'd like to use Javascript
I have a one-page OpenOffice document which is a POD template. Basically, I use
I have a pretty complex criteria, which I use to retrieve, sort and page
I use ASP.NET and have a label control on my page, which I fill
I have page which is redirected from htaccess. now I can pass the German
I have page which is desgined for map point browsing. I want to show
I have a page which submits a form in my local system but in

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.