I am working on Desktop application C# .Net. On my form I am using Web Browser Control to open Google Map (Using API 3.0) Google map is showing perfectly but the problem is "Kilometer Scale" is showing blank.
I have a script file Map.html, showing below:
Code
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">Code
Code
Code
Google Mapstitle>Code
script src="http://maps.google.com/maps/api/js? v=3&sensor=false&libraries=geometry" type="text/javascript">Code
script>Code
Code
script type="text/javascript">Code
var map; var markersArray = [];Code
window.onload = function () {Code
var latlng = new google.maps.LatLng(29.99300, 68.99414);Code
var options =Code
{Code
zoom: 5,Code
center: latlng,Code
mapTypeId: google.maps.MapTypeId.ROADMAP,Code
scaleControl: trueCode
};Code
map = new google.maps.Map(document.getElementById("divmap"), options); }Code
script>Code
head>Code
Code
Code
div id="divmap">Code
div>Code
body>Code
html>and a windows form in Visual studio 2010. On form I have placed a Web Browser control and on form load code is given below:
Code
private void Form1_Load(object sender, EventArgs e)Code
{Code
String strMapPath = @"C:\WebBrowserWithGoogpleMap\Map.html";Code
webBrowser1.Navigate(new Uri(strMapPath));Code
}Please help, how to get rid from this problem.
Thanks & Regards
MIA


Answers
Know the answer? Post it. Somebody with the same question will find it here.