var locations = [
['Bondi Beach', -33.890542, 151.274856, 4],
['Coogee Beach', -33.923036, 151.259052, 5],
['Cronulla Beach', -34.028249, 151.157507, 3],
['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
['Maroubra Beach', -33.950198, 151.259302, 1]
];
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
center: new google.maps.LatLng(-33.92, 151.25),
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var infowindow = new google.maps.InfoWindow();
var marker, i;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map
});
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}

Dipankar BiswasRank #992 · 2K reputationPosted Feb 20, 2015, 3:27 AM EST
You need a textBox, and write this html in this textBox...
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.DocumentText = textBox1.Text;
}
Ajay GuptaRank #2,870 · 500 reputationPosted Feb 20, 2015, 8:16 AM EST
but webbrowser control through script error.
Dipankar BiswasRank #992 · 2K reputationPosted Feb 20, 2015, 8:44 AM EST
Select browser Go +to properties
And change it
Scripterroesuppressed true
Thanks
Dipankar Biswas
Dipankar BiswasRank #992 · 2K reputationPosted Feb 20, 2015, 9:06 AM EST
Ajay
You can also run it by set url
Thanks
Dipankar Biswas
Ajay GuptaRank #2,870 · 500 reputationPosted Feb 22, 2015, 1:01 AM EST
Thanks dipankar, i am getting this error only on Windows Server 2008.
i have changed to
but still error is same.
please, how to i run by setting url this code.
Dipankar BiswasRank #992 · 2K reputationPosted Feb 22, 2015, 3:19 AM EST
Ajay
See Here..
Create a new item As a (.htm)
write ur code There..
Then set yr path..
Try it
if you satisfied for my ans. please accept my ans.
Thanks
Dipankar Biswas