i using simple google map.
when first time click on tab "showmap" when perfect load map.
like show in image 1:
now "showmap" tab hide other tab show and then again open tab "showmap" then not perfect open map.
like show in image 2:
the code is:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">
function show()
{
var map;
var latlng = new google.maps.LatLng(21.7679, 78.8718);
var myOptions =
{
zoom: 4,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("dvMap"), myOptions);
}
</script>
<ul class="nav nav-pills">
<li class="active"><a href="#tab_a" data-toggle="pill" >Manually</a></li>
<li><a href="#tab_b" data-toggle="pill" onclick="return show();">Using Map</a></li>
</ul>
<div class="tab-pane active" id="tab_a">
<asp:TextBox ID="txtdate" runat="server" class="date-picker form-control" ></asp:TextBox>
</div>
<div class="tab-pane" id="tab_b">
<div id="dvMap" style="height: 500px; width: 100%"></div>
</div>
please help me.
thanks.