0

I use Gmap3 to display my map. My javascript code is:

<script type="text/javascript">
     // create map - uses gmap3 jQuery plugin
     jQuery(document).ready(function($){
          $("#map_canvas").gmap3({
                map: {
                  options: {
                     maxZoom: 14
                  }
                },
                marker:{
                  values:[
                    {latLng:["49.6374729","13.167728600000032"], data:""},
                  ],
                  options: {
                    icon: new google.maps.MarkerImage(
                        "http://gmap3.net/skin/gmap/magicshow.png",
                          new google.maps.Size(32, 37, "px", "px")
                    )
                  }
                }
            },"autofit" );
        });
</script>

The HTML markup is:

<div class="col-md-6">
    <div id="map_canvas"></div>
</div>

The result looks:

Result of the code above

How can I fix this?

user1049961
  • 2,656
  • 9
  • 37
  • 69

1 Answers1

0

Add below lines in css file :-

/* Bootstrap Css Map Fix*/
#mainBody #map img { 
  max-width: none;
}
/* Bootstrap Css Map Fix*/
#mainBody #map label { 
  width: auto; display:inline; 
} 

Google Maps Doesn't Show Zoom Controls

Community
  • 1
  • 1
Neel
  • 11,625
  • 3
  • 43
  • 61