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

  • Home
  • SEARCH
  • 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 8205875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:26:35+00:00 2026-06-07T08:26:35+00:00

I have a basic bootstrap layout with a navbar and a sidebar(span 3) +

  • 0

I have a basic bootstrap layout with a navbar and a sidebar(span 3) + map(span 9).
My problem is that when i look at this code in the browser the map looks like this: http://dl.dropbox.com/u/15923835/bootstr.jpg

But I want a fixed size for the map (it should cover 80% of the page something. I have tried to set a fixed height in every DIV but nothing happens. Do you have any suggestions?

Sorry for my bad technical explanation (i’m trying to learn)

here’s a copy of the code:

<div class="container-fluid">
  <div class="row-fluid">
    <div class="span3">
      <div class="well sidebar-nav">
        <ul class="nav nav-list">
          <li class="nav-header">Sidebar</li>
          <li class="active"><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li class="nav-header">Sidebar</li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li class="nav-header">Sidebar</li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
        </ul>
      </div><!--/.well -->
    </div><!--/span-->
    <div class="span9">

        <div class="hero-unit" id="map"></div>

            <script src="../leaflet/dist/leaflet.js"></script>           
            <script>

                var map = new L.Map('map');

                var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',

                    cloudmadeAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade',

                    cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution});

                map.setView(new L.LatLng(55.367, 10.811), 6).addLayer(cloudmade);

        var trailers = new L.LayerGroup();

        <?php $query = mysql_query("SELECT tblmain.modemid, max(dateepoch), tblmain.date, tblmain.speed, tblmain.la, tblmain.lo, tblmain.t1, tblmain.t2, tblmain.spt1, tblmain.spt2, tbltrailers.name \n"
            . "FROM tblmain\n"
            . "LEFT JOIN tbltrailers\n"
            . "on tblmain.modemid = tbltrailers.modemid\n"
            . "GROUP BY modemid ");
         $i = 1;
         while ($row = mysql_fetch_array($query)){
         $modemid=$row['modemid'];
         $trailernummer=$row['name'];
         $date=$row['date'];
         $lat=$row['la'];
         $lon=$row['lo'];
         $speed=$row['speed'];
         $t1=$row['t1'];
         $t2=$row['t2'];
         $spt1=$row['spt1'];
         $spt2=$row['spt2'];
         echo ("var marker$i = new L.Marker(new L.LatLng($lat, $lon));
         marker$i.title = \"test\";
         marker$i.bindPopup(\"<h1>$trailernummer</h1><br/>Modemid: $modemid<br/>Datum: $date<br/>Temp 1: $t1<br/>Temp 2: $t2<br/>Setpoint 1: $spt1<br/>Setpoint 2: $spt2 <br/> \").openPopup();
        trailers.addLayer(marker$i);
         "); 
         $i++;
         }
         ?> 
                map.addLayer(trailers);


                //marker.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup();

            </script>
      </div>
    </div>
</div>

  • 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-07T08:26:37+00:00Added an answer on June 7, 2026 at 8:26 am

    as specified in the quick start : http://leaflet.cloudmade.com/examples/quick-start.html use a style on the div#map

    <div id="map" style="height: 200px"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basic code that looks like this: while(inputfileStream.good()) { for(int i = 0;i<levels;i++)
I have basic function that prints network errors based on enum NetworkError. that looks
I have basic JavaScript code that needs to tell how many names out of
I have css code to do layout. i have basic header panel, footer, left
I have a basic web service that returns the following object as JSON: public
I have some basic jquery code sitting in the header of the header file
I have basic issue that i don't understand, we use HEAT to consume directory
I have basic stored procedure that performs a full text search against 3 columns
Right now, I have basic code for moving the textfield above the keyboard when
Using Installshield 2010 with a Basic MSI project. I have several config files that

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.